Man page - console_codes(4)

Packages contains this manual

Available languages:

en fr pt_BR es pl ko ja ru zh_TW zh_CN de

Manual

console_codes

이 름
μ„€ λͺ…
Linux console controls
Character sets
Mouse tracking
Comparisons with other terminals
주 의
버 κ·Έ
μΆ” κ°€ μ°Έ μ‘°
번 μ—­

이 름

console_codes - 리 λˆ… 슀 콘 솔 제 μ–΄ λ¬Έ 자 와 제 μ–΄ 순 μ„œ ꡬ μ‘°

μ„€ λͺ…

The Linux console implements a large subset of the VT102 and ECMA-48 / ISO/IECΒ 6429 / ANSI X3.64 terminal controls, plus certain private-mode sequences for changing the color palette, character-set mapping, and so on. In the tabular descriptions below, the second column gives ECMA-48 or DEC mnemonics (the latter if prefixed with DEC) for the given function. Sequences without a mnemonic are neither ECMA-48 nor VT102.

λͺ¨ λ“  좜 λ ₯ κ³Ό μ • 이 끝 λ‚˜ κ³  λ¬Έ 자 λ“€ 이 콘 솔 λ“œ 라 이 버 에 μ‹€ 제 ν”„ λ¦° νŒ… 을 μœ„ ν•΄ 도 μ°© ν•œ ν›„ 에 , κ°€ μž₯ λ¨Ό μ € 일 μ–΄ λ‚˜ λŠ” 일 은 μ§„ ν–‰ 을 μœ„ ν•΄ μ“° 인 μ½” λ“œ λ“€ 이 ν”„ λ¦° νŒ… 을 μœ„ ν•œ μ½” λ“œ λ“€ 둜 λ°” λ€Œ λŠ” 것 이 λ‹€ .

If the console is in UTF-8 mode, then the incoming bytes are first assembled into 16-bit Unicode codes. Otherwise, each byte is transformed according to the current mapping table (which translates it to a Unicode value). See the Character Sets section below for discussion.

일 반 적 인 κ²½ 우 , Unicode κ°’ 은 폰 트 인 덱 슀 둜 λ°” λ€Œ μ–΄ μ„œ , λΉ„ λ”” 였 λ©” λͺ¨ 리 에 μ € μž₯ 된 λ‹€ . κ·Έ 래 μ„œ λŒ€ 응 ν•˜ λŠ” glyph (λΉ„ λ”” 였 ROM에 있 λŠ” 것 κ³Ό κ°™ 이 )κ°€ ν™” λ©΄ 에 λ‚˜ 타 λ‚œ λ‹€ . Unicode의 사 용 (κ³Ό PC hardware의 λ”” 자 인 )에 μ„œ λŠ” 512κ°€ μ§€ λ‹€ λ₯Έ glyphλ₯Ό 동 μ‹œ 에 사 용 ν•  수 있 λ‹€ .

If the current Unicode value is a control character, or we are currently processing an escape sequence, the value will treated specially. Instead of being turned into a font index and rendered as a glyph, it may trigger cursor movement or other control functions. See the Linux Console Controls section below for discussion.

hard-wire terminal control을 ν”„ 둜 κ·Έ 램 에 λ„£ λŠ” 것 은 일 반 적 으 둜 μ’‹ 은 일 은 μ•„ λ‹ˆ λ‹€ . 리 λˆ… 슀 λŠ” ν„° λ―Έ 널 κΈ° λŠ₯ 의 terminfo (5) 데 이 ν„° λ²  이 슀 λ₯Ό μ§€ 원 ν•œ λ‹€ . 콘 솔 escape μ‹œ ν€€ 슀 λ₯Ό 직 μ ‘ λ‚΄ 보 λ‚΄ λŠ” 것 보 단 , terminfo을 사 용 ν•˜ λ € ν•  것 이 λ‹€ . -슀 크 λ¦° 라 이 브 러 리 와 . ncurses (3), tput (1), 혹 은 reset (1). λ₯Ό μ•Œ κ³  λ‚œ λ‹€ λ©΄ .

Linux console controls

