z/OS UNIX System Services User's Guide
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Suppressing the newline character

z/OS UNIX System Services User's Guide
SA23-2279-00

Whenever 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 in Figure 1.

 

Figure 1. Typing an escape sequence
 
===>  ¢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

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014