.\" -*- coding: UTF-8 -*- '\" t .\" DO NOT EDIT THIS FILE BY HAND! .\" man/MKterminfo.sh generated it from: .\" terminfo.head, ./../include/Caps, ./../include/Caps-ncurses, .\" and terminfo.tail. .\" .\" Note: this document must be run through tbl before nroff or troff. .\" Some man(1) programs recognize the token in the first-line comment .\" as directing them to arrange such a pipeline. .\"*************************************************************************** .\" Copyright 2018-2024,2025 Thomas E. Dickey * .\" Copyright 1998-2016,2017 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * .\" copy of this software and associated documentation files (the * .\" "Software"), to deal in the Software without restriction, including * .\" without limitation the rights to use, copy, modify, merge, publish, * .\" distribute, distribute with modifications, sublicense, and/or sell * .\" copies of the Software, and to permit persons to whom the Software is * .\" furnished to do so, subject to the following conditions: * .\" * .\" The above copyright notice and this permission notice shall be included * .\" in all copies or substantial portions of the Software. * .\" * .\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS * .\" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * .\" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. * .\" IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, * .\" DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * .\" OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * .\" THE USE OR OTHER DEALINGS IN THE SOFTWARE. * .\" * .\" Except as contained in this notice, the name(s) of the above copyright * .\" holders shall not be used in advertising or otherwise to promote the * .\" sale, use or other dealings in this Software without prior written * .\" authorization. * .\"*************************************************************************** .\" .\" $Id: terminfo.head,v 1.69 2025/08/16 21:50:23 tom Exp $ .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH terminfo 5 "16 august 2025" "ncurses 6.6" "Formate de fișiere" .ie \n(.g \{\ .ds `` \(lq .ds '' \(rq .ds ' \(aq .ds ^ \(ha .ds ~ \(ti .\} .el \{\ .ie t .ds `` `` .el .ds `` "" .ie t .ds '' '' .el .ds '' "" .ds ' ' .ds ^ ^ .ds ~ ~ .\} . .de bP .ie n .IP \(bu 4 .el .IP \(bu 2 .. . .SH NUME \fB\%terminfo\fP \- baza de date privind capacitățile terminalelor .SH SINOPSIS /usr/share/terminfo/*/* .SH DESCRIERE \fIterminfo\fP este o bază de date care descrie terminalele, utilizată de programele orientate către ecran, precum \fBnvi\fP(1), \fBlynx\fP(1), \fBmutt\fP(1) și alte aplicații curses, prin apeluri de nivel înalt către biblioteci precum \fBcurses\fP(3X). De asemenea, este utilizată prin apeluri de nivel inferior de către aplicații non\-curses care pot fi orientate către ecran (cum ar fi \fBclear\fP(1)) sau non\-ecran (cum ar fi \fBtabs\fP(1)). .PP \fITerminfo\fP descrie terminalele prin prezentarea unui set de capacități pe care le dețin, prin specificarea modului de efectuare a operațiilor pe ecran, precum și prin specificarea cerințelor de completare și a secvențelor de inițializare. .PP Acest document descrie \fI\%ncurses\fP versiunea 6.6 (patch 20251230). .SS "Sintaxa intrărilor \fIterminfo\fP" Intrările din \fIterminfo\fP sunt alcătuite dintr\-o succesiune de câmpuri: .bP Fiecare câmp se încheie cu o virgulă „,” (virgulele incluse pot fi eludate cu o bară oblică inversă sau scrise ca „\e054”). .bP Spațiul alb dintre câmpuri este ignorat. .bP Primul câmp dintr\-o intrare \fIterminfo\fP începe în prima coloană. .bP Liniile noi și spațiile de la începutul rândului (spații sau tabulatoare) pot fi utilizate pentru formatarea intrărilor, în scopul îmbunătățirii lizibilității. Acestea sunt eliminate din intrările analizate. .IP Opțiunile \fBinfocmp\fP, \fB\-f\fP și \fB\-W\fP se bazează pe aceasta pentru a formata expresiile de tip „if\-then\-else” sau pentru a impune o lățime maximă a liniei. Descrierea terminalului formatată astfel poate fi citită de \fBtic\fP. .bP Primul câmp pentru fiecare terminal conține numele cunoscute ale terminalului, separate prin caractere „|”. .IP Primul nume specificat este cea mai uzuală abreviere a terminalului (denumirea sa principală), ultimul nume specificat trebuie să fie o denumire completă care identifică terminalul (vezi \fBlongname\fP(3X)), iar toate celelalte sunt considerate sinonime (alias) pentru denumirea principală a terminalului. .IP X/Open Curses recomandă ca toate numele, cu excepția celui din urmă, să fie scrise cu litere mici și să nu conțină spații; ultimul nume poate conține litere mari și spații, pentru o mai bună lizibilitate. .IP Această implementare nu este atât de strictă; permite utilizarea majusculelor și minusculelor în numele principal și în alias. Dacă numele nu conține spații, acesta poate fi atât un alias, cât și un nume complet (însă va afișa un avertisment cu privire la această ambiguitate). .bP Liniile care încep cu „#” în prima coloană sunt considerate comentarii. .IP Deși liniile de comentarii sunt valabile în orice punct, rezultatul comenzilor \fBcaptoinfo\fP și \fBinfotocap\fP (nume\-alias pentru \fBtic\fP) va muta comentariile astfel încât acestea să apară numai între intrări. .PP Numele terminalelor (cu excepția ultimei intrări, cea detaliată) trebuie alese respectând următoarele convenții. Dispozitivul hardware care constituie terminalul trebuie să aibă un nume de bază, de exemplu „hp2621”. Acest nume nu trebuie să conțină cratime. Modurile în care poate fi hardware\-ul sau preferințele utilizatorului ar trebui indicate prin adăugarea unei cratime și a unui sufix de mod. Astfel, un vt100 în modul de 132 de coloane ar fi vt100\-w. Următoarele sufixe ar trebui utilizate acolo unde este posibil: .PP .TS center; Lb Lb Lb L L Lx. Sufix Exemplu Semnificație _ \-\fInn\fP aaa\-60 Numărul de linii de pe ecranul terminalului \-\fIn\fPp c100\-4p Numărul de pagini din memorie \-am vt100\-am Cu margini automate (în mod normal, implicit) \-m ansi\-m Modul monocolor: suprimă suportul pentru culori \-mc wy30\-mc Cookie magic; spații la evidențiere \-na c100\-na Fără tastele săgeată (lăsați\-le în local) \-nam vt100\-nam Fără margini automate \-nl hp2621\-nl Fără linie de stare \-ns hp2626\-ns Fără linie de stare \-rv c100\-rv Video invers (negru pe alb) \-s vt100\-s Activează linia de stare \-vb wy370\-vb Utilizează un clopoțel vizibil (flash) în loc de semnal sonor \-w vt100\-w Modul lat (> 80 de coloane, de obicei 132) .TE .PP Pentru mai multe informații despre convențiile de denumire a terminalelor, consultați pagina de manual \fB\%term\fP(7). .SS "Sintaxa capacităților \fIterminfo\fP" Intrarea terminfo este alcătuită din mai multe \fIcapabilities\fP \-\- capacități, adică funcționalități de care dispune terminalul sau metode de utilizare a acestor funcționalități. .PP După primul câmp (care conține numele intrării de terminal), ar trebui să urmeze unul sau mai multe câmpuri de tip \fIcapacitate\fP. Acestea sunt valori booleene, numerice sau nume de tip șir de caractere, însoțite de valorile corespunzătoare: .bP Capacitățile booleene sunt adevărate atunci când sunt prezente și false atunci când lipsesc. Nu există o valoare explicită pentru capacitățile booleene. .bP Capacitățile numerice sunt urmate de „#” după nume, apoi de o valoare întreagă zecimală fără semn. .bP Capacitățile de tip șir sunt urmate de „=” după nume, apoi de un șir de caractere care constituie valoarea capacității. .IP Șirurile capacităților pot fi împărțite pe mai multe rânduri, la fel cum câmpurile care alcătuiesc o intrare de terminal pot fi împărțite pe mai multe rânduri. Deși spațiile dintre câmpuri sunt ignorate, spațiile incluse în valoarea unui șir sunt păstrate, cu excepția spațiilor de la începutul unui rând. .PP Orice capacitate poate fi \fIanulată\fP, adică eliminată din intrarea terminalului, prin adăugarea simbolului „@” după numele acesteia, în loc de o valoare a capacității. .SS "Terminale similare" Dacă există două terminale foarte asemănătoare, unul dintre ele (varianta) poate fi definit ca fiind identic cu celălalt (terminalul de bază), cu anumite excepții. În definiția variantei, capacitatea de șir \fBuse\fP poate fi specificată cu numele terminalului de bază: .bP Capacitățile specificate înainte de \fBuse\fP le înlocuiesc pe cele din tipul de bază denumit \fBuse\fP. .bP Dacă există mai multe capacități \fBuse\fP, acestea sunt combinate în ordine inversă. Adică, referința \fBuse\fP situată cel mai la dreapta este procesată prima, apoi cea din stânga acesteia și așa mai departe. .bP Capacitățile specificate în mod explicit în intrare au prioritate față de cele introduse prin referințele \fBuse\fP. .PP O capacitate poate fi anulată prin plasarea lui \fBxx@\fP în stânga referinței de utilizare care o importă, unde \fIxx\fP reprezintă capacitatea. De exemplu, intrarea .RS .PP 2621\-nl, smkx@, rmkx@, use=2621, .RE .PP definește un terminal 2621\-nl care nu dispune de capacitățile \fBsmkx\fP sau \fBrmkx\fP și, prin urmare, nu activează etichetele tastelor funcționale în modul vizual. Această opțiune este utilă pentru diferite moduri de funcționare ale terminalului sau pentru diferite preferințe ale utilizatorului. .PP O intrare inclusă prin \fBuse\fP poate conține capacități anulate, care au același efect ca și cum acele anulări ar fi fost incluse direct în intrarea utilizării terminalului. .SS "Capacități standard" .\" Head of terminfo man page ends here .ps -1 Tabelele de capacități pe care \fI\%ncurses\fP le recunoaște într\-o descriere a tipului de terminal \fI\%term\%info\fP și disponibile pentru codul care utilizează \fI\%term\%info\fP sunt următoarele. .bP Numele capacității identifică simbolul prin care programatorul care utilizează API\-ul \fI\%term\%info\fP accesează capacitatea. .bP Codul TI (\fI\%term\%info\fP) este denumirea scurtă utilizată de persoana care creează sau actualizează o intrare de tip terminal. .IP Pe cât posibil, aceste coduri sunt identice sau similare cu cele din standardul ANSI X3.64\-1979 (înlocuit în prezent de ECMA\-48, care utilizează denumiri identice sau foarte similare). De asemenea, se urmărește ca semantica să corespundă cu cea din specificație. .IP Codurile \fI\%term\%info\fP nu au o limită strictă de lungime, dar \fI\%ncurses\fP menține o limită neoficială de 5 caractere pentru a le menține scurte și pentru a permite alinierea corespunzătoare a tabulatoarelor din fișierul sursă \fICaps\fP; (unele coduri standard depășesc totuși această limită). .bP Codul TC (\fItermcap\fP) este cel utilizat de API\-ul corespunzător al \fI%ncurses\fP; (unele capacități sunt noi și au denumiri care nu provin din \fItermcap\fP BSD). .bP Câmpul de descriere încearcă să transmită semantica capacității. .PP Câmpul de descriere utilizează o serie de notații. .TP \fB(P)\fP indică faptul că poate fi specificată o umplutură. .TP \fB(P*)\fP indică faptul că umplutura poate varia proporțional cu numărul de linii de ieșire afectate. .TP \fB#\fP\fIi\fP indică al \fIi\fP\-lea parametru al unei capacități de șir; programatorul trebuie să paseze șirul către \fB\%tparm\fP(3X) cu parametrii enumerați. .IP Dacă descrierea nu menționează niciun parametru, transmiterea șirului către \fB\%tparm\fP(3X) poate duce la un comportament neașteptat, de exemplu dacă șirul conține semne de procent. . .br .if n .ne 4v .if t .ne 3v .PP .TS center; Lb Cb S Lb Lb Lb Lb Lb Lbw(25n)2 Lbw(8n)2 Lb2 Lw(17n)x. \& Cod \& Nume capacitate booleană TI TC Descriere _ auto_left_margin bw bw T{ .na cub1 se încadrează de la coloana 0 până la ultima T} auto_right_margin am am T{ .na terminalul are margini automate T} no_esc_ctlc xsb xb T{ .na beehive (f1=escape, f2=ctrl C) T} ceol_standout_glitch xhp xs T{ .na ieșirea standard care nu este ștearsă prin suprascriere (hp) T} eat_newline_glitch xenl xn T{ .na linie nouă ignorată după 80 de coloane (concept) T} erase_overstrike eo eo T{ .na poate șterge suprascrierile cu un spațiu în alb T} generic_type gn gn T{ .na tip de linie generică T} hard_copy hc hc T{ .na terminal „hard\-copy” (terminal\-imprimantă) T} has_meta_key km km T{ .na are o meta\-tastă (adică, stabilește al 8\-lea bit) T} has_status_line hs hs T{ .na are o linie de stare suplimentară T} insert_null_glitch in in T{ .na modul de inserare distinge nulurile T} memory_above da da T{ .na afișajul poate fi reținut deasupra ecranului T} memory_below db db T{ .na afișajul poate fi reținut sub ecran T} move_insert_mode mir mi T{ .na deplasare în siguranță în modul de inserare T} move_standout_mode msgr ms T{ .na deplasare sigură în timp ce se află în modul „standout” T} over_strike os os T{ .na terminalul poate suprascrie textul (overstrike) T} status_line_esc_ok eslok es T{ .na eludarea poate fi utilizată în linia de stare T} dest_tabs_magic_smso xt xt T{ .na tabulatoare distructive, magie deci de caracter (t1061) T} tilde_glitch hz hz T{ .na nu poate imprima caracterele „~” (Hazeltine) T} transparent_underline ul ul T{ .na caracterul subliniat se suprascrie T} xon_xoff xon xo T{ .na terminalul utilizează negocierea xon/xoff T} needs_xon_xoff nxon nx T{ .na umplerea nu va funcționa, este necesar xon/xoff T} prtr_silent mc5i 5i T{ .na imprimanta nu va avea ecou (textul nu va fi afișat) pe ecran T} hard_cursor chts HC T{ .na cursorul este greu de văzut T} non_rev_rmcup nrrmc NR T{ .na smcup nu inversează rmcup T} no_pad_char npc NP T{ .na caracterul de umplutură „pad” nu există T} non_dest_scroll_region ndscr ND T{ .na derularea regiunii este nedistructivă T} can_change ccc cc T{ .na terminalul poate redefini culorile existente T} back_color_erase bce ut T{ .na ecran șters cu culoarea de fundal T} hue_lightness_saturation hls hl T{ .na terminalul utilizează numai notarea culorilor HLS (Tektronix) T} col_addr_glitch xhpa YA T{ .na numai mișcare pozitivă pentru capacitățile hpa/mhpa T} cr_cancels_micro_mode crxm YB T{ .na utilizarea „cr” dezactivează modul micro T} has_print_wheel daisy YC T{ .na imprimanta necesită un operator pentru a schimba setul de caractere T} row_addr_glitch xvpa YD T{ .na numai mișcare pozitivă pentru capacitățile vpa/mvpa T} semi_auto_right_margin sam YE T{ .na imprimarea în ultima coloană provoacă „cr” (retur de cărucior) T} cpi_changes_res cpix YF T{ .na schimbarea înălțimii (pitch) caracterului schimbă rezoluția T} lpi_changes_res lpix YG T{ .na schimbarea înălțimii (pitch) liniei schimbă rezoluția T} .TE .PP . .TS center; Lb Cb S Lb Lb Lb Lb Lb Lbw(25n)2 Lbw(8n)2 Lb2 Lw(17n)x. \& Cod \& Nume capacitate numerică TI TC Descriere _ columns cols co T{ .na numărul de coloane într\-o linie T} init_tabs it it T{ .na începere tabulatoare (tabs initially) la fiecare # spații T} lines lines li T{ .na numărul de linii de pe ecran sau pagină T} lines_of_memory lm lm T{ .na linii de memorie dacă > 1 linie. 0 înseamnă că variază T} magic_cookie_glitch xmc sg T{ .na numărul de spații lăsate de smso sau rmso T} padding_baud_rate pb pb T{ .na cea mai mică viteză de transmisie (rata baud) când este necesară umplerea T} virtual_terminal vt vt T{ .na numărul terminalului virtual (CB/unix) T} width_status_line wsl ws T{ .na numărul de coloane din linia de stare T} num_labels nlab Nl T{ .na numărul de etichete pe ecran T} label_height lh lh T{ .na rânduri în fiecare etichetă T} label_width lw lw T{ .na coloane în fiecare etichetă T} max_attributes ma ma T{ .na numărul maxim de atribute combinate pe care terminalul le poate gestiona T} maximum_windows wnum MW T{ .na numărul maxim de ferestre definibile T} max_colors colors Co T{ .na numărul maxim de culori pe ecran T} max_pairs pairs pa T{ .na numărul maxim de perechi de culori pe ecran T} no_color_video ncv NC T{ .na atribute video care nu pot fi utilizate cu culori T} .TE .PP . Următoarele capacități numerice sunt prezente în structura de termeni SVr4.0, dar nu sunt încă documentate în pagina de manual. Acestea au fost introduse odată cu suportul pentru imprimante din SVr4. . .PP .TS center; Lb Cb S Lb Lb Lb Lb Lb Lbw(25n)2 Lbw(8n)2 Lb2 Lw(17n)x. \& Cod \& Nume capacitate numerică TI TC Descriere _ buffer_capacity bufsz Ya T{ .na numărul de octeți stocați în memoria tampon înainte de imprimare T} dot_vert_spacing spinv Yb T{ .na distanța dintre pini pe verticală în pini pe inch T} dot_horz_spacing spinh Yc T{ .na distanța dintre puncte pe orizontală în puncte pe inch T} max_micro_address maddr Yd T{ .na valoarea maximă în micro_..._adress T} max_micro_jump mjump Ye T{ .na valoarea maximă în parm_..._micro T} micro_col_size mcs Yf T{ .na dimensiunea pasului (treptei) de caracter în modul micro T} micro_line_size mls Yg T{ .na dimensiunea pasului (treptei) de linie modul micro T} number_of_pins npins Yh T{ .na numărul de pini din capul de imprimare T} output_res_char orc Yi T{ .na rezoluția orizontală în unități per linie T} output_res_line orl Yj T{ .na rezoluția verticală în unități per linie T} output_res_horz_inch orhi Yk T{ .na rezoluția orizontală în unități per inch T} output_res_vert_inch orvi Yl T{ .na rezoluția verticală în unități per inch T} print_rate cps Ym T{ .na afișează rata de transmisie în caractere pe secundă T} wide_char_size widcs Yn T{ .na dimensiunea pasului (treptei) de caracter în modul de lățime dublă T} buttons btns BT T{ .na numărul de butoane ale mouse\-ului T} bit_image_entwining bitwin Yo T{ .na numărul de treceri pentru fiecare rând al imaginii de biți T} bit_image_type bitype Yp T{ .na tipul de dispozitiv al imaginii de biți T} .TE .PP . .TS center; Lb Cb S Lb Lb Lb Lb Lb Lbw(25n)2 Lbw(8n)2 Lb2 Lw(17n)x. \& Cod \& Numele capacității de tip șir TI TC Descriere _ back_tab cbt bt T{ .na tabulator înapoi (P) T} bell bel bl T{ .na semnal audibil (clopoțel) (P) T} carriage_return cr cr T{ .na retur de cărucior (P*) (P*) T} change_scroll_region csr cs T{ .na schimbă regiunea de la linia #1 la linia #2 (P) T} clear_all_tabs tbc ct T{ .na șterge toate opririle de tabulare „tab stops” (P) T} clear_screen clear cl T{ .na șterge ecranul și cursorul de pornire (P*) T} clr_eol el ce T{ .na șterge până la sfârșitul liniei (P) T} clr_eos ed cd T{ .na șterge până la sfârșitul ecranului (P*) T} column_address hpa ch T{ .na poziția orizontală #1, absolută (P) T} command_character cmdch CC T{ .na caracter cmd definibil de terminal în prototip !? T} cursor_address cup cm T{ .na trece la rândul nr.1 coloana nr.2 T} cursor_down cud1 do T{ .na o linie mai jos T} cursor_home home ho T{ .na cursorul la punctul inițial (dacă nu există cup) T} cursor_invisible civis vi T{ .na face cursorul invizibil T} cursor_left cub1 le T{ .na mută la stânga cu un spațiu T} cursor_mem_address mrcup CM T{ .na adresarea relativă a cursorului în memorie, mută la rândul nr.1 coloana nr.2 T} cursor_normal cnorm ve T{ .na face cursorul să apară normal (anulează civis/cvvis) T} cursor_right cuf1 nd T{ .na spațiu nedistructiv (mutare la dreapta cu un spațiu) T} cursor_to_ll ll ll T{ .na prima linie, prima coloană (dacă nu există „cup”) T} cursor_up cuu1 up T{ .na în sus cu o linie T} cursor_visible cvvis vs T{ .na face cursorul foarte vizibil T} delete_character dch1 dc T{ .na șterge caracter (P*) T} delete_line dl1 dl T{ .na șterge linia (P*) T} dis_status_line dsl ds T{ .na dezactivează linia de stare T} down_half_line hd hd T{ .na o jumătate de linie mai jos T} enter_alt_charset_mode smacs as T{ .na trece la setul de caractere alternativ (P) T} enter_blink_mode blink mb T{ .na activează clipirea T} enter_bold_mode bold md T{ .na activează modul aldin (foarte luminos) T} enter_ca_mode smcup ti T{ .na șir pentru a porni programe folosind cup T} enter_delete_mode smdc dm T{ .na intră în modul de ștergere T} enter_dim_mode dim mh T{ .na activează modul semiluminos T} enter_insert_mode smir im T{ .na intră în modul de inserare T} enter_secure_mode invis mk T{ .na activează modul invizibil (caractere invizibile) T} enter_protected_mode prot mp T{ .na activează modul protejat T} enter_reverse_mode rev mr T{ .na activează modul video invers (inversează culorile a caracterelor cu a fundalului) T} enter_standout_mode smso so T{ .na intră în modul fără spațiu (standout) T} enter_underline_mode smul us T{ .na intră în modul de subliniere T} erase_chars ech ec T{ .na șterge #1 caractere (P) T} exit_alt_charset_mode rmacs ae T{ .na trece la setul de caractere normal (părăsește setul alternativ) (P) T} exit_attribute_mode sgr0 me T{ .na dezactivează toate atributele T} exit_ca_mode rmcup te T{ .na șir pentru a termina programe folosind cup T} exit_delete_mode rmdc ed T{ .na iese din modul de ștergere T} exit_insert_mode rmir ei T{ .na iese din modul de inserare T} exit_standout_mode rmso se T{ .na iese din modul fără spațiu (standout) T} exit_underline_mode rmul ue T{ .na iese din modul de subliniere T} flash_screen flash vb T{ .na clopoțel vizibil (nu poate muta cursorul) T} form_feed ff ff T{ .na ejectare pagină a terminalului\-imprimantă „hardcopy terminal” (P*) T} from_status_line fsl fs T{ .na revenire de la linia de stare T} init_1string is1 i1 T{ .na șir de inițializare T} init_2string is2 is T{ .na șir de inițializare T} init_3string is3 i3 T{ .na șir de inițializare T} init_file if if T{ .na numele fișierului de inițializare T} insert_character ich1 ic T{ .na inserează un caracter (P) T} insert_line il1 al T{ .na inserează o linie (P*) T} insert_padding ip ip T{ .na inserează umplutură după caracterul inserat T} key_backspace kbs kb T{ .na tasta backspace (retrocedare) T} key_catab ktbc ka T{ .na tasta șterge toate tabulatoarele (clear\-all\-tabs) T} key_clear kclr kC T{ .na tasta de ștergere a ecranului sau tasta de ștergere T} key_ctab kctab kt T{ .na tasta șterge\-tabulator T} key_dc kdch1 kD T{ .na tasta șterge\-caracter T} key_dl kdl1 kL T{ .na tasta șterge\-linie T} key_down kcud1 kd T{ .na tasta săgeată\-jos T} .TE .TS center; Lbw(25n)2 Lbw(8n)2 Lb2 Lw(17n)x. key_eic krmir kM T{ .na trimis de rmir sau smir în modul inserare T} key_eol kel kE T{ .na tastă de ștergere la sfârșit de linie T} key_eos ked kS T{ .na tasta de ștergere la sfârșitul ecranului T} key_f0 kf0 k0 T{ .na tasta de funcție F0 T} key_f1 kf1 k1 T{ .na tasta de funcție F1 T} key_f10 kf10 k; T{ .na tasta de funcție F10 T} key_f2 kf2 k2 T{ .na tasta de funcție F2 T} key_f3 kf3 k3 T{ .na tasta de funcție F3 T} key_f4 kf4 k4 T{ .na tasta de funcție F4 T} key_f5 kf5 k5 T{ .na tasta de funcție F5 T} key_f6 kf6 k6 T{ .na tasta de funcție F6 T} key_f7 kf7 k7 T{ .na tasta de funcție F7 T} key_f8 kf8 k8 T{ .na tasta de funcție F8 T} key_f9 kf9 k9 T{ .na tasta de funcție F9 T} key_home khome kh T{ .na tasta «home» (la început) T} key_ic kich1 kI T{ .na tasta inserare\-caracter T} key_il kil1 kA T{ .na tasta inserare\-linie T} key_left kcub1 kl T{ .na tasta săgeată\-stânga T} key_ll kll kH T{ .na tasta din stânga jos (home down) T} key_npage knp kN T{ .na tasta pagina\-următoare T} key_ppage kpp kP T{ .na tasta pagina\-anterioară T} key_right kcuf1 kr T{ .na tasta săgeată\-dreapta T} key_sf kind kF T{ .na tasta de derulare înainte T} key_sr kri kR T{ .na tasta de derulare înapoi T} key_stab khts kT T{ .na tasta de configurare a tabulatorului (set\-tab key) T} key_up kcuu1 ku T{ .na tasta săgeată\-sus T} keypad_local rmkx ke T{ .na ieșire din modul de transmitere a tastaturii numerice T} keypad_xmit smkx ks T{ .na intrare în modul de transmitere a tastaturii numerice T} lab_f0 lf0 l0 T{ .na etichetă pe tasta de funcție f0 dacă nu este f0 T} lab_f1 lf1 l1 T{ .na etichetă pe tasta de funcție f1 dacă nu este f1 T} lab_f10 lf10 la T{ .na etichetă pe tasta de funcție f10 dacă nu este f10 T} lab_f2 lf2 l2 T{ .na etichetă pe tasta de funcție f2 dacă nu este f2 T} lab_f3 lf3 l3 T{ .na etichetă pe tasta de funcție f3 dacă nu este f3 T} lab_f4 lf4 l4 T{ .na etichetă pe tasta de funcție f4 dacă nu este f4 T} lab_f5 lf5 l5 T{ .na etichetă pe tasta de funcție f5 dacă nu este f5 T} lab_f6 lf6 l6 T{ .na etichetă pe tasta de funcție f6 dacă nu este f6 T} lab_f7 lf7 l7 T{ .na etichetă pe tasta de funcție f7 dacă nu este f7 T} lab_f8 lf8 l8 T{ .na etichetă pe tasta de funcție f8 dacă nu este f8 T} lab_f9 lf9 l9 T{ .na etichetă pe tasta de funcție f9 dacă nu este f9 T} meta_off rmm mo T{ .na dezactivează modul meta T} meta_on smm mm T{ .na activează modul meta (bitul al 8\-lea activat) T} newline nel nw T{ .na linie nouă (se comportă ca cr urmat de lf) T} pad_char pad pc T{ .na caracter de umplere (în loc de null) T} parm_dch dch DC T{ .na șterge #1 caractere (P*) T} parm_delete_line dl DL T{ .na șterge #1 linii (P*) T} parm_down_cursor cud DO T{ .na în jos #1 linii (P*) T} parm_ich ich IC T{ .na inserează #1 caractere (P*) T} parm_index indn SF T{ .na derulează înainte #1 linii (P) T} parm_insert_line il AL T{ .na inserează #1 linii (P*) T} parm_left_cursor cub LE T{ .na mută #1 caractere la stânga (P*) T} parm_right_cursor cuf RI T{ .na mută #1 caractere la dreapta (P*) T} parm_rindex rin SR T{ .na derulează înapoi #1 linii (P) T} parm_up_cursor cuu UP T{ .na în sus #1 linii (P*) T} pkey_key pfkey pk T{ .na programează tasta de funcții #1 pentru a introduce șirul #2 T} pkey_local pfloc pl T{ .na programează tasta de funcții #1 pentru a executa șirul #2 T} pkey_xmit pfx px T{ .na programează tasta de funcții #1 pentru a transmite șirul #2 T} print_screen mc0 ps T{ .na imprimă conținutul ecranului T} prtr_off mc4 pf T{ .na oprește imprimanta T} prtr_on mc5 po T{ .na pornște imprimanta T} repeat_char rep rp T{ .na repetă caracterul #1 de #2 ori (P*) T} reset_1string rs1 r1 T{ .na șirul de reinițializare T} reset_2string rs2 r2 T{ .na șirul de reinițializare T} .TE .TS center; Lbw(25n)2 Lbw(8n)2 Lb2 Lw(17n)x. reset_3string rs3 r3 T{ .na șirul de reinițializare T} reset_file rf rf T{ .na numele fișierului de reinițializare T} restore_cursor rc rc T{ .na readuce cursorul la poziția din momentul ultimei salvări a cursorului (save_cursor) T} row_address vpa cv T{ .na poziția verticală #1, absolută (P) T} save_cursor sc sc T{ .na salvează poziția curentă a cursorului (P) T} scroll_forward ind sf T{ .na derulează textul în sus (P) T} scroll_reverse ri sr T{ .na derulează textul în jos (P) T} set_attributes sgr sa T{ .na definește atributele video #1\-#9 (PG9) T} set_tab hts st T{ .na stabilește un tabulator în fiecare rând, coloanele curente T} set_window wind wi T{ .na fereastra curentă cuprinde rândurile #1\-#2 și coloanele #3\-#4 T} tab ht ta T{ .na mută cursorul la următorul punct de oprire (tab) prestabilit la fiecare 8 spații(coloane) T} to_status_line tsl ts T{ .na mută cursorul la linia de stare, coloana #1 T} underline_char uc uc T{ .na subliniază caracterul și trece mai departe T} up_half_line hu hu T{ .na o jumătate de linie mai sus T} init_prog iprog iP T{ .na numele rutei către programul de inițializare T} key_a1 ka1 K1 T{ .na tasta din stânga sus «Home» a tastaturii numerice T} key_a3 ka3 K3 T{ .na tasta din dreapta jos «Pag. ant.» a tastaturii numerice T} key_b2 kb2 K2 T{ .na tasta din mijlocul tastaturii numerice «5» T} key_c1 kc1 K4 T{ .na tasta din stânga jos «End» a tastaturii numerice T} key_c3 kc3 K5 T{ .na tasta din dreapta jos «Pag. urm.» a tastaturii numerice T} prtr_non mc5p pO T{ .na pornște imprimanta pentru #1 octeți T} char_padding rmp rP T{ .na la fel ca „ip”, dar în modul de inserare T} acs_chars acsc ac T{ .na perechi de caractere grafice (precum aA, bB, cC), bazate pe vt100 T} plab_norm pln pn T{ .na eticheta programului #1 pentru a afișa șirul #2 T} key_btab kcbt kB T{ .na tasta „back\-tab” (Shift+Tab) T} enter_xon_mode smxon SX T{ .na activează negocierea xon/xoff T} exit_xon_mode rmxon RX T{ .na dezactivează negocierea xon/xoff T} enter_am_mode smam SA T{ .na activează marginile automate T} exit_am_mode rmam RA T{ .na dezactivează marginile automate T} xon_character xonc XN T{ .na caracterul XON T} xoff_character xoffc XF T{ .na caracterul XOFF T} ena_acs enacs eA T{ .na activează setul de caractere alternativ T} label_on smln LO T{ .na turn on soft labels T} label_off rmln LF T{ .na turn off soft labels T} key_beg kbeg @1 T{ .na tata start/Home T} key_cancel kcan @2 T{ .na tasta de anulare/Cancel T} key_close kclo @3 T{ .na tasta de închidere T} key_command kcmd @4 T{ .na tasta de comandă T} key_copy kcpy @5 T{ .na tasta de copiere T} key_create kcrt @6 T{ .na create key T} key_end kend @7 T{ .na end key T} key_enter kent @8 T{ .na enter/send key T} key_exit kext @9 T{ .na exit key T} key_find kfnd @0 T{ .na find key T} key_help khlp %1 T{ .na help key T} key_mark kmrk %2 T{ .na mark key T} key_message kmsg %3 T{ .na message key T} key_move kmov %4 T{ .na move key T} key_next knxt %5 T{ .na next key T} key_open kopn %6 T{ .na open key T} key_options kopt %7 T{ .na options key T} key_previous kprv %8 T{ .na previous key T} key_print kprt %9 T{ .na print key T} key_redo krdo %0 T{ .na redo key T} key_reference kref &1 T{ .na reference key T} key_refresh krfr &2 T{ .na refresh key T} key_replace krpl &3 T{ .na replace key T} key_restart krst &4 T{ .na restart key T} key_resume kres &5 T{ .na resume key T} key_save ksav &6 T{ .na save key T} key_suspend kspd &7 T{ .na suspend key T} key_undo kund &8 T{ .na undo key T} .TE .TS center; Lbw(25n)2 Lbw(8n)2 Lb2 Lw(17n)x. key_sbeg kBEG &9 T{ .na shifted begin key T} key_scancel kCAN &0 T{ .na shifted cancel key T} key_scommand kCMD *1 T{ .na shifted command key T} key_scopy kCPY *2 T{ .na shifted copy key T} key_screate kCRT *3 T{ .na shifted create key T} key_sdc kDC *4 T{ .na shifted delete\-character key T} key_sdl kDL *5 T{ .na shifted delete\-line key T} key_select kslt *6 T{ .na select key T} key_send kEND *7 T{ .na shifted end key T} key_seol kEOL *8 T{ .na shifted clear\-to\-end\-of\-line key T} key_sexit kEXT *9 T{ .na shifted exit key T} key_sfind kFND *0 T{ .na shifted find key T} key_shelp kHLP #1 T{ .na shifted help key T} key_shome kHOM #2 T{ .na shifted home key T} key_sic kIC #3 T{ .na shifted insert\-character key T} key_sleft kLFT #4 T{ .na shifted left\-arrow key T} key_smessage kMSG %a T{ .na shifted message key T} key_smove kMOV %b T{ .na shifted move key T} key_snext kNXT %c T{ .na shifted next key T} key_soptions kOPT %d T{ .na shifted options key T} key_sprevious kPRV %e T{ .na shifted previous key T} key_sprint kPRT %f T{ .na shifted print key T} key_sredo kRDO %g T{ .na shifted redo key T} key_sreplace kRPL %h T{ .na shifted replace key T} key_sright kRIT %i T{ .na shifted right\-arrow key T} key_srsume kRES %j T{ .na shifted resume key T} key_ssave kSAV !1 T{ .na shifted save key T} key_ssuspend kSPD !2 T{ .na shifted suspend key T} key_sundo kUND !3 T{ .na shifted undo key T} req_for_input rfi RF T{ .na send next input char (for ptys) T} key_f11 kf11 F1 T{ .na tasta de funcție F11 T} key_f12 kf12 F2 T{ .na tasta de funcție F12 T} key_f13 kf13 F3 T{ .na tasta de funcție F13 T} key_f14 kf14 F4 T{ .na tasta de funcție F14 T} key_f15 kf15 F5 T{ .na tasta de funcție F15 T} key_f16 kf16 F6 T{ .na tasta de funcție F16 T} key_f17 kf17 F7 T{ .na tasta de funcție F17 T} key_f18 kf18 F8 T{ .na tasta de funcție F18 T} key_f19 kf19 F9 T{ .na tasta de funcție F19 T} key_f20 kf20 FA T{ .na tasta de funcție F20 T} key_f21 kf21 FB T{ .na tasta de funcție F21 T} key_f22 kf22 FC T{ .na tasta de funcție F22 T} key_f23 kf23 FD T{ .na tasta de funcție F23 T} key_f24 kf24 FE T{ .na tasta de funcție F24 T} key_f25 kf25 FF T{ .na tasta de funcție F25 T} key_f26 kf26 FG T{ .na tasta de funcție F26 T} key_f27 kf27 FH T{ .na tasta de funcție F27 T} key_f28 kf28 FI T{ .na tasta de funcție F28 T} key_f29 kf29 FJ T{ .na tasta de funcție F29 T} key_f30 kf30 FK T{ .na tasta de funcție F30 T} key_f31 kf31 FL T{ .na tasta de funcție F31 T} key_f32 kf32 FM T{ .na tasta de funcție F32 T} key_f33 kf33 FN T{ .na tasta de funcție F33 T} key_f34 kf34 FO T{ .na tasta de funcție F34 T} key_f35 kf35 FP T{ .na tasta de funcție F35 T} key_f36 kf36 FQ T{ .na tasta de funcție F36 T} key_f37 kf37 FR T{ .na tasta de funcție F37 T} key_f38 kf38 FS T{ .na tasta de funcție F38 T} key_f39 kf39 FT T{ .na tasta de funcție F39 T} key_f40 kf40 FU T{ .na tasta de funcție F40 T} key_f41 kf41 FV T{ .na tasta de funcție F41 T} key_f42 kf42 FW T{ .na tasta de funcție F42 T} .TE .TS center; Lbw(25n)2 Lbw(8n)2 Lb2 Lw(17n)x. key_f43 kf43 FX T{ .na tasta de funcție F43 T} key_f44 kf44 FY T{ .na tasta de funcție F44 T} key_f45 kf45 FZ T{ .na tasta de funcție F45 T} key_f46 kf46 Fa T{ .na tasta de funcție F46 T} key_f47 kf47 Fb T{ .na tasta de funcție F47 T} key_f48 kf48 Fc T{ .na tasta de funcție F48 T} key_f49 kf49 Fd T{ .na tasta de funcție F49 T} key_f50 kf50 Fe T{ .na tasta de funcție F50 T} key_f51 kf51 Ff T{ .na tasta de funcție F51 T} key_f52 kf52 Fg T{ .na tasta de funcție F52 T} key_f53 kf53 Fh T{ .na tasta de funcție F53 T} key_f54 kf54 Fi T{ .na tasta de funcție F54 T} key_f55 kf55 Fj T{ .na tasta de funcție F55 T} key_f56 kf56 Fk T{ .na tasta de funcție F56 T} key_f57 kf57 Fl T{ .na tasta de funcție F57 T} key_f58 kf58 Fm T{ .na tasta de funcție F58 T} key_f59 kf59 Fn T{ .na tasta de funcție F59 T} key_f60 kf60 Fo T{ .na tasta de funcție F60 T} key_f61 kf61 Fp T{ .na tasta de funcție F61 T} key_f62 kf62 Fq T{ .na tasta de funcție F62 T} key_f63 kf63 Fr T{ .na tasta de funcție F63 T} clr_bol el1 cb T{ .na Clear to beginning of line T} clear_margins mgc MC T{ .na clear right and left soft margins T} set_left_margin smgl ML T{ .na set left soft margin at current column (not in BSD \fItermcap\fP) T} set_right_margin smgr MR T{ .na set right soft margin at current column T} label_format fln Lf T{ .na label format T} set_clock sclk SC T{ .na set clock, #1 hrs #2 mins #3 secs T} display_clock dclk DK T{ .na display clock T} remove_clock rmclk RC T{ .na remove clock T} create_window cwin CW T{ .na define a window #1 from #2,#3 to #4,#5 T} goto_window wingo WG T{ .na go to window #1 T} hangup hup HU T{ .na hang\-up phone T} dial_phone dial DI T{ .na dial number #1 T} quick_dial qdial QD T{ .na dial number #1 without checking T} tone tone TO T{ .na select touch tone dialing T} pulse pulse PU T{ .na select pulse dialing T} flash_hook hook fh T{ .na flash switch hook T} fixed_pause pause PA T{ .na pause for 2\-3 seconds T} wait_tone wait WA T{ .na wait for dial\-tone T} user0 u0 u0 T{ .na șirul nr.0 al utilizatorului T} user1 u1 u1 T{ .na șirul nr.1 al utilizatorului T} user2 u2 u2 T{ .na șirul nr.2 al utilizatorului T} user3 u3 u3 T{ .na șirul nr.3 al utilizatorului T} user4 u4 u4 T{ .na șirul nr.4 al utilizatorului T} user5 u5 u5 T{ .na șirul nr.5 al utilizatorului T} user6 u6 u6 T{ .na șirul nr.6 al utilizatorului T} user7 u7 u7 T{ .na șirul nr.7 al utilizatorului T} user8 u8 u8 T{ .na șirul nr.8 al utilizatorului T} user9 u9 u9 T{ .na șirul nr.9 al utilizatorului T} orig_pair op op T{ .na Set default pair to its original value T} orig_colors oc oc T{ .na Set all color pairs to the original ones T} initialize_color initc Ic T{ .na initialize color #1 to (#2,#3,#4) T} initialize_pair initp Ip T{ .na Initialize color pair #1 to fg=(#2,#3,#4), bg=(#5,#6,#7) T} set_color_pair scp sp T{ .na Set current color pair to #1 T} set_foreground setf Sf T{ .na Set foreground color #1 T} set_background setb Sb T{ .na Set background color #1 T} change_char_pitch cpi ZA T{ .na Change number of characters per inch to #1 T} change_line_pitch lpi ZB T{ .na Change number of lines per inch to #1 T} change_res_horz chr ZC T{ .na Change horizontal resolution to #1 T} change_res_vert cvr ZD T{ .na Change vertical resolution to #1 T} define_char defc ZE T{ .na Define a character #1, #2 dots wide, descender #3 T} enter_doublewide_mode swidm ZF T{ .na Enter double\-wide mode T} .TE .TS center; Lbw(25n)2 Lbw(8n)2 Lb2 Lw(17n)x. enter_draft_quality sdrfq ZG T{ .na Enter draft\-quality mode T} enter_italics_mode sitm ZH T{ .na Enter italic mode T} enter_leftward_mode slm ZI T{ .na Start leftward carriage motion T} enter_micro_mode smicm ZJ T{ .na Start micro\-motion mode T} enter_near_letter_quality snlq ZK T{ .na Enter NLQ mode T} enter_normal_quality snrmq ZL T{ .na Enter normal\-quality mode T} enter_shadow_mode sshm ZM T{ .na Enter shadow\-print mode T} enter_subscript_mode ssubm ZN T{ .na Enter subscript mode T} enter_superscript_mode ssupm ZO T{ .na Enter superscript mode T} enter_upward_mode sum ZP T{ .na Start upward carriage motion T} exit_doublewide_mode rwidm ZQ T{ .na End double\-wide mode T} exit_italics_mode ritm ZR T{ .na End italic mode T} exit_leftward_mode rlm ZS T{ .na End left\-motion mode T} exit_micro_mode rmicm ZT T{ .na End micro\-motion mode T} exit_shadow_mode rshm ZU T{ .na End shadow\-print mode T} exit_subscript_mode rsubm ZV T{ .na End subscript mode T} exit_superscript_mode rsupm ZW T{ .na End superscript mode T} exit_upward_mode rum ZX T{ .na End reverse character motion T} micro_column_address mhpa ZY T{ .na Like column_address in micro mode T} micro_down mcud1 ZZ T{ .na Like cursor_down in micro mode T} micro_left mcub1 Za T{ .na Like cursor_left in micro mode T} micro_right mcuf1 Zb T{ .na Like cursor_right in micro mode T} micro_row_address mvpa Zc T{ .na Like row_address #1 in micro mode T} micro_up mcuu1 Zd T{ .na Like cursor_up in micro mode T} order_of_pins porder Ze T{ .na Match software bits to print\-head pins T} parm_down_micro mcud Zf T{ .na Like parm_down_cursor in micro mode T} parm_left_micro mcub Zg T{ .na Like parm_left_cursor in micro mode T} parm_right_micro mcuf Zh T{ .na Like parm_right_cursor in micro mode T} parm_up_micro mcuu Zi T{ .na Like parm_up_cursor in micro mode T} select_char_set scs Zj T{ .na Select character set, #1 T} set_bottom_margin smgb Zk T{ .na Set bottom margin at current line T} set_bottom_margin_parm smgbp Zl T{ .na Set bottom margin at line #1 or (if smgtp is not given) #2 lines from bottom T} set_left_margin_parm smglp Zm T{ .na Set left (right) margin at column #1 T} set_right_margin_parm smgrp Zn T{ .na Set right margin at column #1 T} set_top_margin smgt Zo T{ .na Set top margin at current line T} set_top_margin_parm smgtp Zp T{ .na Set top (bottom) margin at row #1 T} start_bit_image sbim Zq T{ .na Start printing bit image graphics T} start_char_set_def scsd Zr T{ .na Start character set definition #1, with #2 characters in the set T} stop_bit_image rbim Zs T{ .na Stop printing bit image graphics T} stop_char_set_def rcsd Zt T{ .na End definition of character set #1 T} subscript_characters subcs Zu T{ .na List of subscriptable characters T} superscript_characters supcs Zv T{ .na List of superscriptable characters T} these_cause_cr docr Zw T{ .na Printing any of these characters causes CR T} zero_motion zerom Zx T{ .na No motion for subsequent character T} .TE .PP . Următoarele capacități ale șirurilor de caractere sunt prezente în structura termenilor SVr4.0, dar inițial nu erau documentate în pagina de manual. . .PP .TS center; Lb Cb S Lb Lb Lb Lb Lb Lbw(25n)2 Lbw(8n)2 Lb2 Lw(17n)x. \& Cod \& Numele capacității de tip șir TI TC Descriere _ char_set_names csnm Zy T{ .na Produce elementul al #1\-lea din lista de nume de seturi de caractere T} key_mouse kmous Km T{ .na A avut loc un eveniment al mouse\-ului T} mouse_info minfo Mi T{ .na Informații despre starea mouse\-ului T} req_mouse_pos reqmp RQ T{ .na Solicită poziția mouse\-ului T} get_mouse getm Gm T{ .na Curses ar trebui să primească evenimente de buton, parametrul #1 nu este documentat. T} set_a_foreground setaf AF T{ .na Stabilește culoarea de prim\-plan la #1, folosind eludarea ANSI T} set_a_background setab AB T{ .na Stabilește culoarea de fundal la #1, folosind eludarea ANSI T} pkey_plab pfxl xl T{ .na Programează tasta de funcții #1 pentru a introduce șirul #2 și a afișa șirul #3 T} device_type devt dv T{ .na Indică limba, suportul pentru setul de coduri T} code_set_init csin ci T{ .na Secvență de inițializare pentru mai multe seturi de coduri T} set0_des_seq s0ds s0 T{ .na Trece la setul de coduri 0 (setul EUC 0, ASCII) T} set1_des_seq s1ds s1 T{ .na Trece la setul de coduri 1 T} set2_des_seq s2ds s2 T{ .na Trece la setul de coduri 2 T} set3_des_seq s3ds s3 T{ .na Trece la setul de coduri 3 T} set_lr_margin smglr ML T{ .na Stabilește marginile stânga și dreapta la #1, #2. (ML nu se află în BSD termcap). T} set_tb_margin smgtb MT T{ .na Stabilește marginile de sus și de jos la #1, #2 T} bit_image_repeat birep Xy T{ .na Repetă celula de imagine pe biți #1 de #2 ori T} bit_image_newline binel Zz T{ .na Mută la rândul următor al imaginii pe biți T} bit_image_carriage_return bicr Yv T{ .na Mută la începutul aceluiași rând T} color_names colornm Yw T{ .na Specifică numele culorii #1 T} define_bit_image_region defbi Yx T{ .na Definește regiunea rectangulară a imaginii pe biți T} end_bit_image_region endbi Yy T{ .na Termină o regiune de imagine pe biți T} set_color_band setcolor Yz T{ .na Schimbare la culoarea panglicii #1 T} set_page_length slines YZ T{ .na Stabilește lungimea paginii la #1 linii T} display_pc_char dispc S1 T{ .na Afișează caracterul PC #1 T} enter_pc_charset_mode smpch S2 T{ .na Intrare din modul de afișare a caracterelor PC T} exit_pc_charset_mode rmpch S3 T{ .na Ieșire din modul de afișare a caracterelor PC T} enter_scancode_mode smsc S4 T{ .na Intrare în modul cod de scanare PC T} exit_scancode_mode rmsc S5 T{ .na Ieșire din modul cod de scanare PC T} pc_term_options pctrm S6 T{ .na Opțiuni terminal PC T} scancode_escape scesc S7 T{ .na Eludare pentru emularea codului de scanare T} alt_scancode_esc scesa S8 T{ .na Eludare alternativă pentru emularea codului de scanare T} .TE .PP . Standardul XSI Curses a introdus aceste capacități de imprimare (hardcopy). Acestea au fost utilizate în unele versiuni ale curses pentru System V ulterioare versiunii 4.1, de exemplu Solaris 2.5 și IRIX 6.x. Cu excepția \fBYI\fP, denumirile termcap din \fBncurses\fP pentru acestea sunt inventate. Conform standardului XSI Curses, acestea nu au nume termcap. Dacă intrările terminfo compilate de dvs. le utilizează, este posibil ca acestea să nu fie compatibile binar cu intrările terminfo System V după SVr4.1; aveți grijă! . .PP .TS center; Lb Cb S Lb Lb Lb Lb Lb Lbw(25n)2 Lbw(8n)2 Lb2 Lw(17n)x. \& Cod \& Numele capacității de tip șir TI TC Descriere _ enter_horizontal_hl_mode ehhlm Xh T{ .na Intrare în modul de evidențiere orizontală T} enter_left_hl_mode elhlm Xl T{ .na Intrare în modul de evidențiere stânga T} enter_low_hl_mode elohlm Xo T{ .na Intrare în modul de evidențiere în partea de jos T} enter_right_hl_mode erhlm Xr T{ .na Intrare în modul de evidențiere dreapta T} enter_top_hl_mode ethlm Xt T{ .na Intrare în modul de evidențiere în partea de sus T} enter_vertical_hl_mode evhlm Xv T{ .na Intrare în modul de evidențiere verticală T} set_a_attributes sgr1 sA T{ .na Definește al doilea set de atribute video #1\-#6 T} set_pglen_inch slength YI T{ .na Stabilește lungimea paginii la #1 sutime de inch (unele implementări utilizează sL pentru termcap). T} .TE .\"*************************************************************************** .\" Copyright 2018-2024,2025 Thomas E. Dickey * .\" Copyright 1998-2016,2017 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * .\" copy of this software and associated documentation files (the * .\" "Software"), to deal in the Software without restriction, including * .\" without limitation the rights to use, copy, modify, merge, publish, * .\" distribute, distribute with modifications, sublicense, and/or sell * .\" copies of the Software, and to permit persons to whom the Software is * .\" furnished to do so, subject to the following conditions: * .\" * .\" The above copyright notice and this permission notice shall be included * .\" in all copies or substantial portions of the Software. * .\" * .\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS * .\" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * .\" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. * .\" IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, * .\" DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * .\" OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * .\" THE USE OR OTHER DEALINGS IN THE SOFTWARE. * .\" * .\" Except as contained in this notice, the name(s) of the above copyright * .\" holders shall not be used in advertising or otherwise to promote the * .\" sale, use or other dealings in this Software without prior written * .\" authorization. * .\"*************************************************************************** .\" .\" $Id: terminfo.tail,v 1.163 2025/11/12 01:01:34 Branden.Robinson Exp $ .ps +1 .SS "Capacități definite de utilizator" . Secțiunea anterioară a enumerat capacitățile \fIstandard\fP. Unele dintre acestea sunt mai puțin cunoscute, oferind funcționalități pe care emulatoarele de terminal nu le implementează sau care poate nu au fost niciodată realizate în echipamentele hardware existente. Uneori, emulatoarele dispun de caracteristici speciale care sunt dificil sau imposibil de redat prin intermediul capacităților standard. .PP \fI\%ncurses\fP rezolvă această limitare prin acceptarea capacităților definite de utilizator. Programele \fB\%tic\fP și \fB\%infocmp\fP oferă opțiunea \fB\-x\fP în acest scop. Când se utilizează \fB\-x\fP, \fB\%tic\fP tratează capacitățile necunoscute ca fiind definite de utilizator. Adică, dacă \fB\%tic\fP întâlnește un nume de capacitate pe care nu îl recunoaște, programul deduce tipul capacității (boolean, numeric sau șir) din sintaxa valorii capacității și creează o intrare extinsă în tabel pentru acea capacitate. \fBuse_extended_names\fP(3X) pune aceste informații la dispoziția aplicațiilor în mod condițional. Funcțiile bibliotecii \fI\%ncurses\fP furnizează apelanților date despre capacități, a căror interpretare depinde în mare parte de aplicație. .bP \fI\%ncurses\fP tratează capacitățile de șir definite de utilizator ale căror nume încep cu „k” ca pe niște taste de funcții. .bP Tipurile de capacități (boolean, numeric sau șir de caractere) determinate de \fB\%tic\fP pot fi deduse în urma apelurilor reușite ale funcțiilor \fB\%tigetflag\fP(3X), \fB\%tigetnum\fP(3X) și \fB\%tigetstr\fP(3X). .bP Dacă numele capacității are două caractere, capacitatea este disponibilă și prin interfața termcap. .PP Deși se spune că \fItermcap\fP este extensibil deoarece nu impune nicio capacitate, în practică acesta a fost limitat la cele definite de implementările \fI\%term\%info\fP. Ca regulă generală, utilizați numai capacități definite de utilizator de tip boolean și numeric cu aplicațiile \fItermcap\fP, pentru a evita depășirea limitei de 1023 de octeți asumată de implementările \fItermcap\fP și de aplicațiile acestora. Mai precis, suportul pentru seturi extinse de taste funcționale (dincolo de cele 60 de taste numerice și de câteva taste speciale cu nume) se realizează mai bine cu nume mai lungi disponibile prin \fI\%term\%info\fP. .PP Biblioteca \fI\%ncurses\fP utilizează câteva dintre aceste capacități definite de utilizator, așa cum este descris în \fBuser_caps\fP(5). Pentru alte capacități definite de utilizator, inclusiv tastele de funcție, consultați formatul sursă al bazei de date a terminalului, \fI\%terminfo.src\fP, în secțiunea «NCURSES USER\-DEFINABLE CAPABILITIES». . .SS "Un exemplu de intrare" . Următoarea intrare, care descrie un terminal conform standardului ANSI X.3.64 (sau ECMA\-48) (denumit în continuare „ANSI\-standard” pentru concizie) este reprezentativă pentru aspectul tipic al unei intrări \fI\%term\%info\fP pentru un terminal modern. .PP .EX .nf \s-2ansi|ansi/pc\-term compatibil cu culori, am, mc5i, mir, msgr, colors#8, cols#80, it#8, lines#24, ncv#3, pairs#64, acsc=+\e020\e,\e021\-\e030.\*^Y0\e333\(ga\e004a\e261f\e370g\e361h\e260 j\e331k\e277l\e332m\e300n\e305o\*~p\e304q\e304r\e304s_t\e303 u\e264v\e301w\e302x\e263y\e363z\e362{\e343|\e330}\e234\*~\e376, bel=\*^G, blink=\eE[5m, bold=\eE[1m, cbt=\eE[Z, clear=\eE[H\eE[J, cr=\*^M, cub=\eE[%p1%dD, cub1=\eE[D, cud=\eE[%p1%dB, cud1=\eE[B, cuf=\eE[%p1%dC, cuf1=\eE[C, cup=\eE[%i%p1%d;%p2%dH, cuu=\eE[%p1%dA, cuu1=\eE[A, dch=\eE[%p1%dP, dch1=\eE[P, dl=\eE[%p1%dM, dl1=\eE[M, ech=\eE[%p1%dX, ed=\eE[J, el=\eE[K, el1=\eE[1K, home=\eE[H, hpa=\eE[%i%p1%dG, ht=\eE[I, hts=\eEH, ich=\eE[%p1%d@, il=\eE[%p1%dL, il1=\eE[L, ind=\*^J, indn=\eE[%p1%dS, invis=\eE[8m, kbs=\*^H, kcbt=\eE[Z, kcub1=\eE[D, kcud1=\eE[B, kcuf1=\eE[C, kcuu1=\eE[A, khome=\eE[H, kich1=\eE[L, mc4=\eE[4i, mc5=\eE[5i, nel=\er\eE[S, op=\eE[39;49m, rep=%p1%c\eE[%p2%{1}%\-%db, rev=\eE[7m, rin=\eE[%p1%dT, rmacs=\eE[10m, rmpch=\eE[10m, rmso=\eE[m, rmul=\eE[m, s0ds=\eE(B, s1ds=\eE)B, s2ds=\eE*B, s3ds=\eE+B, setab=\eE[4%p1%dm, setaf=\eE[3%p1%dm, sgr=\eE[0;10%?%p1%t;7%; %?%p2%t;4%; %?%p3%t;7%; %?%p4%t;5%; %?%p6%t;1%; %?%p7%t;8%; %?%p9%t;11%;m, sgr0=\eE[0;10m, smacs=\eE[11m, smpch=\eE[11m, smso=\eE[7m, smul=\eE[4m, tbc=\eE[3g, u6=\eE[%i%d;%dR, u7=\eE[6n, u8=\eE[?%[;0123456789]c, u9=\eE[c, vpa=\eE[%i%p1%dd, .fi .EE .PP Intrările pot continua pe mai multe rânduri, introducând un spațiu la începutul fiecărui rând, cu excepția primului. Comentariile pot fi incluse pe rândurile care încep cu „#”. Capacitățile din \fIterminfo\fP sunt de trei tipuri: .bP Capacități booleene care indică faptul că terminalul dispune de o anumită caracteristică, .bP capacități numerice care precizează dimensiunea terminalului sau durata anumitor întârzieri, precum și .bP capacități de tip șir de caractere, care furnizează o secvență ce poate fi utilizată pentru a efectua anumite operații la nivelul terminalului. .SS "Tipuri de capacități" Toate capacitățile au nume. De exemplu, faptul că terminalele conforme cu standardul ANSI dispun de margini automate (adică, un retur automat și un avans de linie la atingerea sfârșitului unei linii) este indicat de capacitatea \fBam\fP. Prin urmare, descrierea ansi include \fBam\fP. Capacitățile numerice sunt urmate de caracterul „#” și apoi de o valoare pozitivă. Astfel, \fBcols\fP, care indică numărul de coloane pe care îl are terminalul, dă valoarea „80” pentru ansi. Valorile pentru capacitățile numerice pot fi specificate în format zecimal, octal sau hexazecimal, folosind convențiile limbajului de programare C (de exemplu, 255, 0377 și 0xff sau 0xFF). .PP În cele din urmă, funcțiile care returnează șiruri de caractere, precum \fBel\fP (secvența de ștergere până la sfârșitul rândului), sunt reprezentate de un cod format din două caractere, an „=”, urmat de un șir care se termină cu următoarea „,”. .PP O serie de secvențe de eludare sunt furnizate în capacitățile de tip șir de caractere pentru a facilita codificarea caracterelor în acestea: .bP Atât \fB\eE\fP cât și \fB\ee\fP sunt redate ca un caracter \s-1ESCAPE\s0, .bP iar \fB\*^\fP\f(BIx\fR este redat ca un caracter de control\-\fIx\fP pentru orice \fIx\fP corespunzător, iar .bP secvențele .RS 6 .PP \fB\en\fP, \fB\el\fP, \fB\er\fP, \fB\et\fP, \fB\eb\fP, \fB\ef\fP, și \fB\es\fP .RE .IP produc .RS 6 .PP \fInewline\fP, \fIline\-feed\fP, \fIreturn\fP, \fItab\fP, \fIbackspace\fP, \fIform\-feed\fP, și respectiv, .RE .IP \fIspace\fP. .PP X/Open Curses nu precizează ce ar putea fi „\fIx\fP adecvat”. În practică, acesta este un caracter grafic ASCII imprimabil. Cazul special \*(``\*^?\*('' este interpretat ca DEL (127). În toate celelalte cazuri, valoarea caracterului este combinată logic cu 0x1f, corespunzând codurilor de control ASCII din intervalul 0\-31. .PP Alte eludări sunt .bP \fB\e\*^\fP pentru \fB\*^\fP, .bP \fB\e\e\fP pentru \fB\e\fP, .bP \fB\e\fP, pentru virgulă, .bP \fB\e:\fP pentru \fB:\fP, .bP și \fB\e0\fP pentru null. .IP \fB\e0\fP va genera \e200, care nu încheie un șir, dar se comportă ca un caracter nul pe majoritatea terminalelor, cu condiția ca CS7 să fie specificat. Vezi \fBstty\fP(1). .IP Motivul acestei particularități este menținerea compatibilității binare a fișierelor terminfo compilate cu alte implementări, de exemplu sistemele SVr4, care menționează acest lucru. Fișierele terminfo compilate utilizează șiruri terminate cu caracterul nul, fără a specifica lungimea acestora. Modificarea acestei caracteristici ar necesita un nou format binar, care nu ar fi compatibil cu alte implementări. .PP De asemenea, caracterele pot fi date ca trei cifre octale după un caracter \fB\e\fP. .PP O întârziere exprimată în milisecunde poate apărea oriunde într\-o capacitate de șir, între parantezele $<..>, ca în \fBel\fP=\eEK$<5>, iar caracterele de umplere sunt furnizate de \fBtputs\fP(3X) pentru a asigura această întârziere. .bP Întârzierea trebuie să fie un număr cu cel mult o zecimală; aceasta poate fi urmată de sufixele „*” sau „/” sau de ambele. .bP Un „*” indică faptul că spațiul de umplere necesar este proporțional cu numărul de linii afectate de operație, iar valoarea indicată reprezintă spațiul de umplere necesar pentru fiecare unitate afectată; (în cazul inserării unui caracter, factorul rămâne tot numărul de \fIlinii\fP afectate). .IP În mod normal, completarea este opțională dacă dispozitivul dispune de funcția \fBxon\fP; aceasta este utilizată pentru calcularea costurilor, dar nu generează întârzieri. .bP Sufixul „/” indică faptul că umplerea este obligatorie și impune o întârziere de numărul specificat de milisecunde chiar și pe dispozitivele pe care este prezentă opțiunea \fBxon\fP pentru a indica controlul fluxului. .PP Uneori, capacitățile individuale trebuie să fie comentate. Pentru a face acest lucru, puneți un punct înaintea numelui capacității. De exemplu, vedeți al doilea \fBind\fP din exemplul de mai sus. .br .ne 5 .SS "Preluarea descrierilor compilate" Descrierile terminalului din \fI\%ncurses\fP sunt stocate în baze de date pentru terminale. Aceste baze de date, care sunt identificate după ruta de acces, pot fi configurate fie ca arbori de directoare, fie ca baze de date cu indexare hash (vezi \fBterm\fP(5)), .PP Biblioteca utilizează o listă de nume de rute încorporată, care poate fi suprascrisă prin variabile de mediu. Înainte de a începe căutarea, \fI\%ncurses\fP verifică lista de căutare, eliminând duplicatele și numele de rute pentru care nu se găsește nicio bază de date a terminalului. Biblioteca \fI\%ncurses\fP citește prima descriere care trece de verificările de consistență. .bP Variabila de mediu \fBTERMINFO\fP este verificată mai întâi, pentru o bază de date de terminale care conține descrierea terminalului. .bP Apoi, \fI\%ncurses\fP caută în \fI$HOME/.terminfo\fP o descriere compilată. .IP Aceasta este o caracteristică opțională care poate fi omisă în totalitate din bibliotecă sau limitată pentru a preveni utilizarea accidentală de către aplicații privilegiate. .bP În continuare, dacă variabila de mediu \fI\%TERMINFO_DIRS\fP este configurată, \fI\%ncurses\fP interpretează conținutul acestei variabile ca o listă de nume de rute, separate prin două puncte, ale bazelor de date pentru terminale care urmează să fie căutate. .IP Un nume de rută gol (adică, dacă variabila începe sau se termină cu două puncte („:”) sau conține două puncte adiacente („::”) ) este interpretat ca locația sistemului \fI/usr/share/terminfo\fP. .bP În cele din urmă, \fI\%ncurses\fP caută în aceste locații compilate: .RS .bP o listă de directoare (/usr/share/terminfo), și .bP directorul terminfo al sistemului, \fI/usr/share/terminfo\fP .RE .PP Variabila \fBTERMINFO\fP poate conține o descriere a terminalului în locul numelui de rută către o bază de date a terminalelor. Dacă această variabilă începe cu „hex:” sau „b64:”, atunci \fI\%ncurses\fP citește o descriere a terminalului din datele codificate în format hexazecimal sau base64 și, dacă acea descriere corespunde numelui căutat, o va utiliza. Aceste date codificate pot fi definite folosind opțiunea „Q” a \fBtic\fP sau \fBinfocmp\fP. .PP Cele de mai sus se referă la configurația obișnuită a \fI\%ncurses\fP, care utilizează descrieri de terminale pregătite în format \fIterminfo\fP. Deși \fItermcap\fP este mai puțin expresiv, \fI\%ncurses\fP poate fi configurat și pentru a citi descrierile \fItermcap\fP. În această configurație, el verifică variabilele \fI\%TERMCAP\fP și \fI\%TERMPATH\fP (pentru conținut și ruta de căutare, respectiv) după baza de date a terminalelor sistemului. .SS "Elaborarea descrierilor" Vom prezenta acum modul de elaborare a descrierilor terminalelor. Cea mai eficientă metodă de a crea o descriere a unui terminal este aceea de a imita descrierea unui terminal similar din \fIterminfo\fP și de a construi descrierea treptat, folosind descrieri parțiale și verificând corectitatea acestora cu ajutorul \fIvi\fP sau al altui program orientat către ecran. Rețineți că un terminal foarte neobișnuit poate scoate la iveală deficiențe în capacitatea fișierului \fIterminfo\fP de a\-l descrie sau erori în codul de gestionare a ecranului al programului de testare. .PP Pentru a stabili corect spațiul de umplere pentru linia de inserare (în cazul în care producătorul terminalului nu a furnizat informații în acest sens), un test riguros constă în editarea unui fișier voluminos la 9600 baud, ștergerea a aproximativ 16 linii din mijlocul ecranului, apoi apăsarea rapidă de câteva ori a tastei «u». Dacă terminalul nu funcționează corect, este de obicei necesar un spațiu de umplere mai mare. Un test similar poate fi utilizat și pentru caracterul de inserare. .SS "Capacități bazice" Numărul de coloane pe fiecare linie pentru terminal este dat de capacitatea numerică \fBcols\fP. Dacă terminalul este de tipul \s-1CRT\s0, atunci numărul de linii de pe ecran este dat de capacitatea \fBlines\fP. Dacă terminalul revine la începutul liniei următoare atunci când ajunge la marginea din dreapta, atunci ar trebui să aibă capacitatea \fBam\fP. Dacă terminalul poate șterge ecranul, lăsând cursorul în poziția inițială, atunci acest lucru este dat de capacitatea de șir \fBclear\fP. Dacă terminalul suprascrie (în loc să șteargă o poziție când se suprascrie un caracter) atunci ar trebui să aibă capacitatea \fBos\fP. Dacă terminalul este un terminal de imprimare, fără unitate de copiere soft, atribuiți\-i atât \fBhc\fP, cât și \fBos\fP. (\fBos\fP se aplică terminalelor cu memorie, cum ar fi seria \s-1TEKTRONIX\s+1 4010, precum și terminalelor de copiere hard și APL). Dacă există un cod pentru a muta cursorul la marginea stângă a liniei curente, atribuiți\-i \fBcr\fP. (În mod normal, acesta va fi returnarea căruciorului, control/M). Dacă există un cod pentru a produce un semnal sonor (clopoțel, bip etc.), atribuiți\-i \fBbel\fP. .PP Dacă există o comandă pentru a deplasa cursorul cu o poziție spre stânga (cum ar fi tasta Backspace), această funcție ar trebui să fie indicată ca \fBcub1\fP. În mod similar, codurile pentru deplasarea spre dreapta, sus și jos ar trebui să fie date ca \fBcuf1\fP, \fBcuu1\fP și \fBcud1\fP. Aceste mișcări locale ale cursorului nu ar trebui să modifice textul peste care trec; de exemplu, în mod normal nu ați folosi „\fBcuf1\fP=\ ” deoarece spațiul ar șterge caracterul peste care s\-a deplasat. .PP Un aspect foarte important în acest context este faptul că mișcările locale ale cursorului codificate în \fIterminfo\fP sunt nedefinite la marginile din stânga și de sus ale unui terminal \s-1CRT\s0. Programele nu ar trebui să încerce niciodată să se deplaseze înapoi în apropierea marginii din stânga, cu excepția cazului în care este specificat \fBbw\fP, și niciodată să încerce să se deplaseze local în sus dincolo de marginea superioară. Pentru a derula textul în sus, un program se va deplasa în colțul din stânga jos al ecranului și va trimite șirul \fBind\fP (index). .PP Pentru a derula textul în jos, programul se deplasează în colțul din stânga sus al ecranului și trimite șirul \fBri\fP (index invers). Șirurile \fBind\fP și \fBri\fP nu sunt definite atunci când nu se află în colțurile respective ale ecranului. .PP Versiunile cu parametrii ale secvențelor de derulare sunt \fBindn\fP și \fBrin\fP, care au aceeași semantică ca \fBind\fP și \fBri\fP, cu excepția faptului că acceptă un singur parametru și derulează atâtea linii. De asemenea, acestea nu sunt definite decât la marginea corespunzătoare a ecranului. .PP Capacitatea \fBam\fP indică dacă cursorul rămâne fixat la marginea din dreapta a ecranului atunci când se afișează text, dar acest lucru nu se aplică neapărat unui \fBcuf1\fP din ultima coloană. Singura mișcare locală definită pornind de la marginea din stânga este aceea în care, dacă se specifică \fBbw\fP, un \fBcub1\fP de la marginea din stânga se va deplasa către marginea din dreapta a liniei anterioare. Dacă \fBbw\fP nu este specificat, efectul este nedefinit. Acest lucru este util, de exemplu, pentru a desena o casetă în jurul marginii ecranului. Dacă terminalul are margini automate selectabile prin comutator, fișierul \fIterminfo\fP presupune de obicei că această opțiune este activată; adică, \fBam\fP. Dacă terminalul are o comandă care se deplasează la prima coloană a liniei următoare, acea comandă poate fi dată ca \fBnel\fP (newline). Nu contează dacă comanda șterge restul liniei curente, așa că, dacă terminalul nu are \fBcr\fP și \fBlf\fP, este totuși posibil să se creeze un \fBnel\fP funcțional din una sau ambele. .PP Aceste caracteristici sunt suficiente pentru a descrie terminalele cu ieșire pe hârtie și terminalele de tip „glass\-tty”. Astfel, teletipul model 33 este descris ca .PP .EX .\".in -2 .\".in +2 \s-133\||\|tty33\||\|tty\||\|model 33 teletype, bel=\*^G, cols#72, cr=\*^M, cud1=\*^J, hc, ind=\*^J, os,\s+1 .EE .PP în timp ce Lear Siegler \s-1ADM\-3\s0 este descris ca .PP .EX .nf .\".in -2 .\".in +2 \s-1adm3\||\|3\||\|lsi adm3, am, bel=\*^G, clear=\*^Z, cols#80, cr=\*^M, cub1=\*^H, cud1=\*^J, ind=\*^J, lines#24,\s+1 .fi .EE .SS "Șiruri cu parametri" Adresarea cursorului și alte șiruri care necesită parametri în terminal sunt descrise printr\-o capacitate de șir cu parametri, care conține caractere de eludare de tip \fIprintf\fP, precum \fI%x\fP. De exemplu, pentru a adresa cursorul, se utilizează capacitatea \fBcup\fP, cu doi parametri: linia și coloana la care se dorește adresarea. (Liniile și coloanele sunt numerotate începând de la zero și se referă la ecranul fizic vizibil pentru utilizator, nu la vreo memorie invizibilă.) Dacă terminalul are adresare relativă a cursorului în memorie, aceasta poate fi indicată prin \fBmrcup\fP. .PP Mecanismul parametrilor utilizează o stivă și coduri speciale de tip \fB%\fP pentru a o manipula. De obicei, o secvență va introduce unul dintre parametri în stivă și apoi îl va afișa într\-un anumit format. Imprimarea „print” (de exemplu, „%d” este un caz special. Alte operații, inclusiv „%t”, își extrag operandul din stivă. Se remarcă faptul că sunt adesea necesare operații mai complexe, de exemplu, în șirul \fBsgr\fP. .PP Codificările \fB%\fP au următoarele semnificații: .TP 5 \fB%%\fP produce la ieșire \*(``%\*('' .TP \fB%\fP\fI[[\fP:\fI]flags][width[.precision]][\fP\fBdoxXs\fP\fI]\fP la fel ca în \fBprintf\fP(3), fanioanele sunt \fI[\-+#]\fP și \fIspațiu\fP. Folosiți „:” pentru a permite ca următorul caracter să fie un fanion „\-”, evitând interpretarea lui „%\-” ca un operator. .TP \fB%c\fP imprimă \fIpop()\fP ca %c în \fBprintf\fP .TP \fB%s\fP imprimă \fIpop()\fP ca %s în \fBprintf\fP .TP \fB%p\fP\fI[1\-9]\fP afișează la ieșire al \fIi\fP\-lea parametru .TP \fB%P\fP\fI[a\-z]\fP definește variabila dinamică \fI[a\-z]\fP la \fIpop()\fP .TP \fB%g\fP\fI[a\-z]\fP obține variabila dinamică \fI[a\-z]\fP și\-o afișează .TP \fB%P\fP\fI[A\-Z]\fP definește variabila statică \fI[a\-z]\fP la \fIpop()\fP .TP \fB%g\fP\fI[A\-Z]\fP obține variabila statică \fI[a\-z]\fP și\-o afișează .IP Termenii„static” și „dynamic” sunt înșelători. Din punct de vedere istoric, aceștia reprezintă pur și simplu două seturi diferite de variabile, ale căror valori nu sunt reinițializate între apelurile către \fBtparm\fP(3X). Cu toate acestea, acest fapt nu este documentat în alte implementări. Bazarea pe acest aspect va afecta negativ portabilitatea către alte implementări: .RS .bP SVr2 curses supported \fIdynamic\fP variables. Those are set only by a \fB%P\fP operator. A \fB%g\fP for a given variable without first setting it with \fB%P\fP will give unpredictable results, because dynamic variables are an uninitialized local array on the stack in the \fBtparm\fP function. .bP SVr3.2 curses supported \fIstatic\fP variables. Those are an array in the \fI\%TERMINAL\fP structure (declared in \fBterm.h\fP), and are zeroed automatically when the \fBsetupterm\fP function allocates the data. .bP SVr4 curses made no further improvements to the \fIdynamic/static\fP variable feature. .bP Solaris XPG4 curses does not distinguish between \fIdynamic\fP and \fIstatic\fP variables. They are the same. Like SVr4 curses, XPG4 curses does not initialize these explicitly. .bP Before version 6.3, \fI\%ncurses\fP stores both \fIdynamic\fP and \fIstatic\fP variables in persistent storage, initialized to zeros. .bP Beginning with version 6.3, \fI\%ncurses\fP stores \fIstatic\fP and \fIdynamic\fP variables in the same manner as SVr4. .RS .bP Unlike other implementations, \fI\%ncurses\fP zeros dynamic variables before the first \fB%g\fP or \fB%P\fP operator. .bP Like SVr2, the scope of dynamic variables in \fI\%ncurses\fP is within the current call to \fBtparm\fP. Use static variables if persistent storage is needed. .RE .RE .TP \fB%\*'\fP\fIc\fP\fB\*'\fP char constant \fIc\fP .TP \fB%{\fP\fInn\fP\fB}\fP integer constant \fInn\fP .TP \fB%l\fP push strlen(pop) .TP \fB%+\fP, \fB%\-\fP, \fB%*\fP, \fB%/\fP, \fB%m\fP arithmetic (%m is \fImod\fP): \fIpush(pop() op pop())\fP .TP \fB%&\fP, \fB%|\fP, \fB%\*^\fP bit operations (\*(``and\*('', \*(``or\*('' and exclusive \*(``or\*(''): \fIpush(pop() op pop())\fP .TP \fB%=\fP, \fB%>\fP, \fB%<\fP logical operations: \fIpush(pop() op pop())\fP .TP \fB%A\fP, \fB%O\fP logical \*(``and\*('' and \*(``or\*('' operations (for conditionals) .TP \fB%!\fP, \fB%\*~\fP unary operations (logical and bit complement): \fIpush(op pop())\fP .TP \fB%i\fP add 1 to first two parameters (for ANSI terminals) .TP \fB%?\fP \fIexpr\fP \fB%t\fP \fIthenpart\fP \fB%e\fP \fIelsepart\fP \fB%;\fP This forms an if\-then\-else. The \fB%e\fP \fIelsepart\fP is optional. Usually the \fB%?\fP \fIexpr\fP part pushes a value onto the stack, and \fB%t\fP pops it from the stack, testing if it is nonzero (true). If it is zero (false), control passes to the \fB%e\fP (else) part. .IP It is possible to form else\-if's a la Algol 68: .RS \fB%?\fP c\d1\u \fB%t\fP b\d1\u \fB%e\fP c\d2\u \fB%t\fP b\d2\u \fB%e\fP c\d3\u \fB%t\fP b\d3\u \fB%e\fP c\d4\u \fB%t\fP b\d4\u \fB%e\fP \fB%;\fP .RE .IP where c\di\u are conditions, b\di\u are bodies. .IP Use the \fB\-f\fP option of \fBtic\fP or \fBinfocmp\fP to see the structure of if\-then\-else's. Some strings, e.g., \fBsgr\fP can be very complicated when written on one line. The \fB\-f\fP option splits the string into lines with the parts indented. .PP Binary operations are in postfix form with the operands in the usual order. That is, to get x\-5 one would use \*(``%gx%{5}%\-\*(''. \fB%P\fP and \fB%g\fP variables are persistent across escape\-string evaluations. .PP Consider the HP2645, which, to get to line 3 and column 12, needs to be sent \eE&a12c03Y padded for 6 milliseconds. The order of the lines and columns is inverted here, and the lines and column are printed as two digits. The corresponding terminal description is expressed thus: .RS cup=\eE&a%p2%dc%p1%dY$<6>, .RE .PP The Microterm \s-1ACT\-IV\s0 needs the current line and column sent preceded by a \fB\*^T\fP, with the line and column simply encoded in binary, .RS cup=\*^T%p1%c%p2%c .RE .PP Terminals which use \*(``%c\*('' need to be able to backspace the cursor (\fBcub1\fP), and to move the cursor up one line on the screen (\fBcuu1\fP). This is necessary because it is not always safe to transmit \fB\en\fP \fB\*^D\fP and \fB\er\fP, as the system may change or discard them. (The library routines dealing with terminfo set tty modes so that tabs are never expanded, so \et is safe to send. This turns out to be essential for the Ann Arbor 4080.) .PP A final example is the LSI ADM\-3A, which uses line and column offset by a space, thus .RS .EX cup=\eE=%p1%\*' \*'%+%c%p2%\*' \*'%+%c .EE .RE .PP After sending \*(``\eE=\*('', this pushes the first parameter, pushes the ASCII value for a space (32), adds them (pushing the sum on the stack in place of the two previous values) and outputs that value as a character. Then the same is done for the second parameter. More complex arithmetic is possible using the stack. .SS "Mișcările cursorului" If the terminal has a fast way to home the cursor (to very upper left corner of screen) then this can be given as \fBhome\fP; similarly a fast way of getting to the lower left\-hand corner can be given as \fBll\fP; this may involve going up with \fBcuu1\fP from the home position, but a program should never do this itself (unless \fBll\fP does) because it can make no assumption about the effect of moving up from the home position. Note that the home position is the same as addressing to (0,0): to the top left corner of the screen, not of memory. (Thus, the \eEH sequence on HP terminals cannot be used for \fBhome\fP.) .PP If the terminal has line or column absolute cursor addressing, these can be given as single parameter capabilities \fBhpa\fP (horizontal position absolute) and \fBvpa\fP (vertical position absolute). Sometimes these are shorter than the more general two parameter sequence (as with the hp2645) and can be used in preference to \fBcup\fP. If there are parameterized local motions (e.g., move \fIn\fP spaces to the right) these can be given as \fBcud\fP, \fBcub\fP, \fBcuf\fP, and \fBcuu\fP with a single parameter indicating how many spaces to move. These are primarily useful if the terminal does not have \fBcup\fP, such as the \s-1TEKTRONIX\s+1 4025. .PP If the terminal needs to be in a special mode when running a program that uses these capabilities, the codes to enter and exit this mode can be given as \fBsmcup\fP and \fBrmcup\fP. This arises, for example, from terminals like the Concept with more than one page of memory. If the terminal has only memory relative cursor addressing and not screen relative cursor addressing, a one screen\-sized window must be fixed into the terminal for cursor addressing to work properly. This is also used for the \s-1TEKTRONIX\s+1 4025, where \fBsmcup\fP sets the command character to be the one used by terminfo. If the \fBsmcup\fP sequence will not restore the screen after an \fBrmcup\fP sequence is output (to the state prior to outputting \fBrmcup\fP), specify \fBnrrmc\fP. .SS Margini SVr4 (și Curses X/Open) enumeră mai multe capacități de șiruri pentru definirea marginilor. Două dintre acestea erau destinate utilizării cu terminale, iar alte șase erau destinate utilizării cu imprimante. .bP Cele două capacități ale terminalului presupun că terminalul poate avea capacitatea de a defini marginea stângă și/sau dreaptă la poziția curentă a cursorului. .bP Capacitățile imprimantei presupun că imprimanta poate avea două tipuri de capacități: .RS .bP the ability to set a top and/or bottom margin using the current line position, and .bP parameterized capabilities for setting the top, bottom, left, right margins given the number of lines or columns. .RE .PP În practică, clasificarea în „terminal” și „imprimantă” nu este adecvată: .bP Baza de date a terminalului AT&T SVr4 utilizează \fBsmgl\fP de patru ori, pentru hardware\-ul AT&T. .IP Trei dintre cele patru sunt imprimante. Acestea nu au capacitatea de a seta marginile stânga/dreapta prin specificarea coloanei. .bP Alte terminale (care nu sunt AT&T) pot oferi suport pentru margini, dar folosind ipoteze diferite de cele ale AT&T. .IP For instance, the DEC VT420 supports left/right margins, but only using a column parameter. As an added complication, the VT420 uses two settings to fully enable left/right margins (left/right margin mode, and origin mode). The former enables the margins, which causes printed text to wrap within margins, but the latter is needed to prevent cursor\-addressing outside those margins. .bP Both DEC VT420 left/right margins are set with a single control sequence. If either is omitted, the corresponding margin is set to the left or right edge of the display (rather than leaving the margin unmodified). .PP Acestea sunt capacitățile legate de margini: .PP .TS center; Lb Lb Lb L . Nume Descriere _ smgl Stabilește marginea stângă la coloana curentă smgr Stabilește marginea dreaptă la coloana curentă smgb Set bottom margin at current line smgt Set top margin at current line smgbp Stabilește marginea de jos la linia \fIN\fP smglp Stabilește marginea stângă la coloana \fIN\fP smgrp Stabilește marginea dreaptă la coloana \fIN\fP smgtp Stabilește marginea de sus la linia \fIN\fP smglr Setați marginile stânga și dreapta la \fIL\fP și \fIR\fP. smgtb Stabilește marginile superioare și inferioare la T și B. .TE .PP When writing an application that uses these string capabilities, the pairs should be first checked to see if each capability in the pair is set or only one is set: .bP If both \fBsmglp\fP and \fBsmgrp\fP are set, each is used with a single argument, \fIN\fP, that gives the column number of the left and right margin, respectively. .bP If both \fBsmgtp\fP and \fBsmgbp\fP are set, each is used to set the top and bottom margin, respectively: .RS 4 .bP \fBsmgtp\fP is used with a single argument, \fIN\fP, the line number of the top margin. .bP \fBsmgbp\fP is used with two arguments, \fIN\fP and \fIM\fP, that give the line number of the bottom margin, the first counting from the top of the page and the second counting from the bottom. This accommodates the two styles of specifying the bottom margin in different manufacturers' printers. .RE .IP When designing a terminfo entry for a printer that has a settable bottom margin, only the first or second argument should be used, depending on the printer. When developing an application that uses \fBsmgbp\fP to set the bottom margin, both arguments must be given. .PP În schimb, când este definită doar o singură capacitate din pereche: .bP If only one of \fBsmglp\fP and \fBsmgrp\fP is set, then it is used with two arguments, the column number of the left and right margins, in that order. .bP Likewise, if only one of \fBsmgtp\fP and \fBsmgbp\fP is set, then it is used with two arguments that give the top and bottom margins, in that order, counting from the top of the page. .IP When designing a terminfo entry for a printer that requires setting both left and right or top and bottom margins simultaneously, only one capability in the pairs \fBsmglp\fP and \fBsmgrp\fP or \fBsmgtp\fP and \fBsmgbp\fP should be defined, leaving the other unset. .PP Except for very old terminal descriptions, e.g., those developed for SVr4, the scheme just described should be considered obsolete. An improved set of capabilities was added late in the SVr4 releases (\fBsmglr\fP and \fBsmgtb\fP), which explicitly use two parameters for setting the left/right or top/bottom margins. .PP When setting margins, the line\- and column\-values are zero\-based. .PP .\" Capacitatea șirului \fBmgc\fP trebuie definită. Aplicații precum \fB\%tabs\fP(1) se bazează pe aceasta pentru a reajusta toate marginile. .SS "Curățarea zonei" .\" If the terminal can clear from the current position to the end of the line, leaving the cursor where it is, this should be given as \fBel\fP. If the terminal can clear from the beginning of the line to the current position inclusive, leaving the cursor where it is, this should be given as \fBel1\fP. If the terminal can clear from the current position to the end of the display, then this should be given as \fBed\fP. \fBEd\fP is only defined from the first column of a line. (Thus, it can be simulated by a request to delete a large number of lines, if a true \fBed\fP is not available.) .SS "Inserare/ștergere linie și mișcări verticale" If the terminal can open a new blank line before the line where the cursor is, this should be given as \fBil1\fP; this is done only from the first position of a line. The cursor must then appear on the newly blank line. If the terminal can delete the line which the cursor is on, then this should be given as \fBdl1\fP; this is done only from the first position on the line to be deleted. Versions of \fBil1\fP and \fBdl1\fP which take a single parameter and insert or delete that many lines can be given as \fBil\fP and \fBdl\fP. .PP If the terminal has a settable scrolling region (like the vt100) the command to set this can be described with the \fBcsr\fP capability, which takes two parameters: the top and bottom lines of the scrolling region. The cursor position is, alas, undefined after using this command. .PP It is possible to get the effect of insert or delete line using \fBcsr\fP on a properly chosen region; the \fBsc\fP and \fBrc\fP (save and restore cursor) commands may be useful for ensuring that your synthesized insert/delete string does not move the cursor. (Note that the \fB\%ncurses\fP(3X) library does this synthesis automatically, so you need not compose insert/delete strings for an entry with \fBcsr\fP). .PP Yet another way to construct insert and delete might be to use a combination of index with the memory\-lock feature found on some terminals (like the HP\-700/90 series, which however also has insert/delete). .PP Inserting lines at the top or bottom of the screen can also be done using \fBri\fP or \fBind\fP on many terminals without a true insert/delete line, and is often faster even on terminals with those features. .PP The Boolean \fBnon_dest_scroll_region\fP should be set if each scrolling window is effectively a view port on a screen\-sized canvas. To test for this capability, create a scrolling region in the middle of the screen, write something to the bottom line, move the cursor to the top of the region, and do \fBri\fP followed by \fBdl1\fP or \fBind\fP. If the data scrolled off the bottom of the region by the \fBri\fP re\-appears, then scrolling is non\-destructive. System V and X/Open Curses expect that \fBind\fP, \fBri\fP, \fBindn\fP, and \fBrin\fP will simulate destructive scrolling; their documentation cautions you not to define \fBcsr\fP unless this is true. This \fBcurses\fP implementation is more liberal and will do explicit erases after scrolling if \fBndsrc\fP is defined. .PP If the terminal has the ability to define a window as part of memory, which all commands affect, it should be given as the parameterized string \fBwind\fP. The four parameters are the starting and ending lines in memory and the starting and ending columns in memory, in that order. .PP If the terminal can retain display memory above, then the \fBda\fP capability should be given; if display memory can be retained below, then \fBdb\fP should be given. These indicate that deleting a line or scrolling may bring non\-blank lines up from below or that scrolling back with \fBri\fP may bring down non\-blank lines. .SS "Inserare/ștergere caracter" There are two basic kinds of intelligent terminals with respect to insert/delete character which can be described using \fIterminfo\fP. The most common insert/delete character operations affect only the characters on the current line and shift characters off the end of the line rigidly. Other terminals, such as the Concept 100 and the Perkin Elmer Owl, make a distinction between typed and untyped blanks on the screen, shifting upon an insert or delete only to an untyped blank on the screen which is either eliminated, or expanded to two untyped blanks. .PP You can determine the kind of terminal you have by clearing the screen and then typing text separated by cursor motions. Type \*(``abc\ \ \ \ def\*('' using local cursor motions (not spaces) between the \*(``abc\*('' and the \*(``def\*(''. Then position the cursor before the \*(``abc\*('' and put the terminal in insert mode. If typing characters causes the rest of the line to shift rigidly and characters to fall off the end, then your terminal does not distinguish between blanks and untyped positions. If the \*(``abc\*('' shifts over to the \*(``def\*('' which then move together around the end of the current line and onto the next as you insert, you have the second type of terminal, and should give the capability \fBin\fP, which stands for \*(``insert null\*(''. .PP While these are two logically separate attributes (one line versus multi\-line insert mode, and special treatment of untyped spaces) we have seen no terminals whose insert mode cannot be described with the single attribute. .PP Terminfo can describe both terminals which have an insert mode, and terminals which send a simple sequence to open a blank position on the current line. Give as \fBsmir\fP the sequence to get into insert mode. Give as \fBrmir\fP the sequence to leave insert mode. Now give as \fBich1\fP any sequence needed to be sent just before sending the character to be inserted. Most terminals with a true insert mode will not give \fBich1\fP; terminals which send a sequence to open a screen position should give it here. .PP If your terminal has both, insert mode is usually preferable to \fBich1\fP. Technically, you should not give both unless the terminal actually requires both to be used in combination. Accordingly, some non\-curses applications get confused if both are present; the symptom is doubled characters in an update using insert. This requirement is now rare; most \fBich\fP sequences do not require previous smir, and most smir insert modes do not require \fBich1\fP before each character. Therefore, the new \fBcurses\fP actually assumes this is the case and uses either \fBrmir\fP/\fBsmir\fP or \fBich\fP/\fBich1\fP as appropriate (but not both). If you have to write an entry to be used under new curses for a terminal old enough to need both, include the \fBrmir\fP/\fBsmir\fP sequences in \fBich1\fP. .PP If post insert padding is needed, give this as a number of milliseconds in \fBip\fP (a string option). Any other sequence which may need to be sent after an insert of a single character may also be given in \fBip\fP. If your terminal needs both to be placed into an \*(``insert mode\*('' and a special code to precede each inserted character, then both \fBsmir\fP/\fBrmir\fP and \fBich1\fP can be given, and both will be used. The \fBich\fP capability, with one parameter, \fIn\fP, will repeat the effects of \fBich1\fP \fIn\fP times. .PP Dacă este necesară umplerea între caracterele tastate în afara modului de inserare, specificați acest lucru ca număr de milisecunde de umplere în \fBrmp\fP. .PP It is occasionally necessary to move around while in insert mode to delete characters on the same line (e.g., if there is a tab after the insertion position). If your terminal allows motion while in insert mode you can give the capability \fBmir\fP to speed up inserting in this case. Omitting \fBmir\fP will affect only speed. Some terminals (notably Datamedia's) must not have \fBmir\fP because of the way their insert mode works. .PP Finally, you can specify \fBdch1\fP to delete a single character, \fBdch\fP with one parameter, \fIn\fP, to delete \fIn\fP characters, and delete mode by giving \fBsmdc\fP and \fBrmdc\fP to enter and exit delete mode (any mode the terminal needs to be placed in for \fBdch1\fP to work). .PP O comandă pentru ștergerea a \fIn\fP caractere (echivalentă cu afișarea a \fIn\fP spații fără a muta cursorul) poate fi dată ca \fBech\fP cu un singur parametru. .SS "Evidențierea, sublinierea și sunete de clopoțel vizibile" If your terminal has one or more kinds of display attributes, these can be represented in a number of different ways. You should choose one display form as \fIstandout mode\fP, representing a good, high contrast, easy\-on\-the\-eyes, format for highlighting error messages and other attention getters. (If you have a choice, reverse video plus half\-bright is good, or reverse video alone.) The sequences to enter and exit standout mode are given as \fBsmso\fP and \fBrmso\fP, respectively. If the code to change into or out of standout mode leaves one or even two blank spaces on the screen, as the TVI 912 and Teleray 1061 do, then \fBxmc\fP should be given to tell how many spaces are left. .PP Codes to begin underlining and end underlining can be given as \fBsmul\fP and \fBrmul\fP respectively. If the terminal has a code to underline the current character and move the cursor one space to the right, such as the Microterm Mime, this can be given as \fBuc\fP. .PP Other capabilities to enter various highlighting modes include \fBblink\fP (blinking) \fBbold\fP (bold or extra bright) \fBdim\fP (dim or half\-bright) \fBinvis\fP (blanking or invisible text) \fBprot\fP (protected) \fBrev\fP (reverse video) \fBsgr0\fP (turn off \fIall\fP attribute modes) \fBsmacs\fP (enter alternate character set mode) and \fBrmacs\fP (exit alternate character set mode). Turning on any of these modes singly may or may not turn off other modes. .PP If there is a sequence to set arbitrary combinations of modes, this should be given as \fBsgr\fP (set attributes), taking 9 parameters. Each parameter is either zero (0) or nonzero, as the corresponding attribute is on or off. The 9 parameters are, in order: standout, underline, reverse, blink, dim, bold, blank, protect, alternate character set. Not all modes need be supported by \fBsgr\fP, only those for which corresponding separate attribute commands exist. .PP De exemplu, DEC vt220 acceptă majoritatea modurilor: .PP .TS center; Lb Lb Lb L L L . parametrul tparm Atribut Secvența de eludare _ niciunul niciunul \eE[0m p1 standout (evidențiere) \eE[0;1;7m p2 underline (subliniere) \eE[0;4m p3 reverse (inversare) \eE[0;7m p4 blink \eE[0;5m p5 dim nu este disponibilă p6 bold \eE[0;1m p7 invis \eE[0;8m p8 protect (protejare) neutilizată p9 altcharset (set de caractere alternativ) \*^O (off) \*^N (on) .TE .PP We begin each escape sequence by turning off any existing modes, since there is no quick way to determine whether they are active. Standout is set up to be the combination of reverse and bold. The vt220 terminal has a protect mode, though it is not commonly used in sgr because it protects characters on the screen from the host's erasures. The altcharset mode also is different in that it is either \*^O or \*^N, depending on whether it is off or on. If all modes are turned on, the resulting sequence is \eE[0;1;4;5;7;8m\*^N. .PP Some sequences are common to different modes. For example, ;7 is output when either p1 or p3 is true, that is, if either standout or reverse modes are turned on. .PP Scrierea secvențelor de mai sus, împreună cu dependențele lor, are ca rezultat .PP .ne 11 .TS center; Lb Lb Lb L L L . Secvența Când se produce Traducerea terminfo _ \eE[0 întotdeauna \eE[0 ;1 dacă p1 sau p6 %?%p1%p6%|%t;1%; ;4 dacă p2 %?%p2%|%t;4%; ;5 dacă p4 %?%p4%|%t;5%; ;7 dacă p1 sau p3 %?%p1%p3%|%t;7%; ;8 dacă p7 %?%p7%|%t;8%; m întotdeauna m \*^N sau \*^O dacă p9 \*^N, altfel \*^O %?%p9%t\*^N%e\*^O%; .TE .PP Punând toate acestea împreună în secvența sgr, obținem: .PP .EX .nf sgr=\eE[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p4%t;5%; %?%p1%p3%|%t;7%;%?%p7%t;8%;m%?%p9%t\e016%e\e017%;, .fi .EE .PP Remember that if you specify sgr, you must also specify sgr0. Also, some implementations rely on sgr being given if sgr0 is, Not all terminfo entries necessarily have an sgr string, however. Many terminfo entries are derived from termcap entries which have no sgr string. The only drawback to adding an sgr string is that termcap also assumes that sgr0 does not exit alternate character set mode. .PP Terminals with the \*(``magic cookie\*('' glitch (\fBxmc\fP) deposit special \*(``cookies\*('' when they receive mode\-setting sequences, which affect the display algorithm rather than having extra bits for each character. Some terminals, such as the HP 2621, automatically leave standout mode when they move to a new line or the cursor is addressed. Programs using standout mode should exit standout mode before moving the cursor or sending a newline, unless the \fBmsgr\fP capability, asserting that it is safe to move in standout mode, is present. .PP Dacă terminalul are o modalitate de a „pâlpâi” ecranul pentru a indica o eroare în mod silențios (un înlocuitor al clopoțelului), atunci aceasta poate fi indicată ca \fBflash\fP; aceasta nu trebuie să miște cursorul. .PP If the cursor needs to be made more visible than normal when it is not on the bottom line (to make, for example, a non\-blinking underline into an easier to find block or blinking underline) give this sequence as \fBcvvis\fP. If there is a way to make the cursor completely invisible, give that as \fBcivis\fP. The capability \fBcnorm\fP should be given which undoes the effects of both of these modes. .PP If your terminal correctly generates underlined characters (with no special codes needed) even though it does not overstrike, then you should give the capability \fBul\fP. If a character overstriking another leaves both characters on the screen, specify the capability \fBos\fP. If overstrikes are erasable with a blank, then this should be indicated by giving \fBeo\fP. .SS "Tastatura numerică și tastele de funcții" If the terminal has a keypad that transmits codes when the keys are pressed, this information can be given. Note that it is not possible to handle terminals where the keypad only works in local (this applies, for example, to the unshifted HP 2621 keys). If the keypad can be set to transmit or not transmit, give these codes as \fBsmkx\fP and \fBrmkx\fP. Otherwise the keypad is assumed to always transmit. .PP The codes sent by the left arrow, right arrow, up arrow, down arrow, and home keys can be given as \fBkcub1, kcuf1, kcuu1, kcud1, \fPand\fB khome\fP respectively. If there are function keys such as f0, f1, ..., f10, the codes they send can be given as \fBkf0, kf1, ..., kf10\fP. If these keys have labels other than the default f0 through f10, the labels can be given as \fBlf0, lf1, ..., lf10\fP. .PP Codurile transmise de anumite alte taste speciale pot fi date: .bP \fBkll\fP (jos, la începutul liniei „home down”), .bP \fBkbs\fP (retrocedare „backspace”), .bP \fBktbc\fP (șterge toate tabulatoarele), .bP \fBkctab\fP (șterge tab_stop\-ul din această coloană), .bP \fBkclr\fP (tasta de ștergere a ecranului sau de ștergere), .bP \fBkdch1\fP (șterge caracterul), .bP \fBkdl1\fP (șterge linia), .bP \fBkrmir\fP (iese din modul de inserare), .bP \fBkel\fP (șterge până la sfârșitul liniei), .bP \fBked\fP (șterge până la sfârșitul ecranului), .bP \fBkich1\fP (inserare caracter sau intrare în modul inserare), .bP \fBkil1\fP (inserare linie), .bP \fBknp\fP (pagina următoare), .bP \fBkpp\fP (pagina precedentă), .bP \fBkind\fP (derulare înainte/în jos), .bP \fBkri\fP (derulare înapoi/în sus), .bP \fBkhts\fP (definește tab_stop\-ul în această coloană). .PP In addition, if the keypad has a 3 by 3 array of keys including the four arrow keys, the other five keys can be given as \fBka1\fP, \fBka3\fP, \fBkb2\fP, \fBkc1\fP, and \fBkc3\fP. These keys are useful when the effects of a 3 by 3 directional pad are needed. .PP Strings to program function keys can be given as \fBpfkey\fP, \fBpfloc\fP, and \fBpfx\fP. A string to program screen labels should be specified as \fBpln\fP. Each of these strings takes two parameters: the function key number to program (from 0 to 10) and the string to program it with. Function key numbers out of this range may program undefined keys in a terminal dependent manner. The difference between the capabilities is that \fBpfkey\fP causes pressing the given key to be the same as the user typing the given string; \fBpfloc\fP causes the string to be executed by the terminal in local; and \fBpfx\fP causes the string to be transmitted to the computer. .PP The capabilities \fBnlab\fP, \fBlw\fP and \fBlh\fP define the number of programmable screen labels and their width and height. If there are commands to turn the labels on and off, give them in \fBsmln\fP and \fBrmln\fP. \fBsmln\fP is normally output after one or more pln sequences to make sure that the change becomes visible. .SS "Tabulatoare și inițializare" Câteva capacități sunt folosite doar pentru a gestiona tab_stop\-urile. .bP If the terminal has hardware tabs, specify the character sequence that advances to the next tab stop as the value of the \fBtab\fP (\fBht\fP) string capability (usually Control+I). .bP Specify a character sequence that retreats (moves leftward) to the preceding tab stop as the value of the \fB\%back_tab\fP (\fBcbt\fP) string capability. .IP By convention, if the terminal modes are configured such that tabs are expanded by the host rather than terminal, applications should not employ the \fBtab\fP (\fBht\fP) or \fB\%back_tab\fP (\fBcbt\fP) capabilities even if they are present, since the user may not have the tab stops properly set. .bP If the terminal has hardware tab stops that are set at every \fIn\fP character cells when the terminal is powered up, specify \fIn\fP as the value of the the numeric capability \fB\%init_tabs\fP (\fBit\fP)\&. .IP The \fB\%tset\fP and \*(``\fB\%tput\fP \fBinit\fP\*('' commands interpret the presence of the \fB\%init_tabs\fP (\fBit\fP) capability as implying that the terminal is responsible for tab stop expansion as well as an instruction to set the tab stops to its value. If the terminal has tab stops that can be saved in non\-volatile memory, its \fI\%term\%info\fP type description can assume that they are properly set. .PP Printre alte capacități se numără .bP \fBis1\fP, \fBis2\fP și \fBis3\fP, șiruri de inițializare pentru terminal, .bP \fBiprog\fP, numele rutei către un program care va fi rulat pentru inițializarea terminalului, .bP și \fBif\fP, numele unui fișier care conține șiruri lungi de inițializare. .PP These strings are expected to set the terminal into modes consistent with the rest of the terminfo description. They are normally sent to the terminal, by the \fIinit\fP option of the \fBtput\fP program, each time the user logs in. They will be printed in the following order: .RS .TP rulează programul \fBiprog\fP .TP ieșirea .br \fBis1\fP și .br \fBis2\fP .TP definește marginile folosind \fBmgc\fP sau .br \fBsmglp\fP și \fBsmgrp\fP sau .br \fBsmgl\fP și \fBsmgr\fP .TP definește tabulatoarele folosind \fBtbc\fP și \fBhts\fP .TP afișează fișierul \fBif\fP .TP și la final afișează \fBis3\fP. .RE .PP Most initialization is done with \fBis2\fP. Special terminal modes can be set up without duplicating strings by putting the common sequences in \fBis2\fP and special cases in \fBis1\fP and \fBis3\fP. .PP A set of sequences that does a harder reset from a totally unknown state can be given as \fBrs1\fP, \fBrs2\fP, \fBrf\fP and \fBrs3\fP, analogous to \fBis1 ,\fP \fBis2 ,\fP \fBif\fP and \fBis3\fP respectively. These strings are output by \fIreset\fP option of \fBtput\fP, or by the \fBreset\fP program (an alias of \fBtset\fP), which is used when the terminal gets into a wedged state. Commands are normally placed in \fBrs1\fP, \fBrs2\fP \fBrs3\fP and \fBrf\fP only if they produce annoying effects on the screen and are not necessary when logging in. For example, the command to set the vt100 into 80\-column mode would normally be part of \fBis2\fP, but it causes an annoying glitch of the screen and is not normally needed since the terminal is usually already in 80\-column mode. .PP The \fBreset\fP program writes strings including \fBiprog\fP, etc., in the same order as the \fIinit\fP program, using \fBrs1\fP, etc., instead of \fBis1\fP, etc. If any of \fBrs1\fP, \fBrs2\fP, \fBrs3\fP, or \fBrf\fP reset capability strings are missing, the \fBreset\fP program falls back upon the corresponding initialization capability string. .PP If there are commands to set and clear tab stops, they can be given as \fBtbc\fP (clear all tab stops) and \fBhts\fP (set a tab stop in the current column of every line). If a more complex sequence is needed to set the tabs than can be described by this, the sequence can be placed in \fBis2\fP or \fBif\fP. .PP Comanda \fBtput reset\fP utilizează aceleași șiruri de caractere ca și comanda \fBreset\fP, deși cele două programe (\fBtput\fP și \fBreset\fP) oferă opțiuni diferite pentru linia de comandă. .PP În practică, aceste capacități terminfo nu sunt adesea folosite în inițializarea tabulatoarelor (deși sunt necesare pentru programul \fBtabs\fP): .bP Aproape toate terminalele hardware (cel puțin cele care acceptau tabulatoare) le inițializau la fiecare \fIoptt\fP coloane: .IP Singura excepție a fost seria AT&T 2300, care a definit tabulatoare la fiecare \fIcinci\fP coloane. .bP In particular, developers of the hardware terminals which are commonly used as models for modern terminal emulators provided documentation demonstrating that \fIeight\fP columns were the standard. .bP Because of this, the terminal initialization programs \fBtput\fP and \fBtset\fP use the \fBtbc\fP (\fBclear_all_tabs\fP) and \fBhts\fP (\fBset_tab\fP) capabilities directly only when the \fBit\fP (\fBinit_tabs\fP) capability is set to a value other than \fIeight\fP. .SS "Întârzieri și umplere" Many older and slower terminals do not support either XON/XOFF or DTR handshaking, including hard copy terminals and some very archaic CRTs (including, for example, DEC VT100s). These may require padding characters after certain cursor motions and screen changes. .PP If the terminal uses xon/xoff handshaking for flow control (that is, it automatically emits \*^S back to the host when its input buffers are close to full), set \fBxon\fP. This capability suppresses the emission of padding. You can also set it for memory\-mapped console devices effectively that do not have a speed limit. Padding information should still be included so that routines can make better decisions about relative costs, but actual pad characters will not be transmitted. .PP If \fBpb\fP (padding baud rate) is given, padding is suppressed at baud rates below the value of \fBpb\fP. If the entry has no padding baud rate, then whether padding is emitted or not is completely controlled by \fBxon\fP. .PP Dacă terminalul necesită alt caracter decât nul (zero) ca umplutură, acesta poate fi indicat ca \fBpad\fP. Se utilizează numai primul caracter al șirului \fBpad\fP. .SS "Liniile de stare" Unele terminale au o linie suplimentară „linia de stare\” care nu este utilizată în mod normal de software (și, prin urmare, nu este luată în calcul în capacitatea \fBlines\fP a terminalului). .PP The simplest case is a status line which is cursor\-addressable but not part of the main scrolling region on the screen; the Heathkit H19 has a status line of this kind, as would a 24\-line VT100 with a 23\-line scrolling region set up on initialization. This situation is indicated by the \fBhs\fP capability. .PP Some terminals with status lines need special sequences to access the status line. These may be expressed as a string with single parameter \fBtsl\fP which takes the cursor to a given zero\-origin column on the status line. The capability \fBfsl\fP must return to the main\-screen cursor positions before the last \fBtsl\fP. You may need to embed the string values of \fBsc\fP (save cursor) and \fBrc\fP (restore cursor) in \fBtsl\fP and \fBfsl\fP to accomplish this. .PP Linia de stare este considerată în mod normal ca având aceeași lățime ca și terminalul. Dacă acest lucru nu este adevărat, puteți specifica acest lucru cu ajutorul capacității numerice \fBwsl\fP. .PP O comandă pentru ștergerea sau golirea liniei de stare poate fi specificată ca \fBdsl\fP. .PP Capacitatea booleană \fBeslok\fP specifică faptul că secvențele de eludare, tabulatoarele etc. funcționează în mod normal în linia de stare. .PP Implementarea \fI\%ncurses\fP nu utilizează încă niciuna dintre aceste capacități. Ele sunt documentate aici în cazul în care vor deveni importante. .SS "Grafică liniară" Many terminals have alternate character sets useful for forms\-drawing. Terminfo and \fBcurses\fP have built\-in support for most of the drawing characters supported by the VT100, with some characters from the AT&T 4410v1 added. This alternate character set may be specified by the \fBacsc\fP capability. .PP .TS center; Lb Cb S L Lb Lb2 Lb2 Lb Lb1 S Lb L C Lb Lx. \& acsc \& \& Nume ACS Valoare Simbol ASCII de rezervă / Numele glifului _ ACS_RARROW 0x2b + > săgeată indicând la dreapta ACS_LARROW 0x2c , < săgeată indicând la stânga ACS_UARROW 0x2d \- \*^ săgeată indicând în sus ACS_DARROW 0x2e . v săgeată indicând în jos ACS_BLOCK 0x30 0 # bloc pătrat solid ACS_DIAMOND 0x60 \(ga + diamant ACS_CKBOARD 0x61 a : tablă de șah (punctată) ACS_DEGREE 0x66 f \e simbolul de grad ACS_PLMINUS 0x67 g # plus/minus ACS_BOARD 0x68 h # tablă de pătrate ACS_LANTERN 0x69 i # simbolul de lanternă ACS_LRCORNER 0x6a j + colțul din dreapta jos ACS_URCORNER 0x6b k + colțul din dreapta sus ACS_ULCORNER 0x6c l + colțul din stânga sus ACS_LLCORNER 0x6d m + colțul din stângaa jos ACS_PLUS 0x6e n + plus mare sau intersecție ACS_S1 0x6f o \*~ linia de scanare(baleiaj) 1 ACS_S3 0x70 p \- linia de scanare(baleiaj) 3 ACS_HLINE 0x71 q \- linie orizontală ACS_S7 0x72 r \- linia de scanare(baleiaj) 7 ACS_S9 0x73 s \&_ linia de scanare(baleiaj) 9 ACS_LTEE 0x74 t + teu indicând dreapta ACS_RTEE 0x75 u + teu indicând spre stânga ACS_BTEE 0x76 v + teu indicând în sus ACS_TTEE 0x77 w + teu indicând în jos ACS_VLINE 0x78 x | linie verticală ACS_LEQUAL 0x79 y < mai mic sau egal cu ACS_GEQUAL 0x7a z > mai mare sau egal cu ACS_PI 0x7b { * pi grecesc ACS_NEQUAL 0x7c | ! nu este egal cu ACS_STERLING 0x7d } f simbolul lirei sterline ACS_BULLET 0x7e \*~ o bulină .TE .PP Câteva observații se referă la tabelul în sine: .bP Curses X/Open afirmă în mod eronat că cartografierea pentru \fIlantern\fP este în majusculă „I”, deși implementările Unix utilizează cartografierea în minusculă „i”. .bP The DEC VT100 implemented graphics using the alternate character set feature, temporarily switching \fImodes\fP and sending characters in the range 0x60 (96) to 0x7e (126) (the \fBacsc Value\fP column in the table). .bP Terminalul AT&T a adăugat caractere grafice în afara acestui interval. .IP Some of the characters within the range do not match the VT100; presumably they were used in the AT&T terminal: \fIboard of squares\fP replaces the VT100 \fInewline\fP symbol, while \fIlantern symbol\fP replaces the VT100 \fIvertical tab\fP symbol. The other VT100 symbols for control characters (\fIhorizontal tab\fP, \fIcarriage return\fP and \fIline\-feed\fP) are not (re)used in curses. .PP The best way to define a new device's graphics set is to add a column to a copy of this table for your terminal, giving the character which (when emitted between \fBsmacs\fP/\fBrmacs\fP switches) will be rendered as the corresponding graphic. Then read off the VT100/your terminal character pairs right to left in sequence; these become the ACSC string. .SS "Gestionarea culorilor" The \fIcurses\fP library functions \fB\%init_pair\fP and \fB\%init_color\fP manipulate the \fIcolor pairs\fP and \fIcolors\fP (color values or indices, such as \*(``1=red\*('') discussed in this section (see \fB\%curs_color\fP(3X) for details on these and related functions). .PP Most color terminals are either \*(``Tektronix\-like\*('' or \*(``HP\-like\*('' in their approach to color management. .bP \fITektronix\-like\fP terminals define a set of \fIn\fP colors (where \fIn\fP is usually 8), and can alter character\-cell foreground and background colors independently, mixing them into \fIn\fP\(mu\fIn\fP color pairs. ANSI\-standard terminals are Tektronix\-like. .bP On \fIHP\-like\fP terminals, the user must set up each color pair separately; foreground and background are not independently alterable. Up to \fIm\fP color pairs may be configured from 2\(mu\fIm\fP different colors. .PP Some basic color management capabilities are independent of the color encoding method. The numeric capabilities \fB\%max_colors\fP (\fB\%colors\fP) and \fB\%max_pairs\fP (\fB\%pairs\fP) specify the maximum numbers of colors and color pairs that the device can display simultaneously. The \fB\%orig_pair\fP (\fB\%op\fP) (\*(``original pair\*('') string capability resets foreground and background colors to their default values for the terminal. The \fB\%orig_colors\fP (\fB\%oc\fP) (\*(``original colors\*('') string capability resets all colors or color pairs to their default values for the terminal. Some terminal types (including many PC terminal emulators) erase screen areas with the current background color rather than the power\-up default background; these should declare the Boolean capability \fB\%back_color_erase\fP (\fBbce\fP). .PP While the \fIcurses\fP library works with \fIcolor pairs\fP (reflecting the inability of some devices to set foreground and background colors independently), there are separate capabilities for setting these features: .bP To change the current foreground or background color on a Tektronix\-type terminal, use \fBsetaf\fP (set ANSI foreground) and \fBsetab\fP (set ANSI background) or \fBsetf\fP (set foreground) and \fBsetb\fP (set background). These take one parameter, the color number. The SVr4 documentation describes only \fBsetaf\fP/\fBsetab\fP; the XPG4 draft says that "If the terminal supports ANSI escape sequences to set background and foreground, they should be coded as \fBsetaf\fP and \fBsetab\fP, respectively. .bP Dacă terminalul acceptă alte secvențe de eludare pentru definirea fundalului și a prim\-planului, acestea trebuie codificate ca \fBsetf\fP și, respectiv, \fBsetb\fP. Funcțiile \fBvidputs\fP și \fBrefresh\fP(3X) utilizează capacitățile \fBsetaf\fP și \fBsetab\fP dacă acestea sunt definite. .PP The \fBsetaf\fP/\fBsetab\fP and \fBsetf\fP/\fBsetb\fP capabilities take a single numeric argument each. Argument values 0\-7 of \fBsetaf\fP/\fBsetab\fP are portably defined as follows (the middle column is the symbolic #define available in the header for the \fBcurses\fP or \fI\%ncurses\fP libraries). The terminal hardware is free to map these as it likes, but the RGB values indicate normal locations in color space. .PP .TS center; Cb Cb Cb Cb S S L Lb C L1 L1 L . Culoare #define Valoare RGB _ negru COLOR_BLACK 0 0, 0, 0 roșu COLOR_RED 1 max, 0, 0 verde COLOR_GREEN 2 0, max, 0 galben COLOR_YELLOW 3 max, max, 0 albastru COLOR_BLUE 4 0, 0, max purpuriu/magenta COLOR_MAGENTA 5 max, 0, max cian COLOR_CYAN 6 0, max, max alb COLOR_WHITE 7 max, max, max .TE .br .if t .ne 6v .PP Valorile argumentelor din \fBsetf\fP/\fBsetb\fP corespund istoric unei corespondențe diferite, și anume, .PP .TS center; Cb Cb Cb Cb S S L Lb C L1 L1 L . Culoare #define Valoare RGB _ negru COLOR_BLACK 0 0, 0, 0 albastru COLOR_BLUE 1 0, 0, max verde COLOR_GREEN 2 0, max, 0 cian COLOR_CYAN 3 0, max, max roșu COLOR_RED 4 max, 0, 0 purpuriu/magenta COLOR_MAGENTA 5 max, 0, max galben COLOR_YELLOW 6 max, max, 0 alb COLOR_WHITE 7 max, max, max .TE .PP Este important să nu confundați cele două seturi de capacități de culoare; în caz contrar, roșu/albastru vor fi inversate pe ecran. .PP Pe un terminal de tip HP, utilizați \fBscp\fP cu un parametru de număr de pereche de culori pentru a defini perechea de culori curentă. .PP Unele terminale permit modificarea \fIvalorilor culorilor\fP: .bP On a Tektronix\-like terminal, the capability \fBccc\fP may be present to indicate that colors can be modified. If so, the \fBinitc\fP capability will take a color number (0 to \fBcolors\fP \- 1)and three more parameters which describe the color. These three parameters default to being interpreted as RGB (Red, Green, Blue) values. If the Boolean capability \fBhls\fP is present, they are instead as HLS (Hue, Lightness, Saturation) indices. The ranges are terminal\-dependent. .bP On an HP\-like terminal, \fBinitp\fP may give a capability for changing a color pair value. It will take seven parameters; a color pair number (0 to \fBmax_pairs\fP \- 1), and two triples describing first background and then foreground colors. These parameters must be (Red, Green, Blue) or (Hue, Lightness, Saturation) depending on \fBhls\fP. .PP On some color terminals, colors collide with highlights. You can register these collisions with the \fBncv\fP capability. This is a bit mask of attributes not to be used when colors are enabled. The correspondence with the attributes understood by \fBcurses\fP is as follows: .PP .TS center; Cb Cb Cb Cb Lb N N Lb. Atribut Bit Zecimal Definit de _ A_STANDOUT 0 1 sgr A_UNDERLINE 1 2 sgr A_REVERSE 2 4 sgr A_BLINK 3 8 sgr A_DIM 4 16 sgr A_BOLD 5 32 sgr A_INVIS 6 64 sgr A_PROTECT 7 128 sgr A_ALTCHARSET 8 256 sgr A_HORIZONTAL 9 512 sgr1 A_LEFT 10 1024 sgr1 A_LOW 11 2048 sgr1 A_RIGHT 12 4096 sgr1 A_TOP 13 8192 sgr1 A_VERTICAL 14 16384 sgr1 A_ITALIC 15 32768 sitm .TE .PP De exemplu, pe multe console IBM PC, atributul subliniere intră în conflict cu culoarea albastră din prim\-plan și nu este disponibil în modul color. Acestea ar trebui să aibă o capacitate \fBncv\fP de 2. .PP SVr4 curses nu face nimic cu \fBncv\fP, \fI\%ncurses\fP îl recunoaște și optimizează ieșirea în favoarea culorilor. .SS Diverse If the terminal requires other than a null (zero) character as a pad, then this can be given as pad. Only the first character of the pad string is used. If the terminal does not have a pad character, specify npc. Note that \fI\%ncurses\fP implements the termcap\-compatible \fBPC\fP variable; though the application may set this value to something other than a null, \fI\%ncurses\fP will test \fBnpc\fP first and use napms if the terminal has no pad character. .PP If the terminal can move up or down half a line, this can be indicated with \fBhu\fP (half\-line up) and \fBhd\fP (half\-line down). This is primarily useful for superscripts and subscripts on hard\-copy terminals. If a hard\-copy terminal can eject to the next page (form feed), give this as \fBff\fP (usually control/L). .PP If there is a command to repeat a given character a given number of times (to save time transmitting a large number of identical characters) this can be indicated with the parameterized string \fBrep\fP. The first parameter is the character to be repeated and the second is the number of times to repeat it. Thus, tparm(repeat_char, \*'x\*', 10) is the same as \*(``xxxxxxxxxx\*(''. .PP If the terminal has a settable command character, such as the \s-1TEKTRONIX\s+1 4025, this can be indicated with \fBcmdch\fP. A prototype command character is chosen which is used in all capabilities. This character is given in the \fBcmdch\fP capability to identify it. The following convention is supported on some Unix systems: The environment is to be searched for a \fBCC\fP variable, and if found, all occurrences of the prototype character are replaced with the character in the environment variable. .PP Terminal descriptions that do not represent a specific kind of known terminal, such as \fIswitch\fP, \fIdialup\fP, \fIpatch\fP, and \fInetwork\fP, should include the \fBgn\fP (generic) capability so that programs can complain that they do not know how to talk to the terminal. (This capability does not apply to \fIvirtual\fP terminal descriptions for which the escape sequences are known.) .PP If the terminal has a \*(``meta key\*('' which acts as a shift key, setting the 8th bit of any character transmitted, this fact can be indicated with \fBkm\fP. Otherwise, software will assume that the 8th bit is parity and it will usually be cleared. If strings exist to turn this \*(``meta mode\*('' on and off, they can be given as \fBsmm\fP and \fBrmm\fP. .PP If the terminal has more lines of memory than will fit on the screen at once, the number of lines of memory can be indicated with \fBlm\fP. A value of \fBlm\fP#0 indicates that the number of lines is not fixed, but that there is still more memory than fits on the screen. .PP Dacă terminalul este unul dintre cele acceptate de protocolul terminalului virtual Unix, numărul terminalului poate fi indicat ca \fBvt\fP. .PP Media copy strings which control an auxiliary printer connected to the terminal can be given as \fBmc0\fP: print the contents of the screen, \fBmc4\fP: turn off the printer, and \fBmc5\fP: turn on the printer. When the printer is on, all text sent to the terminal will be sent to the printer. It is undefined whether the text is also displayed on the terminal screen when the printer is on. A variation \fBmc5p\fP takes one parameter, and leaves the printer on for as many characters as the value of the parameter, then turns the printer off. The parameter should not exceed 255. All text, including \fBmc4\fP, is transparently passed to the printer while an \fBmc5p\fP is in effect. .SS "Defecțiuni și leziuni cerebrale" Terminalele Hazeltine, care nu permit afișarea caracterelor \*(``\*~\*(''» ar trebui să indice \fBhz\fP. .PP Terminalele care ignoră un salt de linie imediat după o încadrare \fBam\fP, cum ar fi Concept și vt100, ar trebui să indice \fBxenl\fP. .PP Dacă \fBel\fP este necesar pentru a elimina elementul evidențiat (în loc să scrieți pur și simplu text normal peste acesta), ar trebui să se utilizeze \fBxhp\fP. .PP Teleray terminals, where tabs turn all characters moved over to blanks, should indicate \fBxt\fP (destructive tabs). Note: the variable indicating this is now \*(``dest_tabs_magic_smso\*(''; in older versions, it was teleray_glitch. This glitch is also taken to mean that it is not possible to position the cursor on top of a \*(``magic cookie\*('', that to erase standout mode it is instead necessary to use delete and insert line. The \fI\%ncurses\fP implementation ignores this glitch. .PP The Beehive Superbee, which is unable to correctly transmit the escape or control/C characters, has \fBxsb\fP, indicating that the f1 key is used for escape and f2 for control/C. (Only certain Superbees have this problem, depending on the ROM.) Note that in older terminfo versions, this capability was called \*(``beehive_glitch\*(''; it is now \*(``no_esc_ctl_c\*(''. .PP Alte probleme specifice ale terminalului pot fi corectate prin adăugarea mai multor capacități de forma \fBx\fP\fIx\fP. .SS "Capcanele intrărilor lungi" Long terminfo entries are unlikely to be a problem; to date, no entry has even approached terminfo's 4096\-byte string\-table maximum. Unfortunately, the termcap translations are much more strictly limited (to 1023 bytes), thus termcap translations of long terminfo entries can cause problems. .PP The man pages for 4.3BSD and older versions of \fBtgetent\fP instruct the user to allocate a 1024\-byte buffer for the termcap entry. The entry gets null\-terminated by the termcap library, so that makes the maximum safe length for a termcap entry 1k\-1 (1023) bytes. Depending on what the application and the termcap library being used does, and where in the termcap file the terminal type that \fBtgetent\fP is searching for is, several bad things can happen: .bP some termcap libraries print a warning message, .bP some exit if they find an entry that's longer than 1023 bytes, .bP some neither exit nor warn, doing nothing useful, and .bP some simply truncate the entries to 1023 bytes. .PP Some application programs allocate more than the recommended 1K for the termcap entry; others do not. .PP Each termcap entry has two important sizes associated with it: before \*(``tc\*('' expansion, and after \*(``tc\*('' expansion. \*(``tc\*('' is the capability that tacks on another termcap entry to the end of the current one, to add on its capabilities. If a termcap entry does not use the \*(``tc\*('' capability, then of course the two lengths are the same. .PP The \*(``before tc expansion\*('' length is the most important one, because it affects more than just users of that particular terminal. This is the length of the entry as it exists in /etc/termcap, minus the backslash\-newline pairs, which \fBtgetent\fP strips out while reading it. Some termcap libraries strip off the final newline, too (GNU termcap does not). Now suppose: .bP a termcap entry before expansion is more than 1023 bytes long, .bP and the application has only allocated a 1k buffer, .bP and the termcap library (like the one in BSD/OS 1.1 and GNU) reads the whole entry into the buffer, no matter what its length, to see if it is the entry it wants, .bP and \fBtgetent\fP is searching for a terminal type that either is the long entry, appears in the termcap file after the long entry, or does not appear in the file at all (so that \fBtgetent\fP has to search the whole termcap file). .PP Then \fBtgetent\fP will overwrite memory, perhaps its stack, and probably core dump the program. Programs like telnet are particularly vulnerable; modern telnets pass along values like the terminal type automatically. The results are almost as undesirable with a termcap library, like SunOS 4.1.3 and Ultrix 4.4, that prints warning messages when it reads an overly long termcap entry. If a termcap library truncates long entries, like OSF/1 3.0, it is immune to dying here but will return incorrect data for the terminal. .PP The \*(``after tc expansion\*('' length will have a similar effect to the above, but only for people who actually set \fITERM\fP to that terminal type, since \fBtgetent\fP only does \*(``tc\*('' expansion once it is found the terminal type it was looking for, not while searching. .PP In summary, a termcap entry that is longer than 1023 bytes can cause, on various combinations of termcap libraries and applications, a core dump, warnings, or incorrect operation. If it is too long even before \*(``tc\*('' expansion, it will have this effect even for users of some other terminal types and users whose \fITERM\fP variable does not have a termcap entry. .PP When in \-C (translate to termcap) mode, the \fI\%ncurses\fP implementation of \fBtic\fP(1M) issues warning messages when the pre\-tc length of a termcap translation is too long. The \-c (check) option also checks resolved (after tc expansion) lengths. .SH FIȘIERE .TP \fI/usr/share/terminfo\fP directorul bazei de date de descriere a terminalului compilat .SH EXTENSII Searching for terminal descriptions in \fI$HOME/.terminfo\fP and \fI\%TERMINFO_DIRS\fP is not supported by older implementations. .PP Some SVr4 \fBcurses\fP implementations, and all previous to SVr4, do not interpret the %A and %O operators in parameter strings. .PP SVr4/XPG4 do not specify whether \fBmsgr\fP licenses movement while in an alternate\-character\-set mode (such modes may, among other things, map CR and NL to characters that do not trigger local motions). The \fI\%ncurses\fP implementation ignores \fBmsgr\fP in \fBALTCHARSET\fP mode. This raises the possibility that an XPG4 implementation making the opposite interpretation may need terminfo entries made for \fI\%ncurses\fP to have \fBmsgr\fP turned off. .PP The \fI\%ncurses\fP library handles insert\-character and insert\-character modes in a slightly non\-standard way to get better update efficiency. See the \fBInsert/Delete Character\fP subsection above. .PP The parameter substitutions for \fBset_clock\fP and \fBdisplay_clock\fP are not documented in SVr4 or X/Open Curses. They are deduced from the documentation for the AT&T 505 terminal. .PP Be careful assigning the \fBkmous\fP capability. The \fI\%ncurses\fP library wants to interpret it as \fBKEY_MOUSE\fP, for use by terminals and emulators like xterm that can return mouse\-tracking information in the keyboard\-input stream. .PP X/Open Curses does not mention italics. Portable applications must assume that numeric capabilities are signed 16\-bit values. This includes the \fIno_color_video\fP (\fBncv\fP) capability. The 32768 mask value used for italics with \fBncv\fP can be confused with an absent or canceled \fBncv\fP. If italics should work with colors, then the \fBncv\fP value must be specified, even if it is zero. .PP Different commercial ports of \fI\%terminfo\fP and \fIcurses\fP support different subsets of X/Open Curses and (in some cases) different extensions. Here is a summary, accurate as of October 1995, after which the commercial Unix market contracted and lost diversity. .bP SVr4, Solaris, și \fI\%ncurses\fP acceptă toate capacitățile SVr4. .bP IRIX acceptă setul SVr4 și adaugă o capacitate extinsă nedocumentată pentru șiruri \%(\fBset_pglen\fP). .bP SVr1 and Ultrix support a restricted subset of \fI\%terminfo\fP capabilities. The Booleans end with \fB\%xon_xoff\fP; the numerics with \fB\%width_status_line\fP; and the strings with \fB\%prtr_non\fP. .bP HP/UX acceptă subsetul SVr1, plus valorile numerice SVr[234] \fB\%num_labels\fP, \fB\%label_height\fP, \fB\%label_width\fP, plus tastele funcționale 11 până la 63, plus \fB\%plab_norm\fP, \fB\%label_on\fP și \fB\%label_off\fP, plus o serie de extensii incompatibile ale tabelului de șiruri. .bP AIX acceptă subsetul SVr1, plus tastele funcționale 11 până la 63, plus o serie de extensii incompatibile ale tabelelor de șiruri de caractere. .bP OSF/1 acceptă atât setul SVr4, cât și extensiile AIX. .SH PORTABILITATE Do not count on compiled (binary) \fI\%terminfo\fP entries being portable between commercial Unix systems. At least two implementations of \fI\%terminfo\fP (those of HP\-UX and AIX) diverged from those of other System V Unices after SVr1, adding extension capabilities to the string table that (in the binary format) collide with subsequent System V and X/Open Curses extensions. .SH AUTORI Zeyd M. Ben\-Halim, Eric S. Raymond, Thomas E. Dickey. Bazat pe \fIpcurses\fP de Pavel Curtis. .SH "CONSULTAȚI ȘI" \fB\%infocmp\fP(1M), \fB\%tabs\fP(1), \fB\%tic\fP(1M), \fB\%curses\fP(3X), \fB\%curs_color\fP(3X), \fB\%curs_terminfo\fP(3X), \fB\%curs_variables\fP(3X), \fB\%printf\fP(3), \fB\%term_variables\fP(3X), \fB\%term\fP(5), \fB\%user_caps\fP(5) .PP .SH TRADUCERE Traducerea în limba română a acestui manual a fost făcută de Remus-Gabriel Chelu . .PP Această traducere este documentație gratuită; citiți .UR https://www.gnu.org/licenses/gpl-3.0.html Licența publică generală GNU Versiunea 3 .UE sau o versiune ulterioară cu privire la condiții privind drepturile de autor. NU se asumă NICIO RESPONSABILITATE. .PP Dacă găsiți erori în traducerea acestui manual, vă rugăm să trimiteți un e-mail la .MT translation-team-ro@lists.sourceforge.net .ME .