42 lines
742 B
Groff
42 lines
742 B
Groff
.TH chr "" "" "/rdb Command"
|
|
.PC "Display the character corresponding to a number"
|
|
\fBchr \fInumber ...\fR
|
|
.PP
|
|
.II "integer^convert to ASCII"
|
|
.II "convert integer to ASCII"
|
|
.II "ASCII^convert from integer"
|
|
.B chr
|
|
converts each of the integers on
|
|
its command line to its corresponding ASCII character.
|
|
You can use it to send special characters to the screen.
|
|
This gives you a good way to produce special characters that are
|
|
hard to type or are interpreted by the shell.
|
|
.SH Example
|
|
Here we convert several characters.
|
|
.DM
|
|
chr 97 65 49
|
|
aA1
|
|
.DE
|
|
.DM
|
|
chr 7
|
|
[beep]
|
|
.DE
|
|
.DM
|
|
echo `chr 7`Wake up
|
|
[beep]Wake up
|
|
.DE
|
|
.PP
|
|
The
|
|
.B [beep]
|
|
is the sound.
|
|
It does not print on your terminal.
|
|
.SH "See Also"
|
|
.B
|
|
ascii
|
|
.R
|
|
.br
|
|
COHERENT Lexicon:
|
|
.B
|
|
ASCII
|
|
.R
|