Server for Information Technologies ������ ��������������
������� �������������� ����������
(095) 932-9212, 932-9213, 939-0783
E-mail: [email protected]
������ �������� ����(!) ������������� ���������� CIT Forum CD-ROM

TERMINFO(5)

��������
terminfo - ���� ������ ������� ���������

���������

     /usr/lib/terminfo/*/*

��������
terminfo - ���� ������, ����������� ���������, ������������ � ������� � ������� terminfo(2). ��������� ����������� � terminfo ���������� �������, �������� ��� �����������, � ���������, ��� ����������� ��������. ���������� ���������� � ������������������ ������������� ���������� � terminfo.

����� � terminfo ������� �� ��������� �����, ����������� ������� ','. ������� ����� ������ ',' ������������. ������ ���� ��� ������� ��������� ���� ��������� �����, ��������� ���������. ������ �� ���� ������ ����������� "|". ������ �������� ��� - �������� ����� ������������ ��� ���������, (���������� "�������� ������"), ��������� �������� ��� ������ ���� ������� ������, ��������� ���������������� ��������, � ��� ������ �������������� ��� �������� ����� ���������. ��� �����, ����� ����������, ������ �������� �� ������� ���� � �� ��������� ��������; ��������� ��� ����� ��������� ������� ����� � ������� ��� �������������.

����� ���������� (����� ���������� �����) ������ ���������� ��� ������������� ��������� �����������. ��������� ���������� �����, ����������� ���� ���������, ������ ����� ��������� �������� ���, ��������, "h2621". ��� ��� �� ������ ��������� ��������, �� ����������� ��� ���������, ������� ����� ���� �������, � �� ������������� � ������� �������. ������, � ������� ����� ���������� ���������, ��� ������� �� ������������ ������������, ������ �����������, ����������� �������� � ��������� ������. ���, vt-100 � ������ �� 132 ��������� ������ ���� vt100-w. ����� ��������, ������� ������������ ��������� ��������:
���������������������
-w������� ����� (����� ��� 80 �������)vt100-w
-am� ��������������� ������ (������ �� ���������)vt100-am
-nam��� �������������� �����vt100-nam
-n����� ����� �� ������aaa-60
-na��� ������-������� (��������� �� �� �����)c100-na
-np����� ������� � ������c100-4p
-rv������������ �����c100-rv

� ��������� ������� "variable" - ���, � ������� �������� ����������� (������������ ���������� terminfo) ���������� �����������. "capname" - �������� ���, ������������ � ������ ���� ������ � � ������� ������������� ���������������� ���� ������. "i.code" - ���������� ��� �� ���� ����, ������������ ��� ����������� ���� ������, � ������ ������������� ����� ����������� termcap(5).

��� ����������� �� ����� �������� ������� �����, �� ���������� ������ �� 5 �������� ������������� ��� ���������� �� ���������. ������ ���, ����� ��������, ����� ���������� ���, ����� ���� ������ �� ��� ��������� ANSI X3.64-1979 ���������. ���������, �����, ��������������� ��� ������������� �� ������������.

VariableCapnameI. CodeDescription
Booleans:
�uto_left_marginbwbwcub1 �������������� �� ������� 0 �� ���������� �������.
auto_right_marginamam�������� ����� �������������� �������.
beehive_glitchxsbxb"����" (f1-Escape; f2 - Ctrl C)
ceol_standout_glitchxhpxs������� ������� ������� �� ���������������� (hp)
eat_newline_glitchxenlxn������� ����� ������ ������������ ����� 80-�� �������� (Concept)
erase_overstrikeeoeo����� �������� ������ ������� ��������
generic_typegngn������� ��� ������ (����., dialup, switch)
hard_copyhchc�������� ������� �����
has_meta_keykmkm������� ����-������� (����. �������, ������������� ��� ��������)
has_status_linehshs������� �������������� "������ ���������"
insert_null_glitchinin����� ������� ���������� ��������� "�����"
memory_abovedada����������� ����� ���� ��������� ����� �������
memory_belowdbdb����������� ����� ���� ��������� ��� ���������
move_insert_modemirmi������������ �� ����������� � ������ �������
move_standout_modemsgrms������������ �� ����������� ������� standout
over_strikeosos������ ��������� ������� ���������
status_line_esc_okeslokes� ������ ��������� ����� ���� ����������� Escape
teleray_glitchxtxt"�����������" ���������, ������ magic so
tilde_glitchhzhzHazeltine; ���������� ������ �������� ~
transparent_underlineulul������ ����� ������� �������������
xon_xoffxonxo�������� ���������� ���������� XON/XOFF
��������:
columnscolsco���������� �������� � ������
init_tabsitit���������� ��������� ����������� ������ # ��������
lineslinesli���������� ����� �� ������ ��� ��������
lines_of_memorylmlm����� � ������ (���� ������, ��� lines). �������� 0 ���������, ��� �������� ���������
magic_cookie_glitchxmcsg���������� ��������, ����������� smso � rmso.
padding_baud_ratepbpb������ �������� ���, ��� ������� ��������� ���������� ��������� cr/nl.
virtual_terminalvtvt����������� ����� ��������� (������� UNIX)
width_status_linewslws���-�� �������� � ������ ���������
���������:
back_tabcbtbt�������� ��������� (�)
bellbelbl�������� ������ (�)
carriage_returncrcr������� ������� (�*)
change_scroll_regioncsrcs��������� �� ������ �� #1 �� #2 (vt-100) (PG)
clear_all_tabstbcct���������� ��� ������� ��������� (�)
clear_screenclearcl������� ������ � ��������� ������� � ��������� ���������
clr_eolelce������� �� ����� ������
clr_eosedcd������� �� ����� ����������� (�*)
column_addresshpach��������� ������� �������
command_charactercmdchCC��������������� ������ cmd � ���������
cursor_addresscupcm������������� ����������� ������� �� ������: ������ #1, ������� #2 (PG)
cursor_downcud1do���� �� ���� ������
cursor_homehomeho������ � ��������� ��������� (���� �� cup)
cursor_invisiblecivisvi������� ������ ���������
cursor_leftcub1le����������� ������ ����� �� ���� �������
cursor_mem_addressmrcupCM(+)������������� ��������� ������� � ������
cursor_normalcnormve������� ������ ������� (���������� vs/vi)
cursor_rightcuf1nd���������������� ����������� ������� (������ ������)
cursor_to_llllll��������� ������, ������ ������� (���� �� �up)
cursor_upcuulup����� �� ������ (������ �����)
cursor_visiblecvvisvs������� ������ �������
delete_characterdch1dc�������� ������� (�*)
delete_linedlldl�������� ������ (�*)
dis_status_linedslds������� ����������� ������ ���������
down_half_linehdhd���� �� �������� ������ (������ �� 1/2 �������� ������)
enter_alt_charset_modesmacsas������ �������������� ����� �������� (�)
enter_blink_modeblinkmb�������� ����� ��������
enter_bold_modeboldmd�������� ����� ��������� �������
enter_ca_modesmcupti������� ��� ������ ��������, ������� ���������� cups
enter_delete_modesmdcdm����� �������� (����)
enter_dim_modedimmh�������� ����� ���������� �������
enter_insert_modesmirim����� ������� (����)
enter_protected_modeprotmp�������� ����� ������
enter_reverse_moderevmr�������� �������� ����������
enter_secure_modeinvismk�������� ����� �������� (������� ��������)
enter_standout_modesmsoso������ ����� standout
enter_underline_modesmulus������ ����� �������������
erase_charsechec������� #1 �������� (PG)
exit_alt_charset_modermacsae��������� �������������� ����� ��������
exit_attribute_modesgr0me��������� ��� ��������
exit_ca_modermcupte������� ��� ���������� ��������, ������� ���������� cups
exit_delete_modermdced��������� ����� ��������
exit_insert_modermirei��������� ����� �������
exit_standout_modermsose��������� ����� standout
exit_underline_modermulue��������� ����� �������������
flash_screenflashvb������ ��������� ������� ����� (����� �� ����������� ������)
form_feedffff������ �������� ������� ����� (�*)
from_status_linefslfs������� �� ������ ���������
init_1stringis1i1������ ������������� ���������
init_2stringis2i2������ ������������� ���������
init_3stringis3i3������ ������������� ���������
init_fileifif��� �����, ����������� is
insert_charactersich1ic������� ������� (�)
insert_lineil1al���������� ������ ������ (�*)
insert_paddingipip����� ������������ ������� �������� ������-�����������
key_backspacekbskb���������� �������� "��� �����"
key_catabktbcka���������� �������� ������� ���� ���������
key_clearkclrkC(+)���������� ��������� ������� ������ ��� ��������
key_ctabkctabkt���������� �������� ������� ���������
key_dckdchlkD(+)���������� �������� ��������
key_dlkdllkL(+)���������� �������� �������� ������
key_downkcud1kd���������� �������� "������� ����" ���������
key_eickrmirkM(+)���������� rmir ��� smir � ������ �������
key_eolkelkE(+)���������� �������� ������� �� ����� ������
key_eoskedkS(+)���������� �������� ������� �� ����� ������
key_f0kf0k0���������� �������������� �������� f0
key_f1kf1k1���������� �������������� �������� f1
key_f10kf10k���������� �������������� �������� f10
key_f2kf2k2���������� �������������� �������� f2
key_f3kf3k3���������� �������������� �������� f3
key_f4kf4k4���������� �������������� �������� f4
key_f5kf5k5���������� �������������� �������� f5
key_f6kf6k6���������� �������������� �������� f6
key_f7kf7k7���������� �������������� �������� f7
key_f8kf8k8���������� �������������� �������� f8
key_f9kf9k9���������� �������������� �������� f9
key_homekhomekh���������� �������� home
key_ickich1kl���������� ��������� �������/ ����� � ������ �������
key_ilkillkA(+)���������� �������� ������
key_leftkcub1kl���������� �������� "������� �����"
key_llkllkH(+)���������� �������� home-down
key_npageknpkN(+)���������� �������� ��������� ��������
key_ppagekppkP(+)���������� �������� ���������� ��������
key_rightkcuf1kr���������� �������� "������� ������"
key_sfkindkF(+)���������� �������� ��������� ������/����
key_srkrikR(+)���������� �������� ��������� �����/�����
key_stabkhtskT(+)���������� �������� ��������� ���������
key_upkcuu1ku���������� �������� "������� �����"
keypad_localrmkxke��� ������ "keypad transmit"
keypad_xmitsmkxks��������� �������� � ����� "keypad transmit"
lab_f0lf0l0����� �� �������������� ������� f0, ���� �� f0
lab_f1lf1l1����� �� �������������� ������� f1, ���� �� f1
lab_f10lf10la����� �� �������������� ������� f10, ���� �� f10
lab_f2lf2l2����� �� �������������� ������� f2, ���� �� f2
lab_f3lf3l3����� �� �������������� ������� f3, ���� �� f3
lab_f4lf4l4�e��� �� �������������� ������� f4, ���� �� f4
lab_f5lf5l5����� �� �������������� ������� f5, ���� �� f5
lab_f6lf6l6����� �� �������������� ������� f6, ���� �� f6
lab_f7lf7l7����� �� �������������� ������� f7, ���� �� f7
lab_f8lf8l8����� �� �������������� ������� f8, ���� �� f8
lab_f9lf9l9����� �� �������������� ������� f9, ���� �� f9
meta_onsmmmm��������� ������ "meta mode"
meta_offrmmmo���������� ������ "meta mode"
newlinenelnw����� ������ (����� ���� ��� cr, �� ������� ������� lf)
pad_charpadpc������-����������� (������ ������� �������)
parm_dchdchDC(+)������� #1 �������� (PG*)
parm_delete_linedlDL(+)������� #1 ����� (PG*)
parm_down_cursorcudDO(+)����������� ������ ���� �� #1 ����� (PG*)
parm_ichichIC(+)�������� #1 �������� (PG*)
parm_indexindnSF(+)��������� ������ �� #1 ����� (PG)
parm_insert_lineilAL(+)�������� #1 ������ ����� (PG*)
parm_left_cursorcubLE(+)����������� ������ ����� �� #1 ������� (PG*)
parm_right_cursorcufRI(+)����������� ������ ������ �� #1 ������� (PG*)
parm_rindexrinSR(+)��������� ����� �� #1 ����� (PG)
parm_up_cursorcuuUP(+)����������� ������ ����� �� #1 ����� (PG*)
pkey_keypfkeypk����������� �������������� ������� #1 ��� ������ ������ #2
pkey_localpflocpl����������� �������������� ������� #1 ��� ���������� ������ #2
pkey_xmitpfxpx����������� �������������� ������� #1 ��� �������� ������ #2
print_screenmc0ps������ ����������� ������
prtr_offmc4pf��������� ��������
repeat_charreprp���������� ��������
reset1_stringrs1r1������ ����� ��������� � ������� ������
reset2_stringrs2r2������ ����� ��������� � ������� ������
reset3_stringrs3r3������ ����� ��������� � ������� ������
reset_filerfrf��� �����, ����������� ������ ������
restore_cursorrcrc��������� ������� � ������� ���������� sc
row_addressvpacv���������� ������� �� ��������� (������ ���������) (PG)
save_cursorscsc���������� ������� ������� (�)
scroll_forwardindsf��������� ������ ����� (�)
scroll_reverserisr��������� ������ ���� (�)
set_attributessgrsa���������� ������������� (PG9)
set_tabhtsst���������� ��������� �� ��� ������� ������� ������
set_windowwindwi������� ����� �������� ������ #1-#2, ������� #3-#4
tabhtta������������ �� ���������� ����� ��������� ������������ ����� 8 �������
to_status_linetslts������� � ������ ���������, ������ �������
underline_charucuc����������� ���� ������ � ������ �� ���
up_half_linehuhu����� �� ���-������ (����� �� 1/2 ������� ������)
init_progiprogiP������ ��� ��������� �������������
key_a1ka1K1(+)������� ����� ���� ����������
key_a3ka3K3(+)������� ������ ���� ����������
key_b2kb2K2(+)����� ����������
key_c1kc1K4(+)������ ����� ���� ����������
key_c3kc3K5(+)������ ������ ���� ����������
prtr_onmc5ppO(+)�������� ������� ��� #1 ������

������� ����
��������� ����, ����������� Concept-100, ��������� ����� ����� ������� � ����� terminfo.

     concept100 |c100| concept| c104| c100-4p| concept 100,
        am, bel=^G, blank=\EH, blink=\EC, clear=^L$<2*>, cnorm=\Ew,
        cols#80, cr=^M$<9>, cub1=^H, cud1=^J, cuf1=\E=,
        cup=\Ea&p1&' '&+&c&p2&' '&+&c'
        cuu1=\E;, cvvis=\EW, db, dch1=\E^A$<16*>, dim=\EE, d11=\E^B$<3*>,
        ed=\E^C$<16*>, el=\E^U$<16>, eo, flash=\Ek$<20>\Ek, ht=\t$<8>,
        il1=\E^R$<3*>, in, ind=^J, .ind=^J$<9>, ip=$<16*>,
        is2=\EU\Ef\E7\E5\E8\El\ENH\EK\E\200\Eo&\200\Eo\47\E,
        kbs=^h, kcub1=\E<, kcud1=\E<, kcuf1=\E=, kcuu1=\E;,
        kf1=\E5, kf2=\E6, Kf3=\E7, khome=\E?,
        lines#24, mir, pb#9600, prot=\EI, rep=\Er&p1&c&p&2&' '&+&c$<.2*),
        rev=\ED, rmcup=\Ev  $<6>\Ep\r\n, rmir=\E\200, rmkx=\Ex,
        rmso=\Ed\Ee, rmul=\Eg, rmul=\Tg, sgr0=\EN\200,
        smcup=\EU\Ev8p\Ep\r, smir=\E^P, smkx=\EX, smso=\EE\ED,
        smull=\EG, tabs, ul, vt#8, xenl.

����� ����� ������������ � ������������ ������ ����� ��������� �������� � ������ ������ ������, ����� ������. ����������������� ���������� � '#'. �������� � terminfo - 3-� �����: ��������� ��������, ������� ���������, ��� �������� ����� ����������� �����������, �������� ��������, �������� ������ ���������, � �������� ���������� ��������, �������� ��������,�������� ������������������, ������� ����� ���� ������������ ��� ���������� ���������� �������� ���������.

���� �������
��� �������� ����� ����� . ��������, ����, ��� Concept-100 ����� automatic margins ( �� ����, �������������� ������� � ����������� �� ������, ����� ����������� ����� ������), ���������� ��������� am. ������ �������, ��� �������� Concept �������� am. �� ��������� ���������� ������� ������ "#", � ����� ��������. ����� �������, cols, ������� ��������� ���������� ������� ���������, ���� �������� '80' ��� Concept.

�������, �������� ��������, ����� ��� el (�������� �� ����� ������������������ �����), �������� �������������� �����, '=', ����� ������� ������, ��������������� ','. �������� � ������������� ����� ���������� ��� ������ � ���� ��������, ����������� � $<..>, ��� el=\EK$<3>, � ������� ���������� �������������� tputs ��� ����������� ���� ��������. �������� ����� ���� ���� ������,��������, '20', ���� ������, �� ������� ������� '*', ��������, '3*'. '*' ����������, ��� ��������� ���������� ��������������� ����� �����, �� ������� ��������� ��������, � ���������� ���������� �������� ��������� ����������� per-affected-unit. (� ������ ������� ������� ���� ����������� �������� ������, ������ ���������� ��������������� �����. ��� ������ 1, �� ����������� ��� �������, ����� �������� ����� xenl, � ���������� ���������� ���.) ����� ������������ '*', ������ ������� �������� �������� � ���� '3.5', ����� ���������� �������� �� ���������� � �������� �����������. (����������� ������ ���� ���������� ��������.)

���������� ����������� ������������������� �������������� ���������� ���������� ��� ���������� �������������� ��������. ��� \E � \e ������������� � ������ ESCAPE, ^x ����������� � ctrl-x ��� ������ ���������������� x, � ������������������ \n \l \r \t\ \b \f \s ������ ����� ������, linefeed, �������, ���������, backspace, formfeed � ������. ������ ����������� ������� �������� \^ ��� ^, \\ ��� \, \, ��� �������, \: ��� :, \0 ��� 0. (\0 ����� ������������ \200, ������� �� �������� ������, �� ����� ���� ��� ������� ������ �� ����������� ����������). �������, ������ ����� ���������� ��� ��� ������������ ����� ����� \a.

������ ��������� �������� ����� ���� �����������������. ��� ���������� �����, ���������� ������ ����� ��������� ��������. ��������, ������ ������ ind � �������, ����������� ����.

���������������� ��������
�������� ����������� ������ ����������� �������� ��������� - ��� ����������� �������� ��������� ��������� � terminfo � ���������� ��������� ��������, ��������� ��������� �������� vi ��� �������� ������������. �������, ��� �������� ��������� ��������� ����� ����������� �������� ������������ ����� terminfo, ����� ��������� �� ��� ������� � vi. ��� ���������� �������� �������� ��������� �� ������ ��������� ���������� ����� TERMINFO � ��������� ��� ��������, ����������� ������ ��������, � ������� �� ���������, � ��������� ����� ��������������� ����� �������, ��� � /usr/lib/terminfo. ����� �������� ���������� ��� ����������� ������ ������ ( ���� ������������ ��������� �� �������������� ���), ��������� ���� ������ ������������� ����� /etc/passwd �� 9600 ���, ������� ����� 16 ��� 16 ����� � �������� ������ � ����� ����� ��� ������ ������ 'u' �������. ���� ������������ ������� ������������, ������ ���������� ������� ����������. �������� ���� ����� �������������� ��� ������� �������.

�������� ��������
�������� �������� cols ��������� ����� ������� � ������ ������ ���������. ���� �������� - CRT, �� ����� ����� �� ������ �������� ����������� lines. ���� �������� ������������� � ������ ��������� ������, ����� �� ��������� ������� ����, �� �� ������ �������� ��������� am. ���� �������� ������ �������� ���� �����, ������� ���� ������ � ��������� �������, ��� �������� ��������� clear. ���� �������� ������ ������ ����� (������� ��� ��������� �������, ����� ������ ���������� ������), �� ������������ �������� os. ���� �������� ������������ ����� ���������� ���������� ��� ������ �����, �������� ��� �������� os � hc. (os �������������� ��� ���������� ����������, ����� ��� TEKTRONIX 4010 �����, ����� ��� ������� ����� � APL ���������). ���� ���������� ��� ��� ����������� ������� � ����� ���� �������� ����, ��� �������� ��� cr. (������ ������ ������� �������, ctrl-M). ���� ���������� ��� ��� ��������� ��������� �������, �� �� ������������ ��� bel.

���������� ��� ��� ����������� ������� �� ���� ������� ����� (����� ��� backspace), �������� ������� �������� ��� cub1. ����������, ���� ��� ����������� ������, ����� � ���� ������������ ��� cuf1, cuu1 � cud1. ��� ��������� �������� ������� �� ������ �������� ������, ������� ��� ��������, ��������, �� ������ �� ������� ������������ 'cuf1=', ��� ��� �������, ������� �� ��������, ����� ���������.

�����, ��� ��������� �������� �������, �������������� � terminfo, �� ���������� � ����� � ������� �������� ��������� CRT. ��������� ������� �� ������ �������� ������ backspace �����, ���� �� ������ bw, � ���������� ����� ����. �� ���� ��������� ������ ����� ��������� ����� ���� � ������ ���� ������ � �������� ������ ind.

�� ���� ��������� ������ ������ ��������� ���� � ������� ����� ���� ������ � �������� ������ ri (�������� ������). ������ ind � ri �� ������������, ����� ��� �� �� ��������������� ����� ������.

������������������ �������� ��������������� ������������������� �������� indn � rin, ������� �� �� ����� ���������, ��� � ind � ri, ����� ��� �������, ����� ��� ��������� ���� �������� � ������������� ����� ������� ����� �����. ��� ����� �� ������������, ����� ���, �� ��������������� ����� ������.

�������� am �������, ��� �� ������ ����� ������ �� ������,����� ��������� �����, �� ��� �� ����������� ������������ ��������� cuf1 �� ��������� �������. ��������� �����������, ������� ������������ �� ������ ���� ��� �������� bw, ����������, ��� ���� cub1 �� ������ ���� ����� ��������� � ������ ���� �������������� ������. ���� bw �� ������, ������ �� �����������. ��� ������� ��� ������������ ����� ���� ������. ���� �������� ����� ������������, ��������� �������� �������������� ����, �� ���� terminfo ������ �����������, ��� �� ������������; ��������, am. ���� �������� ����� �������, ������� ���������� � ������ ������� ��������� ������, �� ������� ����� ���������� ��� nel (����� ������). �� ����� ��������, ���� ������� ������� ������� ������� ������, �������, ���� �������� �� ����� cr � lf, �� ��� �� �������� �������� ������� nel ��� ����� ��� �����.

���� ������� ���������� ��� �������� ������� ����� � glass-tty ����������. ����� �������, ������ 33 ��������� ����������� ��������� �������:

     33|tty33|ty|model 33 teletype,
     bel=^G, cols#72, cr=^M, cud1=^J, hc,ind=^j, os
��� Lear Siegler ADM-3 ����������� ��������� �������:
     adm3|3|lsi adm3,
     am, bel=^G, clear=^Z, cols#80, cr=^M, cub1=^H, cud1=^J,
     ind=^J, lines#24

����������������� ������
��������� ������� � ������ ������, ������������ ��������� � ���������, ����������� ���������� ����������������� �����, � ������� printf(2), ������� ������������� � ��� %x. ��������, ��� ��������� ������� ������������ �������� cup, ������������ ��� ���������: ������ � ������� ��� ���������. (������ � ������� ������������� �� 0 � ��������� � ����������� ������, �� ������� ��������� �������������, � �� � �����-���� ��������� ������). ���� �������� ����� ������������� ��������� �������, �� ��� ����� ���� ������ mrcup.

�������� �������������� ���������� ���� � ����������� ��� % ��� ���������������. ������ ������������������ �������� ���� �� ���������� � ���� � ����� �������� ��� � ��������� �������. ����� ���������� ����� ������� ��������.

% ����������� ����� ��������� ��������:

�������� � �������� ���� - � ���� postfix c ���������� � ������� �������. �� ����, ��� ���� ����� �������� x-5 ������� ������������ "%gx%{5}%-".

��������� HP2645, �������� ��� ��������� 3 ������ � 12 ������� ��������� ������� \E&a12c03Y, ������������ �� 6 �����������. �������, ��� ������� ����� � ������� ����� �������������, � ��� ��� � ������� ���������� ��� ��� �����. ���, �������� 2cup 0 �������� cup=\E&%p2%dc%p1%2dY$<6>.

��� Microterm ACT-IV ����� �������� ������� ������ � ������� ����� ��������� ^T, ��� ������ � ������� ������������ � �������� ����������, cup=^T%p1%c%p2%c. ���������, ������������ %, ������ �������� ��������� backspace ������� (cub1) � ������������� ������� ����� �� ���� ������ (cuu1). ��� ����������, ��� ��� ��� �� ������ ��������� �������� \n ^D � \r, ����� ������� ����� �������� ��� ������ ��. (������������ ��������� ����� ���� � �������� tty ������ terminfo, ��� ��� ������� ������� �� �����������, ������� \t ����������� ��� �������. ��� ����������� ��� Ann Arbor 4080.)

� �������, ������ LSI ADM-IV, ������������ �������� �� ������ � ������� � ������� ������� �������, ��� cup=\E=%p1%' '%+%c. ����� ������� '\E=' �������� ������ ��������, �������� ASCII ��� ������� (32), ���������� �� (������� ����� � ���� �� ����� ���� ���������� ��������) � ������� ��� �������� � �������� �������. ����� ������ �� �� ����� �� ������ ����������. �������� ����� ������� ����������, ������������ ����.

���� �������� ����� ���������� ��������� ������� � ������ ��� �������, ��� ����� ���������� ������������ ���������� hpa (���������� �������������� �������) � vpa (���������� ������������ �������). ������ ��� ������, ��� ����� ����� ������������������ ���� ���������� (��� � HP2645), � ����� ���� ������������ � ������������ � cup. ���� ������� ��������� ����������������� ����������� (��������, ������������� �� n ������� ������), �� ��� ����� ���� ������ cud, cub, cuf � cuu � ����������� ����������, ������������, �� ������� ������� ���������. ��������������� ��� ������������ � ����������, �� ������� cup, ����� ��� TEKTRONIX 4025.

����������� �������
���� �������� ����� ������� ������ ��������� ������ � ������� ���� ������ (����� ������� ����� ���� ������), �� �� ������ ��� ��� home; ����������, ������� ������ ������� ������ ������� ���� - ������������ ll; ��� ����� ��������, ���������� ����� � ������� cuu1 �� ��������� �������, �� ��������� ������� �� ����� ��������� ��� ���� ( �� ��� ���, ���� �� ������� ll), ������ ��� ������ ������� ������� ��������� ������������ ���������� �������� ����� �� ��������� �������. �������, ��� ��������� ������� - �� �� �����, ��� � ��������� � (0,0): � �������� ������ ���� ������, � �� ������. (���, ������������������ \EH ���������� HP �� ����� �������������� ��� 2home 0.)

�������� �������
���� �������� ����� ������� ������� ������, ������� �� ������� �������, �������� ������ �� �� �� �����, ���� ������ el. ���� �������� ����� ������� �� ����� ������� �� ������� �������, �� ������� �������� ed. ed ������������ ������ �� ������ ������� ������. (���, �� ����� ���������������� � ������� ������� �� ����������� �������� ���������� �����, ���� �������� ed �� ������������).

�������/����������� ������
���� �������� ����� ������� ��������� ������ ����� ���, ��� ���������� ������, �� ��� ����� ��������� il1; ��� ��������� ������ � ������ ������� ������. ������ ������ ��������� �� ����� ������ ������. ���� �������� ������ ���������� ������, �� ������� ���������� ������, �� ��� �������� dl1; ��� ��������� ������ � ������ ������� ������, ������� ������ ���� ����������. ������ il1 � dl1, ������������ ���� �������� � ���������� ��� ������������ ��������� �����, ����� ���������� ��� il � dl. ���� �������� ����� ��������������� ������� ��������� (�������� vt-100), �������, ������� �� ���������� ���, ����� ���� ������� ��������� csr, ������� ���������� ��� ���������: ��������� � �������� ������ ��������� �������. ������� �������, ������, �� ���������� ����� ���������� ���� �������. �������� �������� ��������� ������� ��� ������������ �����, ��������� ������� sc � rc ( ���������� � �������������� �������). ���������� ����� ������ � ����� ������ ����� ���� ��������� � ������� ri � ind �� ������ ���������� ��� �������� ������� ��� ������������ �����, � ��� ����� ���������� �� ����������, ������������ ��� ��������.

���� �������� ����� ����������� ���������� ���� ��� ����� ������, �� ������� ������������ ��� �������, �� ��� �������� ����������������� ������� wind. � ���� ������ ������������ 4 ���������: ��������� � �������� ������ � ������ � ��������� � �������� ������� � ������, � ����� �������.

���� �������� ����� ��������� ���������� ������ ���, �� ������� �������� �������� da; ���� ���������� ������ �������� ����, �� db. ��� ���������, ��� ����������� ������ � �������� ����� ���������� ������ ������ ����� �����, ��� �� �������� ����� � ������� ri ����� �������� �� ������.

�������/�������� �������
������� ��� �������� ���� �������� ����������, ��� �������� �������/�������� �������, ������� ����� ���� ������� � ������� terminfo. �������� ����� �������� �������/�������� �������� ����������� ������ � ����� ������ � �������� ������ ������ � ����� ������. ������ ���������, ����� ��� Concept 100 � Perkin Elmer Owl, ������ �������� ����� �������������� � ���������������� �������� �� ������, ������� �� ����� ������������ ��� ������������� ������� �������������� ������, ������� ����� ������������� ��� ��������� �� �� �� ���� ��������. �� ������ �������� ��� ���������, ������� �� ������, ����� ������ ������, ����� ������� �����, ����������� ��������� �������. ��������� abc def ���������� ��������� ����������� ������� (�� �������) ����� abc � def. ����� ������ ���������� ����� abc, � �������� ��������������� � ����� �������. ���� ��������� �������� �������� ������� ������ � �������� ������, � ������� ��������, ����� ��� �������� �� ������ �������� ����� ��������� � ��������������� ��������� ��������. ���� "abc" ���������� � def, ������� ����� ������ �������� ��������� � ����� � ����� �� ��������� ����������� ������, �� ������ ������ ��� ��������� � ������ ������������ �������� in, ������� ������������� ��� ������� ����. ���� ���������� ��� ��������� ����������� ��������� (���� ������ vs, ����� ����� ������������� ����� � ����������� ��������� � ��������������� ���������), �� �� �� ������� ����������, � ������� ����� ������� �� ����� ���� ������ ����� ����������.

terminfo ����� ��������� ��� ���������, ������� ����� ����� �������, ��� � ���������, ���������� ������� ������������������, ����� ������� ������ ������� � ������� ������. ����� ����� � ����� �������, ������������ ������������������ smir. ����� ����� �� ������ ������ ������������ ������������������ rmir. ������ ������� � �������� ich1 ����� ������������������, ����������� ��� ������� ����� ����� ���, ��� ������, ������� ������� ��������. ����������� ���������� � �������� ������� ������� �� ������ ich1; ���������, ���������� ������������������ ��� �������� ������, ������ ��� ����� ���������. (���� �������� ����� ��� ��������, �� ����� ������� �������������� ich1. �� ����������� �� ������, ���� �������� �� ��������� �� ��� ������������� � ����������). ���� ���������� ����������� (����� �������) ����������, �� ��������� ��� ��� ����� ����������� � ip (�������� ������). ����� ������ ������������������, ������� ����� ������������� ��� ������� ����� ������� ������ �������, ����� ����� ���������� � ip. ���� ������ ��������� ����� � ����� �������, � ����������� ���, ������� ������������� ������������ �������, ����� ����� ���� ������ smir/rmir � ich1, � ��� ����� ��������������. �������� ich � ����� ���������� n ��������� �������� ich1 n ���.

������ ������ ���������� ��������� ����� ������� ��� ����������� �������� � ��� �� ������ (��������, ���� ������� ������� ����� ����������� �������). ���� ��� �������� ��������� ����������� � �������� ������ �������, �� ������ �������� �������� mir ��� ��������� ������� � ���� ������. ��������� mir ����� ������ ������ �� ��������. ��������� ��������� (��� Datamedia) �� ������ ������������ mir ��-�� ������ ������ �������.

� �������, �� ������ ���������� dch1 ��� ����������� ������ ������ �������, dch � ����� ���������� n ��� ����������� n �������� � ����� �����������, ���������� smdc � rmdc, ��� ����� � ������ � ���� ( ����� ����� ��������� ����������� ��� ������ � 2 dch1 0).

������� ��� �������� �������� (������������� ������ n �������� ��� ����������� �������) ����� ���������� ��� ech c ����� ����������.

���������, ������������� � ������� �������
���� ��� �������� ����� ���� ��� ����� ���������� �������, �� ��� ����� ������������ � ���� ��������� ��������. ��� ������� ������� ���� ��� ������� � ������ standout, �������������� �������, �����������������, ������ ���������� ������ ��� ������ ������������ ��������� �� ������� � ������, ������� �������� �������. (���� �� ������ �����, �������� ������������ ����� ���������� ����������� ��� ���� ������������ �����). ������������������ ��� ����� � ������ � ������ standout �������� ��������������, ��� smso � rmso. ���� ��� ��� ��������� ������ standout ��������� ���� ��� ��� ������� �� ������, ��� � TVI 912 � Teleray 1061, �� ������� ������ xmc, ��� ���� ����� �������� ���������� ����������� ��������.

���� ��� ������ ������������� � ����� ������������� ����� ���������� ��������������, ��� smul � rmul. ���� �������� ����� ��� ��� ������������� �������� ������� � �������� ������ �� ������� ������, ��� Microterm Mime, �� ������� ������ uc.

������ �������� ��� ����� � ��������� ������ ��������� �������� blink (��������), bold (���������� �������), dim (������� �������), invis ( ������ ��� ��������� �����), prot (����������), rev (������������ �����), sgr0 (���������� ����������� ������� all), smacs (����� ����� ������ ���������� ��������). ��������� ������ �� ���� ������� ����� ��������� ��� �� ��������� ��� ������.

���� ���� ������������������, ��������������� ������������ ���������� �������, ��� ������ ����������, ��� sgr (������� ���������), ��������� 9 ����������. ������ ��������, 0 ��� 1, ��������, ������������ ��� ��� ��������������� �������. ��� 9 ���������� ���� � �������: standout, �������������, ��������, ��������, ������ �������, ������� �������, ������, ������, ��������� ������ ��������. �� ��� ������ ��������� � ��������� � ������� sgr ������ ��, ��� ������� ���������� ��������������� ��������� ������.

�������� � ������� "magic cookie" (xmc) �������������� ����������� "cookies", ����� ��� ��������� ��������������� ������ ������������������, ������� ����������� ���������� �������� �����, ��� ��������� �������������� ���� ��� ������� �������. ��������� ���������, ����� ��� HP 2621, ������������� ������� �� ������ standout, ����� ��� ������������� �� ����� ������, ��� ����� ���������� ������. ���������, ������������ ����� standout, ������ ����� �� ����� ������ ������, ��� ������� ������ ��� �������� ����� ������, ���� �� ������������ msrg, ����������� ��� ����������� ����������� � ������ standout.

���� �������� ����� ����������� �������� ������ ��� �������� ������ (���������� �������� ������), �� ��� ������ flash; �� ������ ���������� ������.

���� ������ ���������� ������� ����� �����, ����� �� �� �� ��������� ������ (���������, ��������, ����������� ������������� ��� ����� ������� ������ ����� ��� ��������� �������������), �� ������������������ �������� ��� cviis. �������� cnorm ������ ���� ������, ����� ����������� ������� �� ��� ��� ������.

���� �������� ������ ��������� � ����������� ������ �� ����� ���������� ���������, ��������� ��� ��������, ���� ��� ����� � ������ � ���� ����� ����� ���������� ��� smcup � rmcup.

��� ����������� ��� ���������, ��� �oncept, �� �����, ��� ���� ��������. ���� �������� ����� ������ ������������� ��������� � ������ �������, � �� ������������� ��������� ������� �� ������, ���� �������� � ����� ������ ������������� � ��������� ��� �������� ������� ��� ������ ���������� �������. ����� ���� ������������ ��� TEKTRONIX 4025, ��� smcup ������������� ����������� ������ ��� ����, ����� ������������ ��� � ������� terminfo.

���� ��� �������� ��������� ���������� ������������ ������� (��� ���������� ����������� �����), ���� ���� ��� �� ������������, �� ��� ������� ������������ �������� ul.���� ������ ������� ���������� ���������, �� ������� �������� ���� ����, ��������� eo.

����������
���� �������� ����� ���������, ������� �������� ����, ����� ���������� �������, � ����� ���������� ��� ����������. �������, ��� ���������� ��������� �����������, ����� ���������� �������� �������� (��� �����������, ��������, �� �������� HP 2621). ���� ���������� ����� ��������������� ��� �������� ��� ����������, ������ ���� smkx � rmkx. � ��������� ������, ��������������, ��� ���������� ������ ��������. ����, ���������� � ������� ����� �������, ������ �������, ������� �����, ������� ���� � ��������� �������, ����� ���� ������ ��� kcub1, kcuf1, kcuu1, kcud1 � khome �������������. ���� ������� �������������� �������, ����� ��� f0, f1, ..., f10, �� ���������� ���� ����� ���������� ��� kf0, kf1, ..., kf10. ���� ��� ������� ����� �����, �������� �� f0 �� f1, �� ����� 2lf0, lf1, ..., lf10 ����� �������������. ����, ������������ ������� ����������� ��������������� ���������, ����� ����������: kll (��������� � ��������� ���������), kbs (backspace), ktbc (�������� ��� ������� ���������), kctab (�������� stop � ���� �������), kclr (�������� ����� � ������� �������), kdch1 (������ ������), kdl1 (������ ������), kmir (����� �� ������ �������), kel (�������� �� ����� ������), ked (�������� �� ����� ������), kich1 ( �������� ������ ��� �������� ����� ������), kil1 (�������� ������), knp (��������� ��������), kpp (���������� ��������), kind (�������� ������/����), kri (�������� �����/����), khts (���������� stop � ���� �������). � ����������, ���� ���������� ����� ������ ������ 3 �� 3 , ������� 4 �������-�������, ����� ���������� ��� ka1, ka3, kb2, kc1 � kc3. ��� ������� ����� ��������������, ����� ���������� ���������� 3 �� 3.

��������� � �������������
���� �������� ����� ���������� ������� ���������, ������� ��� ����������� � ���������� ������� ��������� stop ����� ���������� ��� ht (������ ctrl-I). ������� "backtab", ������� ���������� �� ���������� ������� ��������� stop. ��� ��������������, ���� ����� ��������� ���������, ��� ������� ��������� ����������� � ������� ���������� ������, ��� ���������� �� ��������, � ���������� �� ������� ������������ ht � cbt, ���� ���� ��� ������������, ��� ��� ������������ �� ����� ������������� ���������� ������� �������� ���������. ���� �������� ����� ���������� ������� ���������, ������� ���������� ����������� ����� ������ n ������� ��� ��������� ���������,�������� �������� it, ������������ ���������� �������, ����� ������� ������ ���� ����������� ������� ���������. ��� ������ ������������ �������� tset(1) ��� �����������, ���������� �� ����� ���������� ��� �������� ���������, � ����������� �� ������� stop. ���� �������� ����� ������� stop, ������������� � ������, �� �������� terminfo ���������, ��� ��� ����������� ���������.

������ �������� �������� is1, is2 � is3, ������ ������������� ��� ���������, iprog, ��������� ��� ���������, ������� ������� ��������� ��� ������������� ��������� � if, ��� �����, ����������� ������ ������� �������������. ��� ������ ��������� ��� ��������� ��������� � �����, ��������� � ��������� �������� ����� terminfo. ��� ������ ���������� �� �������� � ������� ��������� tset, ������ ���, ���� ������������ �����������. ���� ����� ���������� � ��������� �������: is1, is2, ������������ ������� ���������, ������������ tbc � hts; ����������� ��������� iprog; �, �������, is3. ������� ����� ������������� ����������� � ������� is2. ������������ ������ ��������� ����� ��������������� ��� ������������ ����� ����� ��������� ����� ������������������ � is2 � ������������ ���� � is1 � is3. ���� �������������������, ������� ��������� ������� ������ �� ������������ ���������, ����� ���� ������ rs1,rs2,rf � rs3, ���������� ��� is2 � if. ������� ������ ���������� � rs2 � rf, ���� ��� ���� ���������� ������ �� ������ � �� ����������� ��� ��������. ��������, �������, ��������������� vt-100 � 80-�������� �����, ������ ������ ������ is2, �� ��� �������� �������� ������ � �� �����, ���� ��� �� �������� � ���� �����.

���� ���� �������, ������� �������� � ������� ������� ��������� stop, ��� ����� ���������� tbc ( ������� ��� ������� stop) � hts ( ���������� ������ ��������� stop � ������� ������� ������� ������). ���� ��������� ����� ������� ������������������ ��� ��������� �������� ���������, ������� ���� ������� ����, ������������������ ����� ���������� � is2 ��� if.

��������
��������� �������� ��������� ������������ � �������� ���������. ��� � ������ ������� ���������� ��� ������ ����� ��������� � ������������ ���������� tset ��� ��������������� ��������� ������ ���������. ��������, ���������� � �������� cr, ind, cub1, ff � tab, �������� ��������� ����� ��������, ������� ���������� � ������� ���������. ���� �������� pb (���� ����������), ��� �������� ����� ���������� ����� �������� pb.

������
���� � ��������� ��������� ������ ������� ����������, �������� �� ����, ��� ����� ������ � ������� pad. ������������ ������ ������ ������ ������ pad.

���� � ��������� ������� �������������� "��������� ������", �������, ��� �������, �� ������������ �����������, ���� ���� ����� ���� �������. ���� ��������� ������ ��������, ��� �������������� ������ ��� ������ �������, �� ������� ������ ����� ������������ (����� ��� HEATHKIT h'19's 25�� ��������� ��� 24� ��������� vt-100, � ������� ����������� 24� ��������� ������� ���������), ������� ����������� �������� hs. ����������� ������, ����������� ������� � ������ ������ ��������� � ��������� �� ���, ����� ���������� � ������� tsl � fsl. (fsl ������ ��������� ������ � ��� �� �������, ��� �� ��������� ����� ����������� tsl. ���� ����������, �� � tsl � fsl ����� �������� ������ sc � rc ��� ���������� ����� ����������.) �������� tsl ����� ���� ��������, ������� �������� ������� ������� ��������� ������, � ������� ������ ��������� ������. ���� ����������� ������������������ � ������ ����������� �������, ����� ��� tab, ��������, ���� � ��������� ������ ����� ���� eslok. ������, ������� ��������� ��������� ������ (��� � ������ ������ ������� ��� ����������), ��� ����� ������ � ������� dsl. ���� �������� ����� ������� ���������� � �������������� ������� �������, ��� ����� ������ � ������� sc � rc. ��������� ������ ������ ����������� ����� �� ������, ��� ������� ������, �� ���� cols ���� ��������� ������ ������ ������ ( �������� ������, ��� �������� �� ��������� ��������� ����� �����), ������ � �������� ����� ���� ������� � ������� ��������� ��������� wsl.

���� �������� ����� �������� �� ��������� ����� ��� ����, ��� �������� ��� hu (��������� �����) � hd (��������� ����). ���, ������� �������, ������� ��� ����������� � ����������� �������� � ���������� � �������� �������. ���� �������� � ������� ������ ����� ���������� �� ��������� �������� (form feed), �� ��� �������� ��� ff (������ ctrl-L).

���� ���������� ������� ���������� ��������� ������� �������� ���������� ��� (����� ��������� ����� �������� �������� ���������� ���������� ��������), �� ��� �������� � ������� ����������������� ������ rep. ������ �������� - ��� ������, ������� ������ ���� ��������, ������ - ����� ����������. ����� �������, tparm(repeat_char, 'x', 10) �� �� �����, ��� 'xxxxxxxxxx'.

���� �������� ����� ��������������� ��������� ������, ��� ��� � TEKTRONIX 4025, �� ����� ����������� ��� cmdch. ��������� ������ ��������� ������ �����, ����� ������������ �� ���� ���������. ���� ������ �������� � ��������� cmdch ��� ��� �������������. � ��������� XENIX �������� �������������� ��������� ��������������: �����, ������� ������ ���� ������� ��� ���������� ��, � ���� �������, �� ��� ������� ��������� ���������� �������� � ���������� �����.

�������� ���������, ������� �� ������������ � ����������� ����� ��������� ����������, ����� ��� switch, dialup, patch, network, ������ �������� �������� gn (generic), ��� ��� �� ��������� �� ����� ������������ �� ��, ��� ��� �� �����, ��� �������� � ����������.

���� �������� ���������� XON/XOFF ������������ ������������ ����� ��� ���������� �������, ������ xon. ���������� ���������� ������� ��������, ��� ���� ����� ��������� ����� ������� �������� ������� � ��������, �� � ���������������� ������� ���������� �� ����������.

���� �������� ����� "�����������", ������� ��������� ��������� ������� shift, ������������ ������� ��� � ������ ������������ ������, ��� �������� ��� km. � ������ ������, ��������� ����� ���������, ��� ������� ��� - ��� ��������, � ������ �� ���������. ���� ������ ������� �� ��������� � ���������� ����� "���� ������", ��� ����� ���� ������ ��� smm � rmm.

���� �������� ����� ������ ����� ������, ��� ����� ����������� �� ������ � ���� �����, ����� ����� � ������ ����������� � lm. �������� lm#0 ���������, ��� ����� ����� �� ������������, �� ��� ������ �������� ������, ��� ���������� �� ������.

���� �������� - ���� �� ���, ������� �������������� ���������� ������������ ��������� UNIX, ����� ��������� �������� ��� vt.

������ ������� �����, ������� ��������� ������� ���������, ��������� � ����������, �������� ��� mc0: �������� ���������� ������, mc4: ��������� �������, � mc5: �������� �������. ���� ������� �������, ���� �����, ���������� �� ��������, ����� ���������� �� �������. �� ����, �� ����������, ����� �� ����� ������������� �� �������, ���� ������� �������. ������� mc5p ����� ���� �������� � ��������� ������� ���������� ��� �������� ��������, ������ �������� ���������, ����� ��������� �������. �������� �� ������ ��������� 255. ���� �����, ������� mc4, ��� ��������� ���������� �� �������, ���� �������� mc5p.

������ ��� ���������������� �������������� ������ �������� ��� pfkey, pfloc � pfx. ������ �� ���� ����� ����� ��� ���������: ����� �������������� �������, ������� ��������������� (�� 0 �� 10) � ������, � ������� ������� ��� ���������������. ������ �������������� ������ �� ����� ��������� ����� ��������������� �������������� ������� ��������, ��������� �� ���������. �������� ����� ���������� � ���, ��� pfkey �������� �������� �� �������� ������� ��� �� ����� ������, ��� ���� �� ������������ ������� �������� ������; pfloc �������� ���������� ������ �� ��������� ��������; � pfx �������� �������� ������ � ���������.

������ � ������������� ��������
Hazeltine ���������, ������� �� ��������� '~'�������� ��� ������������, ������ ������������ ��� hz.

���������, ������������ ����������� ������ ������ ����� am ��������, ����� ��� Concept � vt-100, ������ ���������� xenl.

���� ��������� el, ��� ���� ����� ����� �� ������ standout (������ ������� ������� �������� ������ ������� ������), ������� �������� xhp.

Teleray ���������, ��� ������� ��������� ���������� ������������ ������� ����� ���������, �������� xt (����������� �������). ���� ����� ��������� �����, ��� ���������� ��������� ������� ������� � ������ "magic cookie", � ��� ������ ������ �� ������ standout ���������� ������������ ����������� � ���� ������.

Beehive Superbee, ������� �� � ��������� ��������� �������� ������� escape � ctrl-C , ����� xtb, ������� ������, ��� ������� f1 ������������ � �������� escape � f2 � �������� ctrl -C. ( ������ ��������� Superbee ����� ��� ��������, ��������� �� ROM.)

������ ������������� �������� ��������� ����� ���� ���������� ����������� �������������� ������� � ���� xx.

�������� ���������
���� ���� ��� ������� ���������, ���� �� ��� ����� ������������ �����, ��� � ������, � ������������� ������������. �������� ������ use ����� ���� ������ � ������ ��������� ���������. ��������, ���������� ����� use, �������� �� � ��� ���������, ���������������� � ������� use. C������� ����� ���� ��������� ����� ��������� xx@ ����� ����������� ��������, ��� �� ���������� ��� ��������. ��������, ����

     262-nl, smkx@, rmkx@, use=2621,

���������� 262-nl, ������� �� ����� ������� 2smkx � rmkx, � ������������� �� �������� ����� �������������� ������, ����� ����� visual. ��� ������� ��� ��������� ������� ��������� ��� ��� ��������� ������������ ������������.

�����
/usr/lib/terminfo/?/* �����, ���������� �������� ���������, ������������� � ������� tic(1)

����������
�� vi, tset, �� �����-���� ������ ������� XENIX �� ������������ terminfo. ������ ����� ������ ����������� termcap � terminfo ����� �������������� ������� ������� XENIX.
Comments: [email protected]
Designed by Andrey Novikov
Copyright © CIT