Suppressing the newline character
When you press <Enter>, a <newline> character is automatically appended to the characters you typed. For certain UNIX applications, you may want to suppress the automatic <newline> character appended when you press <Enter>.
If you use the Control function key to input an escape sequence, no <newline> character is appended. However, if you use an escape character to input an escape sequence, a <newline> character is appended to the sequence. To suppress the <newline> character, add an escape character at the end of the input and press <Enter>.
For example, in the shell, the two-character EBCDIC sequence <EscChar-D> is the equivalent of
the ASCII control sequence <Ctrl-D>. To enter only an <EscChar-D> with no final <newline>, type the string
<EscChar-D-EscChar> on the command line, and press <Enter>; an example is shown as follows:
===> ¢d¢
INPUT <3>
ESC=¢ 1=Help 2=SubCmd 3=HlpRetrn 4=Top 5=Bottom 6=TSO
7=BackScr 8=Scroll 9=NextSess 10=Refresh 11=FwdRetr 12=Retrieve