16.12.2012 Views

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Examples<br />

1. This example shows how to print all the terminal entries in the file<br />

/etc/termcap.src in terminfo format. The entry for a vt52 is shown. Issue:<br />

captoinfo /etc/termcap.src<br />

You get the following display:<br />

captoinfo: obsolete 2 character name ’dv’ removed.<br />

synonyms are: ’vt52|dec vt52’<br />

#<br />

vt52|dec vt52,<br />

xon,<br />

cols#80, lines#24,<br />

bel=^¬, clear=-E-310-E-321, cub1=^½, cud1=^-,<br />

cuf1=-E-303,<br />

cup=-E-350%-227-361%’-s’%+%-203%-227-362%’-s’%+%-203,<br />

cuu1=-E-301, ed=-E-321, el=-E-322, ind=^-,<br />

kbs=^½, kcub1=-E-304, kcud1=-E-302, kcuf1=-E-303,<br />

kcuu1=-E-301, ri=-E-311,<br />

# END OF TERMCAP<br />

# ------------------------<br />

2. To print all the terminal entries in the file /etc/termcap.src in terminfo format<br />

with each entry on a separate line, issue:<br />

captoinfo –1 /etc/termcap.src<br />

You get the following display:<br />

captoinfo: obsolete 2 character name ’dv’ removed.<br />

synonyms are: ’vt52|dec vt52’<br />

#<br />

vt52|dec vt52,<br />

xon,<br />

cols#80,<br />

lines#24,<br />

clear=-E-310-E-321,<br />

cub1=^½,<br />

cud1=^-,<br />

cuf1=-E-303,<br />

cup=-E-350%-227-361%’-s’%+%-203%-227-362%’-s’%+%-203,<br />

cuu1=-E-301,<br />

ed=-E-321,<br />

el=-E-322,<br />

ind=^-,<br />

kbs=^½,<br />

kcub1=-E-304,<br />

kcud1=-E-302,<br />

kcuf1=-E-303,<br />

kcuu1=-E-301,<br />

ri=-E-311,<br />

# END OF TERMCAP<br />

# ------------------------<br />

3. This example shows how to write all the terminal entries in the file<br />

/etc/termcap.src to the file /test/terminfo.ti. The resulting file can be processed<br />

by tic. Notice that the error messages are written to stderr.<br />

captoinfo /etc/termcap.src 1> /test/terminfo.ti<br />

You get the following:<br />

captoinfo: obsolete 2 character name ’dv’ removed.<br />

synonyms are: ’vt52|dec vt52’<br />

#<br />

captoinfo<br />

Chapter 2. Shell command descriptions 109

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!