[comp.sys.atari.st] Uniterm 2.0e help

smisra@eos.ncsu.edu (02/01/91)

I am using the latest version I can find of Uniterm.  In the function
editor how does one put a carriage return at the end of a key

Like for example: if you want to get 'vax*' written and entered into
the computer when you press F1 how can you get the carriage return in?
Thanks 
Saurabh
smisra@eos.ncsu.edu

REEVES@SLACVM.SLAC.STANFORD.EDU (Terry Reeves) (02/02/91)

The Uniterm manual suggests that you should try cntrl-M.

                                             Terry Reeves

Disclaimer: The thoughts and opinions expressed above have nothing to do with
SLAC or its policies.

weber_w@apollo.HP.COM (Walt Weber) (02/09/91)

In article <91032.112332REEVES@SLACVM.SLAC.STANFORD.EDU>, Terry Reeves writes:
|> The Uniterm manual suggests that you should try cntrl-M.

Whoa!! The question was "how to get Uniterm 2.0e to send a carriage return".
The example requested was to get the character string "vax*" sent from f1.

Looking at the macro language section, the syntax is as follows:

    send('vax*\r')         # if you want the CR
    send('vax*\n')         # if you want the NEWLINE

To get it into a function key macro, the macro is %send('vax*\r'),
meaning that you must escape macro-language function calls with '%'.

Note that the string handling stuff also supports "\0xx" for an arbitrary
octal string. Since 7-bit ascii won't fit into 2 octal digits, I believe it
might be HEX and not octal - but I haven't tried anything more than '\r' and
'\n', both fo which work just fine.

...walt...

Walt Weber                           Hewlett Packard Response Center
508-256-6600x6772                    Chelmsford, MA, USA
   "The power of accurate observation is commonly called cynicism
    by those who have not got it" -George Bernard Shaw

REEVES@SLACVM.SLAC.STANFORD.EDU (Terry Reeves) (02/09/91)

In article 4fb2916e.20b6d, Walt Weber points out how I may have given incorrect
advice for programming Uniterm to send the string "vax*" followed by a
carriage return when the F1 key was pressed. He then presents an example of
how to use macros within function key definitions to achieve the desired
effect. However, my solution does work and is simplier if all you want to do is
send the string "vax*" followed by a carriage return. There is no need to imbed
the string in a macro. Now if you need some real smarts in the characters sent,
then a macro is essential.

                                                Terry

Disclaimer: The above are my opinions and are not the opinions of SLAC,
            Stanford University, or the DOE.

weber_w@apollo.HP.COM (Walt Weber) (02/09/91)

In article <91039.155450REEVES@SLACVM.SLAC.STANFORD.EDU>, Terry Reeves writes:
|> In article 4fb2916e.20b6d, Walt Weber points out how I may have given
incorrect
|> advice

Terry is being more than kind. What might be more correct is "Walt stuck his
foot in his mouth by not checking for simpler ways to do something than what
Walt stumbled over".  Sorry that it came across that way.

<We return you to your regularly-posted Amiga flame-war thread>

...walt...

Walt Weber                           Hewlett Packard Response Center
508-256-6600x6772                    Chelmsford, MA, USA
   "The power of accurate observation is commonly called cynicism
    by those who have not got it" -George Bernard Shaw