이 μ„Ή μ…˜ 에 μ„  리 λˆ… 슀 콘 솔 상 에 μ„œ 특 별 ν•œ κΈ° λŠ₯ λ“€ 을 (예 λ₯Ό λ“€ 자 λ©΄ ν˜„ 제 컀 μ„œ μœ„ 치 에 μ„œ plyphλ₯Ό μ“° λŠ” 것 κ°™ 은 ) ν•˜ λŠ” λͺ¨ λ“  제 μ–΄ λ¬Έ 자 와 escape μ‹œ ν€€ 슀 λ₯Ό λ‹€ 루 μ—ˆ λ‹€ .

Control characters

A character is a control character if (before transformation according to the mapping table) it has one of the 14 codes 00 (NUL), 07 (BEL), 08 (BS), 09 (HT), 0a (LF), 0b (VT), 0c (FF), 0d (CR), 0e (SO), 0f (SI), 18 (CAN), 1a (SUB), 1b (ESC), 7f (DEL). One can set a "display control characters" mode (see below), and allow 07, 09, 0b, 18, 1a, 7f to be displayed as glyphs. On the other hand, in UTF-8 mode all codes 00–1f are regarded as control characters, regardless of any "display control characters" mode.

제 μ–΄ λ¬Έ 자 λ₯Ό κ°€ μ§€ κ³  있 λ‹€ λ©΄ , κ·Έ 것 은 즉 μ‹œ 적 용 되 κ³  사 라 μ§„ λ‹€ . (κ·Έ 것 이 escape μ‹œ ν€€ 슀 쀑 에 있 λ‹€ ν•˜ 더 라 도 .) κ·Έ 리 κ³  escape μ‹œ ν€€ 슀 λŠ” λ‹€ 음 λ¬Έ 자 둜 계 속 된 λ‹€ . (ν•˜ μ§€ 만 , ESCλŠ” μ–΄ λ–» 게 λ“  μ•„ 직 끝 λ‚˜ μ§€ μ•Š 은 이 μ „ 의 것 을 쀑 μ§€ μ‹œ ν‚€ κ³  , μƒˆ 둜 운 escape μ‹œ ν€€ 슀 λ₯Ό μ‹œ μž‘ ν•œ λ‹€ . κ·Έ 리 κ³  CANκ³Ό SUBλŠ” μ–΄ λ–€ escape μ‹œ ν€€ 슀 라 도 끝 λ‚Έ λ‹€ .) 인 증 된 제 μ–΄ λ¬Έ 자 λŠ” BEL, BS, HT, LF, VT, FF, CR, SO, SI, CAN, SUB, ESC, DEL, CSI.이 λ‹€ . 이 것 λ“€ 은 의 도 λŒ€ 둜 동 μž‘ ν•œ λ‹€ :
BEL (0x07, ^G )

beeps;

BS (0x08, ^H )

λŠ” ν•œ 컬 럼 μ—­ ν–‰ ν•œ λ‹€ . (단 , ν–‰ 의 μ‹œ μž‘ 은 μ§€ λ‚˜ 치 μ§€ μ•Š λŠ” λ‹€ );

HT (0x09, ^I )

λŠ” λ‹€ 음 텝 의 마 μ§€ 막 으 둜 κ°€ κ±° λ‚˜ 이 μ „ 텝 의 마 μ§€ 막 이 μ—† λ‹€ λ©΄ 쀄 의 끝 으 둜 κ°„ λ‹€ ;

LF (0x0A, ^J )
VT (0x0B, ^K )
FF (0x0C, ^L )

all give a linefeed, and if LF/NL (new-line mode) is set also a carriage return;

CR (0x0D, ^M )

은 μΌ€ 리 μ§€ λ₯Ό 리 ν„΄ ν•œ λ‹€ ;

SO (0x0E, ^N )

λŠ” G1λ¬Έ 자 κ΅° 을 ν™œ μ„± ν™” ν•œ λ‹€ ;

SI (0x0F, ^O )

λŠ” G0λ¬Έ 자 κ΅° 을 ν™œ μ„± ν™” ν•œ λ‹€ ;

CAN (0x18, ^X )
SUB (0x1A, ^Z )

abort escape sequences;

