Format bazy dannyh terminalov termcap
Dlya nastrojki na terminaly UNIX ispol'zuet bazu terminalov
termcap, v kotorom opisany vse (ili pochti vse) vidy terminalov,
sushchestvuyushchie v prirode. Vyyasniv, kakoj tip terminala podklyuchen
k mashine (a zadaetsya eto v peremennoj okruzheniya TERM (naprimer
TERM=d460 ili TERM=d211)), UNIX nahodit opisanie etogo
terminala v termcap i, nastroivshis' po hranyashchejsya tam
informacii, mozhet adekvatno vosproizvodit' na nem informaciyu,
podlezhashchuyu vyvodu na etot terminal.
opisanie terminala v formate terminfo
opisanie terminala v formate termcap
baza terminalov INFORMIX
baza terminalov UNIX
termcap |__Tablica_vseh_harakteristik_bazy_terminalov__|terminfo
nazvaniya | |nazvaniya
d211-tansi|Tatung d211 temporary DG-ANSI mode:\
logicheskie atributy terminala
am v terminale est' avtomaticheskie granicy am
bw mozhno perevodit' kursor iz kolonki 0 v 80-yu bw
mi mozhno bez opasenij peremeshchat'sya v insert-mode mir
ms mozhno peremeshchat'sya v rezhime soobshchenij msgr
xo terminal ispol'zuet protokol xon/xoff xon
xn perevod stroki posle 80 kolonok ignoriruetsya xenl
bs CTRL-H daet shag nazad
pt Terminal imeet programmiruemuyu ustanovku tabul.
chislovye harakteristiki terminala
co #80 chislo kolonok cols
li #24 chislo stolbcov lines
it #8 shag pozicii tabulyacii it
kn # CHislo funkc. klavish, otlichnyh ot "0" - "9", ".", "-"
ki klyuch vstavit' stroku
kj klyuch unichtozhit' stroku
kf klyuch sleduyushchuyu stranicu
kg klyuch na predydushchuyu stranicu
gb simvoly risovaniya ramki ƒ‘ ƒ’ƒ“ ƒ”
gs v rezhim psevdografiki (v dop. alfavit)
ge konec rezhima psevdografiki (iz dop. alfavita)
tc =d211 "vse ostal'noe kak u d211"
---------INICIALIZACIYA TERMINALA----------------
ti pereklyuchenie terminala v rezhim cap smcup
v rezul'tate vse funkcional'nye klavishi pereopre-
delyayutsya v dlinnye ESC posledovatel'nosti. Prichem
zavisyat oni tol'ko ot terminala, a ne ot termcap
fajla. Mozhno perenaznachit' vozmozhnost' na druguyu
klavishu tol'ko pri uslovii, chto eto klyuch. NewLine
i CR ne perenaznachayutsya - eto ne klyuchi! (Provere-
no)
te cap zavershenie rmcup
Draver terminala INFORMIX vidimo ploho napisan. On
ne uspevaet obrabatyvat' ESC posledovatel'nosti, v
rezul'tate ot nih otryvaetsya \E i obrabatyvaetsya
otdel'no ot svoih vagonov.
iP marshrutnoe imya programmy inicializacii iprog
if imya fajla, s cepochkoj inicializacii terminala if
is stroka ° 0 inicializacii terminala is2
i1 stroka ° 1 inicializacii terminala is1
i3 stroka ° 2 inicializacii terminala is3
rf imya fajla s reset strokoj rf
r1 terminal - v normal'noe sostoyanie rs1
r2 pereustanovit' terminal polnost'yu v sane rezhim rs2
r3 pereustanovit' terminal polnost'yu v sane rs3
-----------UPRAVLENIE ATRIBUTAMI----------------
obespechenie atributovyh vozmozhnostej.(reverse,blink, ...,color)
sa opredelit' video atributy #1 - #9 sgr
sa =\E[0%?%p1%{0}%=%!%t%p1%{4}%m%;%?%t;2;7%;%?%p2%t;7\:
%;%?%p3%t;5%;%?%p4%t;4%;m
ispol'zuet stek_mashinu terminala.
-------IZOBRAZITELXNYE REZHIMY-------------------------
as perejti k dopolnitel'nomu alfavitu smacs
ae vernut'sya iz dopolnitel'nogo alfavita rmacs
ac tablichka simvolov dlya psevdografiki +,.0i-`afghjklmnoqstuvwx~ acsc
ac sootvetstvuyushchie im psevdoramochki > | acsc
mp v rezhim zashchishchennyh simvolov prot
us v rezhim UNDERLINE smul
ue konec UNDERLINE rmul
so v rezhim vydelennyh soobshchenij smso
se konec vydelennyh soobshchenij rmso
md v rezhim BOLD vydelennyh simvolov bold
mr v rezhim REVERSE negativ rev
mb v rezhim BLINK mercanie blink
mh v rezhim DIM tusklyj dim
mk v rezhim INVINSIBLE nevidimost' invis
me vyklyuchit' vse atributy sgr0
im v rezhim vstavki smir
ei konec rezhima vstavki rmir
dm v rezhim DELETE (enter) smdc
ed konec rezhima DELETE rmdc
-------------REZHIMY KURSORA---------------------
vi sdelat' kursor nevidimym civis
ve sdelat' kursor normal'nym cnorm
vs sdelat' kursor yarkim cvvis
cl ochistit' ekran clear
cd ochistit' konec ekrana ed
ce ochistit' konec stroki el
cb ochistit' do nachala stroki el1
ic vstavit' simvol ich1
dc udalit' simvol dch1
ec unichtozhit' simvol ech
al vstavit' stroku il1
dl udalit' stroku dl1
DC udalit' # simv dch
IC vstavit' # probelov ich
DL udalit' # strok dl
AL dobavit' # pustyh strok il
rp povtorit' stroku # # raz rep
--------ROLLING---------------------------------
cs ustanovit' rolliruemuyu oblast' # stroki ot # do # csr
sf rollirovat' tekst vverh ind
sr rollirovat' tekst vniz ri
SF rolling vpered na # strok indn
SR rolling vniz na # strok rin
----------ZVONOK--------------------------------
uc podcherknut' simvol uc
bl zvonok bel
vb vidimyj zvonok flash
------------DVIZHENIE KURSORA--------------------
ch ustanovit' gorizontal'nuyu poziciyu chts
cv absolyutnaya vertikal'naya poziciya # vpa
cm pozicionirovat' kursor #str #stolb cup
CM otnositel'noe pozicionir kursora v pamyati mrcup
LE kursor vlevo na # pozicij cub
RI kursor vpravo na # pozicij cuf
DO kursor vniz na # strok cud
UP kursor vverh na # strok cuu
sc zapomnit' poziciyu kursora sc
rc vosstanovit' poziciyu kursora rc
ho v nachalo ekrana (esli net ti (cap)) home
ll posl.stroka, pervyj stolbec,(esli net cap) ll
nl perejti na novuyu stroku (esli ne \n)
bc shag nazad
le kursor vlevo cub1
do kursor vniz cud1
nd kursor vpravo cuf1
up kursor vverh cuu1
hu Na polstroki vverh hu
hd na polstroki vniz hd
cr vernut' karetku cr
nw vozvrat karetki i perehod k novoj stroke nel
--------------TABULYACIYA-------------------------
st ustanovit' ostanovku po tabulyacii hts
ct sbrosit' vse pozicii tabulyacii tbc
bt obratnaya tabulyaciya cbt
ta tabulirovat' na sled pozicyu apparatnogo tabulyatora ht
-------STATUSLINE-------------------------------
ds ubrat' statusline dsl
ts vojti v statusline, v stolbec # tsl
fs vernut'sya iz statusline fsl
---------PRINTER--------------------------------
ps raspechatat' ekran mc0
ff (*) raspechatat' ekran eject ff
pO pereklyuchit' na printer # simvolov mc5p
po vklyuchit' printer mc5
pf vyklyuchit' printer mc4
-----------REZHIMY PEREDACHI----------------------
mm v "meta" rezhim (8 j bit) smm
mo konec "meta" rezhima rmm
ks v rezhim "keypad-transmit" smkx
ke konec rezhima "keypad-transmit" rmkx
cA Enable alternate_ char set
SA Start alternate_ char set smam
-------------AVTOMATICHESKIE GRANICY-------------
MC ochistit' levye i pravye soft granicy mgc
RA vyklyuchit' avtomaticheskie granicy
ML ustanovit' programmnuyu levuyu granicu smgl
MR ustanovit' programmnuyu pravuyu granicu smgr
wi tekushchee okno v poziciyah #1 - 4 wind
---------------Xonoff protokol------------------
SX Turn on xon/xoff handshaking smxon
RX Turn off xon/xoff handshaking rmxon
XF X-off simvol xoffc
XN X-on simvol xonc
-----------------PROGRAMMIROVANIE---------------
LF vyklyuchit' programmiruemye metki rmln
LO vklyuchit' programmiruemye metki smln
pk programmirovat' fklavishu # v stroku # pfkey
pl programmirovat' fklavishu # v vypolnenie stroki # pfloc
px programmirovat' fklav # v xmit stroki # pfx
pn progr metku # pokazat' str # pln
-------KOMANDY NEOPOZNANY
eA
cA
rP lp v rezhime zameny rmp
CC Term. settable cmd char in prototype cmdch
ip zapolniteli, vstavlyaemye posle ins-char ip
pc simvol-zapolnitel' (esli ne \0) pad
RF poslat' sleduyushchij vvedennyj simvol (dlya ptys) rfi
---KLYUCHI----------------------------------------
kb =\b klyuch BACKSPACE (zaboj) kbs
kh klyuch HOME khome
ku klyuch strelka vverh kcuu1
kr klyuch strelka vpravo kcuf1
kl klyuch strelka vlevo kcub1
kd klyuch strelka vniz kcud1
-----KLYUCHI DOPOLNITELXNOJ KLAVIATURY------------
K1 lev.verhn C1 ka1
K2 centr Home kb2
K3 prav.verhn C2 ka3
K4 lev.nizhn. C3 kc1
K5 prav.nizhn. C4 kc3
ko=nd,up dop.funkc. klavishi, sverh {0-9},{.},{-} (sm kn#)
-------KLYUCHI FUNKCIONALXNYH KLAVISH--------------
k0 F1 kf0
k1 F2 . . . i t.d. kf1
k9 F10 kf9
kA F11 kil1
kB F12 kcbt
kC F13 kclr
kD F14 kdch1
kE F15 kel
k; klyuch f10 km
F1 klyuch f11 kf11
F2 klyuch f12 . . . i t.d kf13
F9 klyuch f19 kf19
FA klyuch f20 . . . i t.d. kf21
FZ klyuch f45 kf45
Fa klyuch f46 . . . i t.d. kf46
Fr klyuch f63 kf63
l1 f1 esli na nej napisano ne f1 lf1
l2 f2 esli na nej napisano ne f2 ... i t.d. lf2
. . . i t.d.
l7 lf7
la f10 esli net f10 lf10
ka klyuch CLEAR_ALL_TABS ktbc
kt klyuch CLEAR_TAB kctab
@0 klyuch FIND
@1 klyuch BEGINING
@2 klyuch CANCEL
@3 klyuch CLOSE
@4 klyuch CMD
@5 klyuch COPY
@6 klyuch CREATE
@7 klyuch END
@8 klyuch ENTER/SEND
@9 klyuch EXIT
kL klyuch DELETE_LINE kdl1
kD klyuch DELETE_CHAR kdch1
kM klyuch smlr ili rmrl v rezhime vstavki krmir
kE klyuch END_OF_LINE
kS klyuch CLEAR_TO_END_OF_SCREEN ked
kH HOME_DOWN kll
kN NEXT_PAGE knp
kP PREVIOUS_PAGE kpp
kF SCROLL_FORWARD/DOWN kind
kR SCROLL_BACKWARD/UP kri
kT klyuch SET TAB khts
%1 HELP
%2 MARK
%3 MESSAGE
%4 MOVE
%5 NEXT_OBJECT
%6 OPEN
%7 OPTIONS
%8 PREVIOUS_OBJECT
%9 PRINT
%0 REDO
&1 REFERENCE
&2 REFRESH
&3 REPLACE
&4 RESTART
&5 RESUME
&6 SAVE
&7 SUSPEND
&8 UNDO
&9 SHIFT_BEGIN
&0 SHIFT_CANCEL
*1 SHIFT_COMMAND
*2 SHIFT_COPY
*3 SHIFT_CREATE
*4 SHIFT_DELETE
*5 SHIFT_DEL_LINE
*6 SHIFT_SELECT
*7 SHIFT_END
*8 SHIFT_CLEAR_LINE
*9 SHIFT_EXIT
*0 SHIFT_FIND
#1 SHIFT_HELP
#2 SHIFT_HOME
#3 SHIFT_INPUT
#4 SHIFT_LEFT_ARROW
#5 SHIFT_MESSAGE
%a SHIFT...
. . . i t.d.
%j SHIFT_RESUME
!1 SHIFT_SAVE
!2 SHIFT_SUSPEND
!3 SHIFT_UNDO
Last-modified: Tue, 25 Nov 1997 07:10:22 GMT