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

TPUT(1)

��������
tput - ������������� ��������� ��� ���������� ������� � ���� ������ ����������

���������

	tput  [-T ���_���������] ���_�������� [�������� ...]
	tput  [-T ���_���������] init
	tput  [-T ���_���������] reset
	tput  [-T ���_���������] longname

��������
� ������� ������� tput, ������������ ���� ������ terminfo(4), shell [��. sh(1)] �������� ������ � ���������� � ���������������, ��������� �� ���� ����������� ���������. ����������� ���� ������� ����� ����� ���������������� ��� �������������� ��������, �������� ������� ��� �������������� ���� ���������. ���� ������� � �������� ������ �������� �������� ��������, �� ������� tput ���������� ������� ��������; ���� ������� �������� ����� ������, �� ������������ ����� �����. ���� �� ������� ����������� ����, �� tput ������ ������������� ��� ���������� [0 (������), ���� �������� ����� ������ ��������������; 1 (����), ���� �� �� �� �����] � ������ �� �������. ������ ��� ������������ �������� �� ����������� ����� ��������, ������� ��������� ��� ���������� [$?, ��. sh(1)]. ������ ������ ��������� (�������������) ���������� � �� ���� ����� ����� � terminfo(4).

-T ���_���������
����� ������� ���� ���������. ������ ������ ����� �� �����, ��� ��� �� ��������� ������������ �������� ���������� ��������� $TERM. ���� ����� -T ������, �� ���������� shell'� LINES � COLUMNS �� ������������.

���_��������
���������� ������� ���� ������ terminfo(4).

��������
���� ������� ���� ������� �������� � ������� ����������, ��� ������� �� ��������� ������. ����� �������� �������� ���������� ��� �����.

init
���� ���� ������ terminfo(4) ���������� � ���������������� �������� � ��� ������ (��. ���� ����� -T), �� ���������� ���������:
  1. ��������� (���� ��� ����) ������� ��������, ���������������� �������� (is1, is2, is3, if, iprog).
  2. ����� �������� (��������, ������� ������), ��������� � ��������, ����� ����������� � �������� tty.
  3. � ������������ �� ������������� ����� ������� ��� �������� ����� �������������� ��������� � ������������������ ��������.
  4. ���� ������� ��������� �� ������������� � ������������������ ��������, ����� ����������� ����������� ������� ��������� (������ �������).
���� �������� �� �������� ����������, ����������� ��� ������-���� ����, ���� ��� ������ ����������.

reset
������ ������ �������� ������������� ����� ���� ���� (���� ��� ����) ������� �������� �������� ����� (rs1, rs2, rs3, rf). ���� ����� ������� ���, �� ���� ������� �������������, �� ����� �� ������ ���������. �� ���� ��������� reset ����� ���� ���������� init.

longname
���� ���� ������ terminfo(4) ���������� � ���������������� �������� � ��� ������ (��. ���� ����� -T), �� ��������� ������� ��� ���������. ������� ��� - ��� ��������� ��� � ������ ������ �������� ��������� � ���� terminfo(4) [��. term(5)].

�������

  1. ���������������� �������� � ������������ � ��� �����, �������� ���������� ��������� TERM. ������ ������� ������� �������� � ������� ����� ��������������� ���������� TERM [��. profile(4)]:
    	tput  init
    
  2. �������������� �������� ���� vt100, �� �������� �� �������� ���������� ��������� TERM:
    	tput  -T vt100 reset
    
  3. ������� ����������� ������������������ ��� ��������� ������� � ����� ������� ���� ������:
    	tput  cup 0 0
    
  4. ������� ����������� ������������������, ��������� �����:
    	tput  clear
    
  5. ������� ����� ������� �� ������ ������������� ���������:
    	tput  cols
    
  6. ���������� ��� ����������, ���������� ����������� ��������� �� ������� ��������� ������� ����� ������:
    	tput  hc
    
  7. ������ �� ���� terminfo(4) ������� ��� ��� ���� ���������, ����������� ���������� ��������� TERM.
    	tput  longname
    

�����

	/usr/lib/terminfo/?/*   ����������������  ����   ������
		                �������� ���������.
	/usr/include/curses.h   ���� ��������� ��� curses(3X).
	/usr/include/term.h     ���� ��������� ��� terminfo(4).
	/usr/lib/tabset/*       ��������� ������� ��������� ���
		                ��������� ���������� � �������,
		                ���������� ��� ������ (�������- 
		                ���� ������������������,  ����- 
		                ����������� �������  �  �������
		                ���������) [��. terminfo(4)].

��. �����
stty(1), tabs(1). profile(4), terminfo(4) � ����������� ������������.

���� ����������
���� ������� - ����������� ����, �� 0 ���������� �������� ������, � 1 - ����.

���� ������� ����� ��� ������� ��������, �� ��������������� �������� 0 � ������, ���� ���� ������� ��������� ��� ������� ���� ��������� (�������� �������� �������� �� ����������� �����); �������� 1 ���������������, ���� ������� �� ��������� ��� ������� ���� ��������� (�� ����������� ����� �������� ������ ��������).

���� ������� - ������ ����, �� ������ ��������������� �������� 0, ���������� �� ����, ��������� �� ������� ��� ������� ���� ���������. ��� ����, ����� ��������, ��������� �� �������, ���� ��������� ���������� �� ����������� ����� ��������. -1 ��������, ��� ������� �� ��������� ��� ������� ���� ���������.

����� ������ ��� ���������� �������� ������.

�����������
������� tput ��� ������� ������ � ����������� �������� ��������� ��������� � ���������� ����� ���� ����������:
��� ��������� �� ������
0 -1 (�������� �� ����������� �����). ������� �������� �������� � ��� ������� ���� ��������� �� ���������.
1 ��������� �� ������ �� ���������, ��. ���� ���� ����������.
2 �������� ������������� �������.
3 ����������� ��� ��������� ��� ��� ���� ������ terminfo(4).
4 ����������� ��� terminfo(4) ���_��������.
Comments: [email protected]
Designed by Andrey Novikov
Copyright © CIT