ESC (0x1B, ^[ )

λŠ” escape μ‹œ ν€€ 슀 λ₯Ό μ‹œ μž‘ ν•œ λ‹€ ;

DEL (0x7F)

은 무 μ‹œ 된 λ‹€ ;

CSI (0x9B)

λŠ” ESC에 ν•΄ λ‹Ή 된 λ‹€ . [.

ESC- but not CSI-sequences

Image grohtml-4016867-1.png

ECMA-48 CSI sequences

CSI (or ESC []λŠ” μ„Έ λ―Έ 콜 λ‘  으 둜 ꡬ λΆ„ 되 λŠ” μ‹­ μ§„ 수 λ§€ 개 λ³€ 수 의 (κ±° 의 NPAR(16)) μ‹œ ν€€ 슀 둜 μ‹€ ν–‰ 된 λ‹€ . λΉ„ μ–΄ 있 λŠ” λ§€ 개 λ³€ 수 λŠ” 0κ°’ 이 μ£Ό μ–΄ μ§„ λ‹€ . λ§€ 개 λ³€ 수 의 μ‹œ ν€€ μ…œ 은 μ•ž 에 ν•˜ λ‚˜ 의 λ¬Ό 음 ν‘œ λ₯Ό λΆ™ μ—¬ 놓 μ•˜ 을 것 이 λ‹€ .

ν•˜ μ§€ 만 , CSI [ (or ESC [ []λ’€ 에 μ„  λ¬Έ 자 ν•˜ λ‚˜ κ°€ 읽 히 κ³  , 이 λͺ¨ λ“  μ‹œ ν€€ 슀 κ°€ 무 μ‹œ 된 λ‹€ . (발 상 은 반 ν•­ 되 λŠ” κΈ° λŠ₯ ν‚€ λ₯Ό 무 μ‹œ ν•˜ λŠ” 것 이 λ‹€ .)

CSI μ‹œ ν€€ 슀 λŠ” κ·Έ 것 의 마 μ§€ 막 λ¬Έ 자 에 의 ν•΄ κ²° μ • 된 λ‹€ .

Image grohtml-4016867-2.png

ECMA-48 Select Graphic Rendition

The ECMA-48 SGR sequence ESC [ parameters m sets display attributes. Several attributes can be set in the same sequence, separated by semicolons. An empty parameter (between semicolons or string initiator or terminator) is interpreted as a zero.

Image grohtml-4016867-3.png

Commands 38 and 48 require further arguments:

Image grohtml-4016867-4.png

ECMA-48 Mode Switches
ESC [ 3 h

DECCRM (default off): λ”” 슀 ν”Œ 레 이 μ„€ μ • chars.

ESC [ 4 h

DECIM (default off): μ‚½ μž… λͺ¨ λ“œ μ„€ μ • .

ESC [ 20 h

LF/NL (default off): 자 동 적 으 둜 LF, VT 혹 은 CRκ³Ό FF의 에 μ½” λ₯Ό 발 생 .

ECMA-48 Status Report Commands
ESC [ 5 n

Device status report (DSR): 응 λ‹΅ 은 ESC [ 0 n (Terminal OK).

ESC [ 6 n

Cursor position report (CPR): 응 λ‹΅ 은 ESC [ y ; x R, where x,y is the cursor location.

DEC Private Mode (DECSET/DECRST) sequences

ECMA-48에 λŒ€ ν•œ μ„€ λͺ… 은 μ—† λ‹€ . Set Mode sequencesλ₯Ό 리 슀 트 에 올 λ Έ λ‹€ ; Reset Mode sequencesλŠ” 마 μ§€ 막 'h'λ₯Ό 'l'둜 λ°” κΎΈ λ©΄ 된 λ‹€ .
ESC [ ? 1 h

DECCKM (default off): μ„€ μ • 되 λ©΄ , 컀 μ„œ ν‚€ λŠ” ESC보 λ‹€ ESC O μ ‘ 두 사 λ₯Ό 보 λ‚Έ λ‹€ [.

ESC [ ? 3 h

DECCOLM (default off = 80 columns): 80/132 col mode switch. λ“œ 라 이 버 μ†Œ 슀 에 의 ν•˜ λ©΄ 이 것 만 으 둜 λŠ” μΆ© λΆ„ 치 λͺ» ν•˜ λ‹€ κ³  ν•œ λ‹€ ; resizecons (8) 와 κ°™ 은 유 μ € λͺ¨ λ“œ 의 유 ν‹Έ 리 ν‹° κ°€ 콘 솔 λΉ„ λ”” 였 μΉ΄ λ“œ 상 의 ν•˜ λ“œ 웨 μ–΄ 레 μ§€ 슀 ν„° λ₯Ό λ°” κΏ” μ•Ό 만 ν•œ λ‹€ .

ESC [ ? 5 h

DECSCNM (default off): 리 버 슀 λΉ„ λ”” 였 λͺ¨ λ“œ λ₯Ό μ„€ μ • ν•œ λ‹€ .

ESC [ ? 6 h

DECOM (default off): μ„€ μ • ν•˜ λ©΄ , 컀 μ„œ μ–΄ λ“œ 레 μ‹± 은 슀 크 λ‘€ 링 ꡬ μ—­ 의 상 μœ„ μ™Ό μͺ½ μ½” λ„ˆ 와 κ΄€ λ ¨ 된 λ‹€ .

ESC [ ? 7 h

DECAWM (default on): autowrap을 켜 μ§„ 상 νƒœ 둜 μ„€ μ • ν•œ λ‹€ . 이 λͺ¨ λ“œ 에 μ„œ λŠ” , 80μ—΄ (DECCOLM 이 켜 쑌 을 λ•Œ λŠ” 132μ—΄ )ν›„ 에 λ‚˜ 온 κ·Έ 래 ν”½ λ¬Έ 자 κ°€ λ‹€ 음 μ—΄ 의 μ‹œ μž‘ 을 λ°€ μ–΄ λ‚Έ λ‹€ .

ESC [ ? 8 h

DECARM (default on): ν‚€ 보 λ“œ 자 동 반 볡 을 μΌ  λ‹€ .

ESC [ ? 9 h

X10 Mouse Reporting (default off): 리 포 νŒ… λͺ¨ λ“œ λ₯Ό 1둜 μ„€ μ • ν•œ λ‹€ .(혹 은 0을 리 μ…‹ ν•œ λ‹€ .)β€”μ•„ 래 λ₯Ό μ°Έ μ‘° .

ESC [ ? 25 h

DECTECM (default on): 컀 μ„œ λ₯Ό 보 이 게 ν•œ λ‹€ .

ESC [ ? 1000 h

X11 Mouse Reporting (default off): 리 포 νŒ… λͺ¨ λ“œ λ₯Ό 2둜 μ„€ μ • ν•œ λ‹€ .(혹 은 0으 둜 리 μ…‹ ν•œ λ‹€ .)β€”μ•„ 래 μ°Έ μ‘° .

Linux Console Private CSI Sequences

The following sequences are neither ECMA-48 nor native VT102. They are native to the Linux console driver. Colors are in SGR parameters: 0 = black, 1 = red, 2 = green, 3 = brown, 4 = blue, 5 = magenta, 6 = cyan, 7 = white; 8–15 = bright versions of 0–7.

Image grohtml-4016867-5.png

Character sets

컀 널 은 콘 솔 상 에 μ„œ λ°” 이 트 의 λ³€ ν™˜ 을 4개 μ • 도 ꡬ λΆ„ ν•œ λ‹€ . κ·Έ 4κ°€ μ§€ ν…Œ 이 λΈ” 은 μ•„ 래 와 κ°™ λ‹€ : a) Latin1 -> PC, b) VT100 graphics -> PC, c) PC -> PC, d) 사 용 자 μ • 의 .

G0κ³Ό G1이 라 뢈 리 λŠ” 두 κ°€ μ§€ λ¬Έ 자 κ΅° (character sets)이 있 κ³  , κ·Έ 쀑 ν•˜ λ‚˜ κ°€ ν˜„ 제 톡 용 되 λŠ” λ¬Έ 자 κ΅° 이 λ‹€ .(보 톡 G0) ^N 을 μž… λ ₯ 함 으 둜 써 G1을 사 용 ν•  수 있 λ‹€ . ^O 을 μž… λ ₯ ν•˜ λ©΄ G0으 둜 λ°” 뀐 λ‹€ .

이 κ°€ λ³€ 적 인 G0κ³Ό G1은 λ³€ ν™˜ ν…Œ 이 λΈ” 을 말 ν•˜ κ³  , 사 용 자 κ°€ λ°” κΏ€ 수 있 λ‹€ . 처 음 에 κ·Έ 것 λ“€ 은 각 각 ν…Œ 이 λΈ” a)와 b)λ₯Ό 뜻 ν–ˆ λ‹€ . ESC ( B, ESC ( 0, ESC ( U와 ESC ( K μ‹œ ν€€ 슀 λ“€ 은 각 각 G0κ°€ λ³€ ν™˜ ν…Œ 이 λΈ” a), b), c)와 d)λ₯Ό κ°€ λ₯΄ ν‚€ 도 둝 ν•œ λ‹€ . ESC ) B, ESC ) 0, ESC ) U와 ESC ) K μ‹œ ν€€ 슀 λŠ” G1이 각 각 ν…Œ 이 λΈ” a), b), c) κ·Έ 리 κ³  d)을 뜻 ν•˜ 게 ν•œ λ‹€ .

The sequence ESC c causes a terminal reset, which is what you want if the screen is all garbled. The oft-advised "echo ^V^O" will make only G0 current, but there is no guarantee that G0 points at table a). In some distributions there is a program reset (1) that just does "echo ^[c". If your terminfo entry for the console is correct (and has an entry rs1=\Ec), then "tput reset" will also work.

사 용 자 μ • 의 λ§΅ ν•‘ ν…Œ 이 λΈ” 은 mapscrn (8). 을 이 용 ν•΄ μ„€ μ • ν•  수 있 λ‹€ . λ§΅ ν•‘ 의 κ²° κ³Ό λŠ” κΈ° 호 cκ°€ ν”„ λ¦° 트 되 λ©΄ , κΈ° 호 s = map[c] κ°€ λΉ„ λ”” 였 λ©” λͺ¨ 리 둜 보 λ‚΄ μ§„ λ‹€ s에 ν•΄ λ‹Ή ν•˜ λŠ” λΉ„ 트 λ©₯ 을 λ¬Έ 자 ROM에 μ„œ μ°Ύ κ³  , setfont (8). 사 용 이 λ°” λ€” 수 있 게 된 λ‹€

Mouse tracking

마 우 슀 μΆ” 적 κΈ° λŠ₯ 의 원 래 λͺ© 적 은 xterm (1)(마 우 슀 호 ν™˜ 상 νƒœ 리 포 트 )을 반 ν™˜ ν•˜ λŠ” 것 이 λ‹€ . 콘 솔 λ“œ 라 이 버 λŠ” 마 우 슀 μž₯ 치 λ‚˜ , 타 μž… 을 μ•Œ 수 μ—† κΈ° λ•Œ λ¬Έ 에 , κ°€ 상 ν„° λ―Έ 널 λ“œ 라 이 버 κ°€ 마 우 슀 μ—… 데 이 트 ioctl을 λ°› μ•˜ 을 λ•Œ 만 콘 솔 μž… λ ₯ 슀 트 λ¦Ό 상 에 μ„œ 이 리 포 트 κ°€ 반 ν™˜ 된 λ‹€ . 이 ioctls은 반 λ“œ μ‹œ gpm (8) 데 λͺ¬ κ³Ό κ°™ 은 mouse-aware user-mode μ–΄ ν”Œ 리 μΌ€ 이 μ…˜ 에 의 ν•΄ 발 생 되 μ–΄ μ•Ό ν•œ λ‹€ .

The mouse tracking escape sequences generated by xterm (1) encode numeric parameters in a single character as value +040. For example, '!' is 1. The screen coordinate system is 1-based.

이 λ‹€ X10 호 ν™˜ λͺ¨ λ“œ λŠ” escape sequenceλ₯Ό μœ„ 치 와 눌 λ € μ§„ 마 우 슀 버 튼 을 인 μ½” λ”© ν•œ 버 튼 이 눌 러 쑌 을 λ•Œ 보 λ‚Έ λ‹€ . It is enabled by ESC [ ? 9 hλ₯Ό 보 냄 으 둜 써 이 것 을 κ°€ λŠ₯ ν•˜ 게 ν•˜ κ³  , ESC [ ? 9 lλ₯Ό 보 냄 으 둜 써 뢈 κ°€ λŠ₯ ν•˜ 게 ν•œ λ‹€ .. button press에 μ„œ , xterm (1)은 ESC [ M bxy (6 characters)λ₯Ό 보 λ‚Έ λ‹€ . b λŠ” 버 튼 -1이 κ³  , 마 우 슀 λ₯Ό 눌 λ € 을 λ•Œ 의 x 와 y λŠ” 마 우 슀 의 x, y쒌 ν‘œ 이 λ‹€ . 이 μ½” λ“œ λŠ” λͺ¨ λ“  컀 널 에 μ„œ 적 용 된 λ‹€ .

Normal tracking mode (not implemented in Linux 2.0.24) sends an escape sequence on both button press and release. Modifier information is also sent. It is enabled by sending ESC [ ? 1000 h and disabled with ESC [ ? 1000 l. On button press or release, xterm (1) sends ESC [ M bxy . The low two bits of b encode button information: 0=MB1 pressed, 1=MB2 pressed, 2=MB3 pressed, 3=release. The upper bits encode what modifiers were down when the button was pressed and are added together: 4=Shift, 8=Meta, 16=Control. Again x and y are the x and y coordinates of the mouse event. The upper left corner is (1,1).

Comparisons with other terminals

Many different terminal types are described, like the Linux console, as being "VT100-compatible". Here we discuss differences between the Linux console and the two most important others, the DEC VT102 and xterm (1).

Control-character handling

VT102 μ—­ μ‹œ μ•„ 래 제 μ–΄ λ¬Έ 자 λ“€ 을 인 식 ν•œ λ‹€ :
NUL (0x00)

은 무 μ‹œ ν•œ λ‹€ ;

ENQ (0x05)

응 λ‹΅ λ©” μ‹œ μ§€ λ₯Ό 트 리 κ±° ν•œ λ‹€ ;

DC1 (0x11, ^Q , XON)

μ „ 솑 을 재 개 ν•œ λ‹€ ;

DC3 (0x13, ^S , XOFF)

VT100으 둜 ν•˜ μ—¬ 금 XOFF와 XON을 제 μ™Έ ν•œ λͺ¨ λ“  μ½” λ“œ λ₯Ό 무 μ‹œ ν•œ λ‹€ (κ·Έ 리 κ³  μ „ 솑 을 멈 좘 λ‹€ )

VT100-like DC1/DC3 processing may be enabled by the terminal driver.

xterm (1) ν”„ 둜 κ·Έ 램 (VT100 λͺ¨ λ“œ 에 μ„œ )은 BEL, BS, HT, LF, VT, FF, CR, SO, SI, ESC 제 μ–΄ λ¬Έ 자 λ₯Ό 인 식 ν•œ λ‹€ .

Escape sequences

VT100 콘 솔 μ‹œ ν€€ 슀 λŠ” 리 λˆ… 슀 콘 솔 에 μ„œ μ‹€ ν–‰ 되 μ§€ μ•Š λŠ” λ‹€ .

Image grohtml-4016867-6.png

The program xterm (1) (in VT100 mode) recognizes ESC c, ESC # 8, ESC >, ESC =, ESC D, ESC E, ESC H, ESC M, ESC N, ESC O, ESC P ... ESC \, ESC Z (it answers ESC [ ? 1 ; 2 c, "I am a VT100 with advanced video option") and ESC ^ ... ESC \ with the same meanings as indicated above. It accepts ESC (, ESC ), ESC *, ESC + followed by 0, A, B for the DEC special character and line drawing set, UK, and US-ASCII, respectively.

The user can configure xterm (1) to respond to VT220-specific control sequences, and it will identify itself as a VT52, VT100, and up depending on the way it is configured and initialized.

It accepts ESC ] (OSC) for the setting of certain resources. In addition to the ECMA-48 string terminator (ST), xterm (1) accepts a BEL to terminate an OSC string. These are a few of the OSC control sequences recognized by xterm (1):

Image grohtml-4016867-7.png

It recognizes the following with slightly modified meaning (saving more state, behaving closer to VT100/VT220):

Image grohtml-4016867-8.png

It also recognizes

Image grohtml-4016867-9.png

It also recognizes ESC % and provides a more complete UTF-8 implementation than Linux console.

CSI Sequences

Old versions of xterm (1), for example, from X11R5, interpret the blink SGR as a bold SGR. Later versions which implemented ANSI colors, for example, XFree86 3.1.2A in 1995, improved this by allowing the blink attribute to be displayed as a color. Modern versions of xterm implement blink SGR as blinking text and still allow colored text as an alternate rendering of SGRs. Stock X11R6 versions did not recognize the color-setting SGRs until the X11R6.8 release, which incorporated XFree86 xterm. All ECMA-48 CSI sequences recognized by Linux are also recognized by xterm , however xterm (1) implements several ECMA-48 and DEC control sequences not recognized by Linux.

The xterm (1) program recognizes all of the DEC Private Mode sequences listed above, but none of the Linux private-mode sequences. For discussion of xterm (1)’s own private-mode sequences, refer to the Xterm Control Sequences document by Edward Moy, Stephen Gildea, and Thomas E. Dickey available with the X distribution. That document, though terse, is much longer than this manual page. For a chronological overview,

http://invisible-island.net/xterm/xterm.log.html

details changes to xterm.

The vttest program

http://invisible-island.net/vttest/

demonstrates many of these control sequences. The xterm (1) source distribution also contains sample scripts which exercise other features.

주 의

ESC 8 (DECRC) is not able to restore the character set changed with ESC %.

버 κ·Έ

2.0.23 버 μ „ 에 μ„œ , CSIκ°€ μž‘ 동 ν•˜ μ§€ μ•Š κ³  , NUL은 λ‚΄ λΆ€ escape μ‹œ ν€€ 슀 λ₯Ό 무 μ‹œ ν•˜ μ§€ μ•Š λŠ” λ‹€ .

Some older kernel versions (after Linux 2.0) interpret 8-bit control sequences. These "C1 controls" use codes between 128 and 159 to replace ESC [, ESC ] and similar two-byte control sequence initiators. There are fragments of that in modern kernels (either overlooked or broken by changes to support UTF-8), but the implementation is incomplete and should be regarded as unreliable.

Linux "private mode" sequences do not follow the rules in ECMA-48 for private mode control sequences. In particular, those ending with ] do not use a standard terminating character. The OSC (set palette) sequence is a greater problem, since xterm (1) may interpret this as a control sequence which requires a string terminator (ST). Unlike the setterm (1) sequences which will be ignored (since they are invalid control sequences), the palette sequence will make xterm (1) appear to hang (though pressing the return-key will fix that). To accommodate applications which have been hardcoded to use Linux control sequences, set the xterm (1) resource brokenLinuxOSC to true.

An older version of this document implied that Linux recognizes the ECMA-48 control sequence for invisible text. It is ignored.

μΆ” κ°€ μ°Έ μ‘°

ioctl_console (2), charsets (7)

번 μ—­

이 λ§€ 뉴 μ–Ό 페 이 μ§€ 의 ν•œ κ΅­ μ–΄ 번 μ—­ 은 λ‹€ 음 에 의 ν•΄ 편 μ§‘ 되 μ—ˆ 슡 λ‹ˆ λ‹€ : ASPLINUX <man@asp-linux.co.kr>

이 번 μ—­ 은 무 료 λ¬Έ μ„œ μž… λ‹ˆ λ‹€ . μ € μž‘ ꢌ μ‘° 건 에 λŒ€ ν•΄ μ„œ λŠ” GNU General Public License 버 μ „ 3 이 상 을 읽 으 μ‹­ μ‹œ 였 . μ±… μž„ 이 μ—† 슡 λ‹ˆ λ‹€ .

이 λ§€ 뉴 μ–Ό 페 이 μ§€ 의 번 μ—­ 에 μ„œ 였 λ₯˜ λ₯Ό 발 견 ν•˜ λ©΄ translation-team-ko@googlegroups.com 둜 이 λ©” 일 을 보 λ‚΄ μ£Ό μ‹­ μ‹œ 였 .