ctrl (was: end of line character)
Maarten Litmaath
maart at cs.vu.nl
Tue Jul 11 07:30:05 AEST 1989
guy at auspex.auspex.com (Guy Harris) writes:
\...
\> cr="`ctrl M`"
\
\You forgot to supply the "ctrl" command - it's not a standard part of S5
\(I couldn't find it, anyway). [...]
comp.sources.unix, april this year.
CTRL(1) USER COMMANDS CTRL(1)
NAME
ctrl, unesc - translate printable characters to
corresponding control characters
esc, bell, beep - generate ESC and BEL characters
SYNOPSIS
ctrl string
unesc symbolic escape sequence
esc
bell [ count ]
beep [ count ]
DESCRIPTION
The use of ctrl in all its forms is to avoid real escape
sequences in ordinary ASCII files, e.g. .login.
EXAMPLES
unesc '^[[7mStandout mode on a Sun console.'
is equivalent to
echo "`esc`[7mStandout mode on a Sun console."
ctrl GG G
is equivalent to
bell 3
AUTHOR
Maarten Litmaath @ VU Informatika Amsterdam
--
"... a lap-top Cray-2 with builtin |Maarten Litmaath @ VU Amsterdam:
cold fusion power supply" (Colin Dente) |maart at cs.vu.nl, mcvax!botter!maart
More information about the Comp.unix.questions
mailing list