#ESC in Echo
08-Apr-88 13:16:29
Sb: #117966-#ESC in Echo
Fm: John Draper 76703,4322
To: Roger F. Becker 71426,1053
This message turned up in search, but its forum couldn’t be identified from the original transcript, so it may not be linked into its thread.
I really don't know abnout the other sequences. I wrote a replacement
echo command very early on, before I found out about BCPL ESC sequences,
and use that exclusively now. It allows a much nicer way of specifying the
output than using the '*' escape. The syntax is something like:
echo -ct3 This line will be at the top of the screen, in one tab, in colour
3
The 'c' is clear screen, the t is tab, and the 3 sets colour 3. You can
also set background colour, bold, italic, underline, and suppress the
linefeed. This last is handy for doing things like:
echo -n "Today's date and time is: "
date
which will put everything on one line. My echo was also 36 bytes shorter
than the BCPL equivalent. If you are at all interested in it, it's in DL
10, complete with source code.