Hey: Difference between revisions

Jump to navigation Jump to search
1,733 bytes added ,  15 December 2006
No edit summary
Line 38: Line 38:


== Customising Heys ==
== Customising Heys ==
However there are various other options that hey can take to personalise the messages you send:
Heys can be configured in many different ways.
 
=== Borders ===
One of the most common features of hey that Redbrick users customise is the appearance of the border around the hey. The default border when a user sends a hey looks like this:
 
Message from undone@murphy on pts/489 at [ Fri 15/Dec/2006 19:32:12 GMT ] ...
              ooooooooooooooooooooooooooooooooooooooooooooooooooo
              o This is what the default hey border looks like. o
              ooooooooooooooooooooooooooooooooooooooooooooooooooo
EOF
 
You can change this by adding the '-b' option when sending a hey. After the -b, you enter 9 characters in quotation marks that determine which characters go where. The So for example if you were to use it like this:
 
undone@murphy (~) -> hey -b "123456789" phaxx
This is a test.
 
You'll see this:
 
                              6222222222222222227
                              5 This is a test. 4
                              8333333333333333339
 
Each of the numbers the in the string corresponds to a different area of your border as follows:
 
1 = default
2 = top
3 = bottom
4 = right
5 = left
6 = top left
7 = top right
8 = bottom left
9 = bottom right
 
So if you try something like this:
undone@murphy (~) -> hey -b "o--||<><>" receive
This is also a test.
 
you'll get a hey border like this:
 
                            <---------------------->
                            | This is also a test. |
                            <---------------------->
 
You can send heys to yourself, so try experimenting with different characters in each position.
 
=== Title and footer ===
You can add a title and a footer to a hey using the -t and -o options when heying someone.
 
undone@murphy (~) -> hey -t "title" -o "footer" revenant
Hey Sean, look at my title and footer!
 
creates a message like this:
 
                        -================ title =================-
                        | Hey Sean, look at my title and footer! |
                        -================ footer ================-
 
=== Other options ===
There are a few other options you can play around with too, here's a list:
 
-w <wrap>        Specifies what column to wrap words at.
-t <title>      Specifies the title string for the message.
-o <title>      Specifies the footer string for the message.
-b <borderstr>  Specifies the message's border.
-s <successmsg>  Specifies message to print on success.
-e <eofstring>  Specifies an alternative EOF string.
-f <filename>    Spceifies a file of users to hey.
-p <prompt>      Specifies the prompt string.
-n <maxnames>    Specifies the maximum number of names prompted.
-m              Ignore potentially annoying mesg n warnings.
-c              Shows the credits.
-h              Shows this listing.


    -w (wrap)        Specifies what column to wrap words at.
    -t (title)      Specifies the title string for the message.
    -b (borderstr)  Specifies the message's border.
    -s (successmsg)  Specifies message to print on success.
    -e (eofstring)  Specifies an alternative EOF string.
    -p (prompt)      Specifies the prompt string.
    -n (maxnames)    Specifies the maximum number of names prompted.
    -m              Ignore potentially annoying mesg n warnings.
    -c              Shows the credits.
    -h              Shows this listing.


Here is an example of a hey syntax using some of these parameters.
Here is an example of a hey syntax using some of these parameters.
Line 60: Line 123:


Most of these extra options are very self explanatory and are elaborated upon by typing man hey into your terminal
Most of these extra options are very self explanatory and are elaborated upon by typing man hey into your terminal
The -b switch deserves special explanation. This value sets the border around your hey. The easiest way to think of it is like this:
hey -b "123456789" username
  1 = default
  2 = top
  3 = bottom
  4 = right
  5 = left
  6 = top left
  7 = top right
  8 = bottom left
  9 = bottom right
You can try out various options until you find a border that you like by heying yourself.
Receiving


Shell Settings
Shell Settings
496

edits

Navigation menu