| |
Quick Tutorial - Interactive from TTY keyboard
Overview
If you are operating Heavy Metal from a TTY keyboard, you should start the
program with a special option that suppresses modal dialog boxes for errors
and warnings. To do this:
perl heavymetal.pl --remotemode 1
Operating Heavy Metal from the TTY keyboard requires fairly extensive use
of the ".,.NAME" escape mechanism. In general, you'll first
type a .,.NAME command to initiate an action, which may prompt you for
additional info. To effectively use this mode, you will need to be
familiar with the .,.NAME escapes, particularly:
 | .,.LC - Lowercase lock. This is required for
entering case-sensitive passwords, commands and filenames. |
 | .,.UC - Turn off lowercase lock. |
 | .,.DEL - Delete the current input line and start
over. Use this if you've messed up your response to an input prompt. |
 | .,.ABORT - Cancel an entire prompted operation. |
 | .,.END or "NNNN" - Terminate block entry mode (used for the
body of email messages). |
Note that a .,.NAME escape is terminated by either a return or a
space. If terminated by a space, that space is considered part of the
".,.NAME " escape. For example, suppose you need to enter the
following case-sensitive password:
12ABcd
From your Baudot TTY keyboard, you'd have to type:
<figs>12<ltrs>AB<figs>.,.<ltrs>LC
CD
Now, that's a bit messy, but it does give you the flexibility to do most
anything. Note also that you can, if you choose, edit heavymetal.pl or
the config file, heavymetal.cfg, to save your defaults for SMTP and POP mail
servers, email From:, and passwords.
One more thing, when doing prompted entry, Heavy Metal will show you the
current value of the thing it is prompting for. If it's correct, just
hit <return> and the current value will be used.
Action Codes
Here's the current list of supported action codes (note - be sure to do
".,.USAGE" after getting new releases of Heavy Metal to see new and
changed action codes):
 | .,.LC - Turn on lowercase
lock |
 | .,.UC - Turn off losercase
lock |
 | .,.EMAIL - Send email |
 | .,.BROWSE - Surf the web (needs Lynx browser) |
 | .,.TELNET - Telnet to a computer, exec 1
command and return |
 | .,.EXIT - Quit Heavy Metal |
 | .,.END - Terminate block input mode (i.e. done
with email body) |
 | .,.ALBANY - Example showing Albany, NY weather
report |
 | .,.SANJOSE - Example showing San Jose, CA
weather report |
 | .,.GREENKEYS - Print out messages in your
mailbox from GreenKeys teletype enthusiast mailing list |
 | .,.HEADERS - Print out headers from all email
in your mailbox. |
 | .,.ALLMAIL - Print out all your email |
 | .,.QUOTE - Prompt for stock symbol and show
quote |
 | .,.FULLQUOTE - Same, but with all available
info |
 | .,.PORTFOLIO - Display sample stock portfolio
(edit heavymetal.pl to create your own). |
 | .,.ABORT - Cancel current action (valid only in
prompts). |
 | .,.FTP - Prompt for file to fetch using FTP |
 | .,.DEL - Delete current line of prompted data
and retry. |
 | .,.HOSTCMD - Execute a command on the host
computer |
 | .,.SLEEP - Put heavymetal to sleep |
 | .,.TOPNEWS - Print out AP top stories summary |
 | .,.NEWSWIRE - Print out all new news and
summaries. |
 | .,.USAGE - Display list of ".,."
escapes |
Letter Codes
Here's the current list of support letter codes that can be used for code
sets that don't include them:
 | .,.AT - "@" |
 | .,.BANG - "!" |
 | .,.SPLAT - "#" |
 | .,.PC - "%" |
 | .,.TILDE - "~" |
 | .,.CARET - "^" |
 | .,.STAR - "*" |
 | .,.AND - "&" |
 | .,.PLUS - "+" |
 | .,.EQ - "=" |
 | .,.LPAREN - "(" |
 | .,.RPAREN - ")" |
 | .,.LT - "<" |
 | .,.GT - ">" |
 | .,.SQUOTE - "'" |
 | .,.QMARK - "?" |
 | .,.SLASH - "/" |
 | .,.BSLASH - "\" |
|