ANSI escape sequences are used to control text formatting and other output options on text terminals. In this context, ANSI refers to the ANSI X3.64 standard (which was withdrawn in 1997). It was replaced by ISO/IEC 6429, which is equivalent to ECMA-48. Most of these escape sequences start with the characters ESC and [ (left bracket). This sequence is called CSI for Control Sequence Introducer (or Control Sequence Initiator). There is a single-character CSI as well.
| Property | Value |
| dbpprop:abstract
|
- ANSI escape sequences are used to control text formatting and other output options on text terminals. In this context, ANSI refers to the ANSI X3.64 standard (which was withdrawn in 1997). It was replaced by ISO/IEC 6429, which is equivalent to ECMA-48. Most of these escape sequences start with the characters ESC and [ (left bracket). This sequence is called CSI for Control Sequence Introducer (or Control Sequence Initiator). There is a single-character CSI as well. The ESC+[ two-character sequence is more often used than the single-character alternative, for details see C0 and C1 control codes. Devices supporting only ASCII (7-bits), or which implement 8-bit code pages which use the 0x80–0x9F control character range for other purposes will recognize only the two-character sequence. Though some encodings use multiple bytes per character, in this topic all characters are single-byte.
- Los códigos de escape ANSI se utilizan para dar formato a la salida de una terminal de texto y se basan en un estándar ANSI, ANSI X3.64 (también denominado ECMA-48). Cuando se intenta representar un código de escape el terminal lo intercepta y actúa en función a ese código, cambiando el cólor o moviendo el cursor. Las posibilidades de las secuencias de escape eran muy variadas y se utilizaban para dar formato y cambiar el aspecto de lo que se va a mostrar por la terminar. En MS-DOS era necesario instalar ANSI. SYS que permitía actuar ante esos códigos. Todos los códigos de escape comienzan por los carácteres ESC (carácter ASCII número 27 decimal, 1B en hexadecimal) seguido del carácter [.
- ANSI X3.64 on Yhdysvaltain kansallisen standardi-instituutin ANSI:n 1970-luvulla määrittelemä merkkipohjaisten päätteiden kuvaruudunohjausstandardi. Useimmat nykyiset pääte-emulaattorit ovat VT100-yhteensopivia ja toteuttavat siten tämän standardin. Monet ohjauskoodit ovat kuitenkin eri pääte- ja ohjelmistovalmistajien toteuttamia laajennuksia. Useimmat ANSI X3.64 -ohjauskoodit alkavat ASCII-ohjauskoodilla esc (desimaali 27, heksadesimaali 1B), jota seuraa yleensä kirjain tai avaava hakasulku [. Muutamia ohjauskoodeja: Kuvaruudun tyhjennys: esc [ 2 J Kohdistimen siirto: esc [ rivi; sarake H (rivi ja sarake desimaalilukuina) Lihavointi päälle: esc [ 1 m Kaikki muotoilut pois päältä: esc [ 0 m Useimmissa ohjelmointikielissä ohjauskoodeja käytetään tulostamalla niitä suoraan päätelaitteelle, joka on useimmiten standardiulostulossa. Esimerkiksi C-kielessä ANSI X3.64 -yhteensopivan päätteen kuvaruudun voi tyhjentää seuraavasti: printf("\033[2J"); IBM PC -koneiden DOS-käyttöjärjestelmän ANSI. SYS-laiteajuri toteuttaa nimensä mukaisesti suuren osan ANSI X3.64 -standardista mutta sisältää myös joitakin omia lisäyksiään. Ehkä merkittävin lisäys on mahdollisuus värien käyttöön ohjauskoodeilla, joita kutsutaan usein virheellisesti "ANSI-värikoodeiksi". Kullekin merkille voi asettaa teksti- ja taustavärin 8 vaihtoehdosta. Tekstivärin voi asettaa myös kirkkaaksi, joten tekstivärivaihtoehtoja on käytännössä 16. ANSI-grafiikka on ASCII-taiteen kaltaista merkkigrafiikkaa, joka käyttää hyväkseen ANSI. SYS -ajurin sallimia ohjauskoodeja ja IBM PC:n näytönohjainten 8-bittistä tekstitilamerkistöä. ANSI-grafiikka oli suosittua etenkin 1990-luvulla BBS-järjestelmissä, mutta sitä harrastetaan vieläkin.
|
| dbpprop:hasPhotoCollection
| |
| dbpprop:reference
| |
| rdf:type
| |
| rdfs:comment
|
- ANSI escape sequences are used to control text formatting and other output options on text terminals. In this context, ANSI refers to the ANSI X3.64 standard (which was withdrawn in 1997). It was replaced by ISO/IEC 6429, which is equivalent to ECMA-48. Most of these escape sequences start with the characters ESC and [ (left bracket). This sequence is called CSI for Control Sequence Introducer (or Control Sequence Initiator). There is a single-character CSI as well.
- Los códigos de escape ANSI se utilizan para dar formato a la salida de una terminal de texto y se basan en un estándar ANSI, ANSI X3.64 (también denominado ECMA-48). Cuando se intenta representar un código de escape el terminal lo intercepta y actúa en función a ese código, cambiando el cólor o moviendo el cursor. Las posibilidades de las secuencias de escape eran muy variadas y se utilizaban para dar formato y cambiar el aspecto de lo que se va a mostrar por la terminar.
- ANSI X3.64 on Yhdysvaltain kansallisen standardi-instituutin ANSI:n 1970-luvulla määrittelemä merkkipohjaisten päätteiden kuvaruudunohjausstandardi. Useimmat nykyiset pääte-emulaattorit ovat VT100-yhteensopivia ja toteuttavat siten tämän standardin. Monet ohjauskoodit ovat kuitenkin eri pääte- ja ohjelmistovalmistajien toteuttamia laajennuksia.
|
| rdfs:label
|
- ANSI escape code
- Código escape ANSI
- ANSI X3.64
|
| owl:sameAs
| |
| skos:subject
| |
| foaf:page
| |
| is dbpprop:redirect
of | |
| is owl:sameAs
of | |