[bde7714] | 1 | ======================== |
---|
| 2 | Quick Guide To Using Owl |
---|
| 3 | ======================== |
---|
[61d27fb] | 4 | |
---|
[bde7714] | 5 | ======================= |
---|
| 6 | Section 1: INTRODUCTION |
---|
| 7 | ======================= |
---|
[61d27fb] | 8 | |
---|
[bde7714] | 9 | Owl is a tty, curses-based instant messaging client. This is a quick |
---|
[4fd3c04] | 10 | guide to learning how to use it. Currently Owl supports zephyr, |
---|
[675ce49] | 11 | but other messaging protocols, including Jabber, are on the way. Some |
---|
| 12 | major features of owl include: |
---|
[7d4fbcd] | 13 | |
---|
[bde7714] | 14 | o) As a tty client it can be run over telnet, rlogin or text ssh |
---|
| 15 | sessions |
---|
[7d4fbcd] | 16 | |
---|
[bde7714] | 17 | o) It uses a perl configuration file for setting preferences and |
---|
| 18 | formatting messages |
---|
[7d4fbcd] | 19 | |
---|
[bde7714] | 20 | o) Emacs style editing of messages |
---|
[7d4fbcd] | 21 | |
---|
[bde7714] | 22 | o) It is easy to use and runs without a configfile. |
---|
[7d4fbcd] | 23 | |
---|
[bde7714] | 24 | o) Advanced sorting and coloring of messages |
---|
[7d4fbcd] | 25 | |
---|
[bde7714] | 26 | ========================== |
---|
| 27 | Section 2: GETTING STARTED |
---|
| 28 | ========================== |
---|
[7d4fbcd] | 29 | |
---|
[675ce49] | 30 | Owl will run happily without a configuration file, so to get started |
---|
| 31 | just run the program. Owl will take over the terminal window it is |
---|
| 32 | started in, so you may wish to have another terminal window available |
---|
| 33 | at the same time. |
---|
[bde7714] | 34 | |
---|
[3969e3a] | 35 | On Athena you can find owl in the ktools locker. To run it, type: |
---|
[bde7714] | 36 | |
---|
[675ce49] | 37 | add ktools |
---|
| 38 | owl |
---|
[bde7714] | 39 | |
---|
| 40 | at the Athena% prompt. If you wish to run the latest beta release of |
---|
[3969e3a] | 41 | owl use: |
---|
| 42 | |
---|
[675ce49] | 43 | add ktools |
---|
| 44 | owl-beta |
---|
[3969e3a] | 45 | |
---|
[675ce49] | 46 | instead. The beta release will often have newer features, but is not |
---|
| 47 | as tried and true as the production release. As a result it may be |
---|
| 48 | less stable. |
---|
[7d4fbcd] | 49 | |
---|
[bde7714] | 50 | The Screen Layout |
---|
| 51 | ----------------- |
---|
| 52 | There are three main parts to the owl screen. The large top portion |
---|
[675ce49] | 53 | of the screen is where messages are displayed. The status bar |
---|
[3969e3a] | 54 | separates this area from the one below and displays owl status |
---|
| 55 | information. The space below that is used to type messages and is |
---|
[bde7714] | 56 | also used by owl to give warnings and information to the user. |
---|
| 57 | |
---|
| 58 | On Line Help |
---|
| 59 | ------------ |
---|
| 60 | Owl has a full on line help system. Pressing the 'h' key will bring |
---|
| 61 | up the basic help screen. Further help can be obtained using the help |
---|
[3969e3a] | 62 | command, described later. |
---|
[7d4fbcd] | 63 | |
---|
| 64 | Sending a Zephyr |
---|
| 65 | ---------------- |
---|
[88736cb] | 66 | To send a zephyr press the 'z' key. This will start a zwrite command, |
---|
| 67 | which you can finish by typing the name of the user you wish to send |
---|
| 68 | to, followed by enter. Begin typing your message. You will notice |
---|
| 69 | that most emacs-style editing is available. When you are ready to |
---|
| 70 | send the message type Control-D or a dot ('.') on a line by itself. |
---|
| 71 | If instead you wish to cancel the message type Control-C. |
---|
[7d4fbcd] | 72 | |
---|
[bde7714] | 73 | If you wish to send to a class/instance pair simply supply -c and -i |
---|
| 74 | arguments to the zwrite command as you normally would. |
---|
[7d4fbcd] | 75 | |
---|
| 76 | Manipulating Messages |
---|
| 77 | --------------------- |
---|
[3969e3a] | 78 | When there are zephyrs in the message window, one of them will be the |
---|
| 79 | 'current' message. Owl will indicate which one it is with an arrow |
---|
| 80 | that looks like this: -> The following keys will move you to different |
---|
| 81 | messages: |
---|
[7d4fbcd] | 82 | |
---|
[675ce49] | 83 | n move to the next non-deleted message |
---|
| 84 | p move to the previous non-deleted message |
---|
| 85 | C-n or down move to the next message |
---|
| 86 | C-p or up move to the previous message |
---|
| 87 | < move to the first message |
---|
| 88 | > move to the last message |
---|
| 89 | C-v page down |
---|
| 90 | M-v page up |
---|
| 91 | right scroll the screen to the right |
---|
| 92 | left scroll the screen to the left |
---|
| 93 | P move to the next personal message |
---|
| 94 | M-P move to the previous personal message |
---|
[7d4fbcd] | 95 | |
---|
| 96 | When you are ready to delete a message you can mark it for deletion |
---|
[675ce49] | 97 | with the 'd' key, and a 'D' will appear to the left of the message. |
---|
| 98 | Messages will not actually be removed until you perform an expunge. |
---|
| 99 | The following keys are used to delete, undelete and expunge messages: |
---|
| 100 | |
---|
| 101 | d mark a message for deletion |
---|
| 102 | u unmark a message for deletion |
---|
| 103 | x expunge deleted messages |
---|
| 104 | T mark all 'trash' messages for deletion |
---|
| 105 | M-D mark all messages in the view for deletion |
---|
| 106 | M-u unmark all messages in the view for deletion |
---|
| 107 | |
---|
| 108 | If you would like to respond to a message sent to you there is a reply |
---|
[3969e3a] | 109 | shortcut: |
---|
[7d4fbcd] | 110 | |
---|
[675ce49] | 111 | r Reply. Personal messages get a personal reply, |
---|
| 112 | group messages get a group reply. |
---|
| 113 | R Reply to sender. Always replies personally |
---|
| 114 | to the sender. |
---|
| 115 | M-r Reply but allow editing of the command line. |
---|
| 116 | M-R Reply to sender but allow editing of the |
---|
| 117 | command line. |
---|
[7d4fbcd] | 118 | |
---|
[bde7714] | 119 | In the event that the current message is too large to fit on the |
---|
| 120 | screen, you can scroll within the message using the following keys: |
---|
[7d4fbcd] | 121 | |
---|
[675ce49] | 122 | SPACE page down |
---|
| 123 | b page up |
---|
| 124 | RETURN line down |
---|
| 125 | BACKSPACE line up |
---|
[7d4fbcd] | 126 | |
---|
[bde7714] | 127 | The message pointer will change to indicate that the message is not |
---|
| 128 | starting at the first line. |
---|
[7d4fbcd] | 129 | |
---|
| 130 | Two other keys that relate to the current message: |
---|
| 131 | |
---|
[675ce49] | 132 | i print detailed information about the message |
---|
| 133 | w instruct netscape to visit a URL in the message |
---|
[7d4fbcd] | 134 | |
---|
| 135 | Other Functions |
---|
| 136 | ---------------- |
---|
[3969e3a] | 137 | Some other functions that can be performed with a single keystroke: |
---|
[7d4fbcd] | 138 | |
---|
[675ce49] | 139 | A toggle zephyr zaway on or off |
---|
| 140 | C-l refresh and resize the screen |
---|
| 141 | C-z suspend |
---|
[7d4fbcd] | 142 | |
---|
| 143 | Command Mode |
---|
| 144 | ------------ |
---|
[3969e3a] | 145 | Owl has a command mode from which you can enter more detailed commands |
---|
[675ce49] | 146 | for Owl to process. To enter command mode press the colon (':') key: |
---|
[7d4fbcd] | 147 | |
---|
[675ce49] | 148 | : begin command mode |
---|
[7d4fbcd] | 149 | |
---|
| 150 | Owl will give you a command prompt and you can begin typing your |
---|
| 151 | command. Type Enter to execute the command, Control-C to cancel. |
---|
[bde7714] | 152 | There are many commands. The basic commands are listed on the basic |
---|
| 153 | help screen (by pressing 'h'). If you'd like a list of all commands |
---|
[3969e3a] | 154 | you can use the command: |
---|
| 155 | |
---|
[675ce49] | 156 | show commands |
---|
[bde7714] | 157 | |
---|
[3969e3a] | 158 | And for detailed information on the syntax and use of a command you |
---|
| 159 | can use: |
---|
| 160 | |
---|
[675ce49] | 161 | help <command> |
---|
[3969e3a] | 162 | |
---|
| 163 | For example "help zwrite" will display all the options available when |
---|
| 164 | using the zwrite command. |
---|
[7d4fbcd] | 165 | |
---|
| 166 | Variables |
---|
| 167 | --------- |
---|
[bde7714] | 168 | Owl has a number of internal variables that can be used to change the |
---|
| 169 | behavior the program. The 'print' command will let you view the value |
---|
| 170 | of a variable and the 'set' commmand will let you set the value of a |
---|
| 171 | variable. For example: |
---|
| 172 | |
---|
[675ce49] | 173 | set personalbell on |
---|
[bde7714] | 174 | |
---|
[675ce49] | 175 | will set the value of the variable 'personalbell' to 'on'. The |
---|
| 176 | command: |
---|
[bde7714] | 177 | |
---|
[675ce49] | 178 | print personalbell |
---|
[bde7714] | 179 | |
---|
| 180 | will show you the current value. The 'print' command with no |
---|
[3969e3a] | 181 | arguments: |
---|
| 182 | |
---|
[675ce49] | 183 | print |
---|
[3969e3a] | 184 | |
---|
| 185 | Owl will show you the value of all variables. You can also use |
---|
| 186 | |
---|
[675ce49] | 187 | show variables |
---|
| 188 | |
---|
| 189 | show variable <variable> |
---|
[3969e3a] | 190 | |
---|
| 191 | To display further information on owl variables. |
---|
| 192 | |
---|
[675ce49] | 193 | |
---|
| 194 | ================ |
---|
| 195 | Section 3: VIEWS |
---|
| 196 | ================ |
---|
| 197 | |
---|
[3969e3a] | 198 | Owl always displays a current "view" of messages. The view describes |
---|
| 199 | which set of messages should be included on the display. The default |
---|
| 200 | view is called "all" and includes every message. However, you can |
---|
[675ce49] | 201 | narrow the view to a particular set of messages: |
---|
[3969e3a] | 202 | |
---|
[675ce49] | 203 | M-n Narrow view to the selected conversation |
---|
| 204 | M-N Narrow view to selected conversation by instance |
---|
| 205 | V Return to the home view (the 'all' view) |
---|
| 206 | X Expunge messages and return to home view |
---|
[3969e3a] | 207 | |
---|
[675ce49] | 208 | If you press M-n while the pointer is on a personal message, the view |
---|
[3969e3a] | 209 | will be narrowed to the conversation with that user only. If used on |
---|
[675ce49] | 210 | a group message the conversation will be narrowed to that group. |
---|
[3969e3a] | 211 | |
---|
[675ce49] | 212 | There are also some Owl commands related to views: |
---|
[3969e3a] | 213 | |
---|
[675ce49] | 214 | viewclass <class> Narrow the view to the named zephyr class |
---|
| 215 | viewuser <user> Narrow the view to the named user |
---|
[3969e3a] | 216 | |
---|
| 217 | More information on views and how they work is included in the section |
---|
| 218 | on "FILTERS AND COLORS". |
---|
| 219 | |
---|
[bde7714] | 220 | ============================= |
---|
[3969e3a] | 221 | Section 4: FILTERS AND COLORS |
---|
[bde7714] | 222 | ============================= |
---|
| 223 | |
---|
[675ce49] | 224 | Filters |
---|
| 225 | ------- |
---|
| 226 | Owl will allow you to create custom message filters. A message filter |
---|
| 227 | is an expression that matches a set of messages based on certain |
---|
| 228 | criteria. Owl comes with a number of build-in filters already. You can |
---|
| 229 | view a list of them with the command: |
---|
| 230 | |
---|
| 231 | show filters |
---|
| 232 | |
---|
| 233 | The default filters include: |
---|
| 234 | |
---|
| 235 | all Matches all messages |
---|
| 236 | none Matches no messages |
---|
| 237 | personal Only personal messages (no group messages) |
---|
| 238 | login Login/Logout notifications |
---|
| 239 | auto Messages generated by automated programs |
---|
| 240 | out Messages sent from you to another user |
---|
| 241 | zephyr Zephyr messages |
---|
| 242 | trash "Trash" messages |
---|
| 243 | ping Zephyr pings |
---|
| 244 | reply-lockout Messages for which the reply commands |
---|
| 245 | should not work |
---|
| 246 | |
---|
| 247 | If you wish to view the messages that match a particular filter, use |
---|
| 248 | the 'view' command. For example: |
---|
| 249 | |
---|
| 250 | view personal |
---|
| 251 | |
---|
| 252 | This will display only personal messages on the screen. You can |
---|
| 253 | change back to the 'all' view by pressing the 'V' key (capitalized). |
---|
| 254 | Note that the 'v' key (not capitalized) is a shortcut to bring up the |
---|
| 255 | 'view' command. |
---|
[bde7714] | 256 | |
---|
[675ce49] | 257 | You can also create your own filters. For more information on this, |
---|
| 258 | consult the Owl Advanced Users Guide. |
---|
| 259 | |
---|
| 260 | Colors |
---|
| 261 | ------ |
---|
| 262 | Every filter can have a color associated with it. Messages matching |
---|
| 263 | the filter will then be displayed in that color if your terminal |
---|
| 264 | supports it. The color for a filter can be set by using the '-c' |
---|
| 265 | option to the filter command. For example: |
---|
| 266 | |
---|
| 267 | filter personal -c white |
---|
| 268 | |
---|
| 269 | This cause all messages in the 'personal' filter to be displayed in |
---|
| 270 | white. You can produce a list of the colors available to Owl with the |
---|
| 271 | command: |
---|
| 272 | |
---|
| 273 | show colors |
---|
| 274 | |
---|
| 275 | If a message matches more than one filter it will be displayed in the |
---|
| 276 | color specified in the last filter listed in the 'show filters' |
---|
| 277 | command. |
---|
| 278 | |
---|
| 279 | If you would like your color settings to persist, such that they are |
---|
| 280 | preset every time you start Owl, please read the "Saving Your |
---|
| 281 | Settings" section below. |
---|
| 282 | |
---|
| 283 | =============================== |
---|
| 284 | Section 5: SAVING YOUR SETTINGS |
---|
| 285 | =============================== |
---|
| 286 | |
---|
| 287 | Any changes you make to Owl are lost when the program is terminated, |
---|
| 288 | unless you specify otherwise. If you would like a setting to persist |
---|
| 289 | such that it is available every time you start Owl you can use the |
---|
| 290 | word 'startup' before any command. For example: |
---|
| 291 | |
---|
| 292 | startup filter personal -c white |
---|
| 293 | |
---|
| 294 | Will instruct Owl to color personal messages white both in the current |
---|
| 295 | session and in any future Owl session. You may revert this behavior |
---|
| 296 | with the 'unstartup' command: |
---|
| 297 | |
---|
| 298 | unstartup filter personal -c white |
---|
| 299 | |
---|
| 300 | which will not affect the current session, but will cause future |
---|
| 301 | sessions not to take this action. |
---|
| 302 | |
---|
| 303 | Here is another example, this instructs Owl to display zephyr ping |
---|
| 304 | messages: |
---|
| 305 | |
---|
| 306 | startup set rxping on |
---|
[bde7714] | 307 | |
---|
| 308 | ========================== |
---|
[675ce49] | 309 | Section 6: THE CONFIG FILE |
---|
[bde7714] | 310 | ========================== |
---|
[7d4fbcd] | 311 | |
---|
| 312 | *** WARNING: This interface may change substantially in the near future *** |
---|
| 313 | |
---|
[aa1bbf6] | 314 | The ~/.owlconf file is interpreted by the perl interpreter. You may |
---|
| 315 | specify an alternate file by running owl with "owl -c <configfile>". |
---|
[7d4fbcd] | 316 | |
---|
[aa1bbf6] | 317 | If you wish to execute an owl command from .owlconf use the function |
---|
| 318 | owl::command(). i.e.: |
---|
[7d4fbcd] | 319 | |
---|
[aa1bbf6] | 320 | owl::command('set zsigproc "/mit/kretch/bin/getzsig foo"'); |
---|
[7d4fbcd] | 321 | |
---|
| 322 | Subroutines created with the names below will be executed at the |
---|
| 323 | specified times: |
---|
| 324 | |
---|
| 325 | subroutine name properties |
---|
| 326 | --------------- ---------- |
---|
| 327 | owl::startup() run when owl first starts |
---|
| 328 | owl::shutdown() run when owl exits |
---|
[c82b055] | 329 | owl::format_msg() run to format messages when using the perl style. |
---|
| 330 | The return value is used to display the message on the |
---|
| 331 | screen. |
---|
[7d4fbcd] | 332 | owl::receive_msg() run when a message is received, and after |
---|
| 333 | it has been added to the message list |
---|
| 334 | |
---|
[aa1bbf6] | 335 | Both owl::format_msg and owl::receive_msg are passed perl owl::Message |
---|
| 336 | objects which contain attributes of the message. Please see the |
---|
| 337 | advanced.txt file for further documentation of the Perl extension API. |
---|
[7d4fbcd] | 338 | |
---|
[aa1bbf6] | 339 | The "appendtosepbar" variable may be set in owl::format_msg() to set |
---|
| 340 | text to be appended to sepbar that separates the received message list |
---|
| 341 | from the edit window. |
---|
[7d4fbcd] | 342 | |
---|
| 343 | |
---|
[675ce49] | 344 | ========================================== |
---|
| 345 | Section 4: KEYBINDINGS AND COMMAND ALIASES |
---|
| 346 | ========================================== |
---|
| 347 | |
---|
[c82b055] | 348 | Aliases |
---|
| 349 | ------- |
---|
| 350 | |
---|
| 351 | Command aliases allow users to create shortcuts |
---|
| 352 | for commonly used commands. Aliases can be created wit |
---|
| 353 | the alias command: |
---|
| 354 | |
---|
| 355 | alias NAME VALUE |
---|
| 356 | |
---|
| 357 | For example: |
---|
| 358 | |
---|
| 359 | alias zw zwrite |
---|
| 360 | |
---|
| 361 | Will make "zw" an alias for the zwrite command. As such, "zw aphacker" |
---|
| 362 | will be expanded to "zwrite aphacker". If the value of an |
---|
| 363 | alias is multiple words, use of the alias will result in the alias |
---|
| 364 | command name being replaced by the sequence of words. |
---|
| 365 | Any arguments following the alias name will be appended |
---|
| 366 | after the expanded alias value. For example: |
---|
| 367 | |
---|
| 368 | alias vs view -s |
---|
| 369 | |
---|
| 370 | will result in "vs standard" being expanded to "view -s standard". |
---|
| 371 | There is not yet any way to allow an alias to take arguments |
---|
| 372 | that will be inserted in the middle of the expansion. |
---|
| 373 | |
---|
| 374 | |
---|
| 375 | Separating Commands |
---|
| 376 | ------------------- |
---|
| 377 | |
---|
| 378 | Multiple commands can be grouped together with parentheses |
---|
| 379 | and then separated by semicolons. For example: |
---|
| 380 | |
---|
| 381 | ( smartnarrow ; delete view ; expunge ; view all ) |
---|
| 382 | |
---|
| 383 | Will result in the four commands being executed |
---|
| 384 | in sequence. This is particularly useful with key bindings |
---|
| 385 | and coommands. For example: |
---|
| 386 | |
---|
| 387 | alias sn-delete ( smartnarrow ; delete view ) |
---|
| 388 | |
---|
| 389 | will create an "sn-delete" alias that will smartnarrow |
---|
| 390 | to a view and them mark the view for deletion. |
---|
| 391 | |
---|
| 392 | Using "show commands" will list all existing aliases. |
---|
| 393 | |
---|
| 394 | |
---|
| 395 | Key Bindings |
---|
| 396 | ------------ |
---|
| 397 | |
---|
| 398 | New key bindings may be created with the "bindkey" command. Each key |
---|
| 399 | binding is associated with a particular keymap which is applicable in |
---|
| 400 | a particular context/situation. When the key associated with a |
---|
| 401 | binding is pressed in the right context, it will result in an owl |
---|
| 402 | command being run. The syntax is: |
---|
| 403 | |
---|
| 404 | bindkey <keymap> <keyseq> command <command> |
---|
| 405 | |
---|
| 406 | For example: |
---|
| 407 | |
---|
| 408 | bindkey recv C-k command delete |
---|
| 409 | |
---|
| 410 | will bind Control-k to the delete command, but only in the |
---|
| 411 | recv window context. |
---|
| 412 | |
---|
| 413 | Some keymaps inherit their bindings from more |
---|
| 414 | general keymaps. The valid keymaps are: |
---|
| 415 | |
---|
| 416 | - global - owl-wide defaults (apply everywhere) |
---|
| 417 | |-edit - all text editing and command windows |
---|
| 418 | | |-editmulti - multi-line text editing windows |
---|
| 419 | | |-editline - single-line editing and command windows |
---|
| 420 | | |-editresponse - single-line responses to questions |
---|
| 421 | |-popless - scrolling pop-up windows |
---|
| 422 | |-recv - the main message list window |
---|
| 423 | where received messages are displayed |
---|
| 424 | |
---|
| 425 | The existing key bindings can be shown with "show keymaps". |
---|
| 426 | The use of "show commands" will list all available commands. |
---|
| 427 | Note that not all commands may be used in all contexts. |
---|
| 428 | |
---|
| 429 | Key sequences may be surrounded by quotes and include |
---|
| 430 | a sequence of keys that must be pressed in order |
---|
| 431 | to execute the command. For example: |
---|
| 432 | |
---|
| 433 | bindkey recv "C-s v" command view -s vt |
---|
| 434 | |
---|
| 435 | will result in "Control-s" followed by "v" in the recv window |
---|
| 436 | causing the command "view -s vt" to be run. |
---|