Provided by: manpages-zh_1.5.2-1_all bug

NAME

        - Linux

DESCRIPTION

       LinuxVT102ECMA-48/ISO  6429/ANSI  X3.64,  ,Linux,, ,.,ECMA-48 DEC(DEC).
       ECMA-48VT102.

       , , .

        UTF-8 , 16 Unicode .UTF-8, (Unicode).   CHARACTER SETS .

       ,Unicode ,(ROM) .   Unicode  512 ( ).

        Unicode , ,.  ,., . LINUX CONSOLE CONTROLS .

       .Linux terminfo(5) .  , ncurses(3), tput(1), reset(1).  .

LINUX CONSOLE CONTROLS Linux

       Linux (.).

   Control characters
       14           .             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).     `'
       ()07,09,0b, 18,1a,7f .,UTF-8  00-1f, `'.

       ,(),   .    (,ESC,   ,CANSUB    .)     BEL,BS,HT,LF,VT,FF,CR,SO,SI,CAN,
       SUB,ESC,DEL,CSI..:

       BEL(0x07,^G);

       BS(0x08,^H)();

       HT(0x09,^I).;

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

       CR(0x0D,^M);

       SO(0x0E,^N) G1 ,  LF/NL();

       SI(0x0F,^O) G0 ;

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

       ESC(0x1B,^[);

       DEL(0x7F);

       CSI(0x9B) ESC [;

   ESC- but not CSI-sequences
       ESC c     RIS      .
       ESC D     IND      .
       ESC E     NEL      .
       ESC H     HTS      .
       ESC M     RI       (Reverse linefeed).
       ESC Z     DECID    DEC .
                          VT102,ESC [ ? 6 c.
       ESC 7     DECSC    (,
                          ,).

       ESC 8     DECRC
       ESC [     CSI
       ESC %
       ESC % @               (ISO 646 / ISO 8859-1)
       ESC % G                UTF-8
       ESC % 8                UTF-8()
       ESC # 8   DECALN   DEC  - E's.
       ESC(                G0
       ESC( B                (ISO 8859-1 mapping)
       ESC( 0                 vt100
       ESC( U                 - ROM
       ESC( K                 -  mapscrn(8)
                             .
       ESC )               G1
                          ( B,0,U,K,).
       ESC >     DECPNM
       ESC =     DECPAM
       ESC ]     OSC      (perating system command)
                          ESC ] P nrrggbb: ,7
                          , P :-(.
                           n (0-16), rrggbb
                          // (0-255).
                          ESC ] R:

   ECMA-48 CSI sequence ECMA-48 CSI
       CSI( ESC [)NPAR(16), .0.  .

       , CSI [( ESC [ [), .(.)

       CSI .

       @   ICH       #.
       A   CUU       #.
       B   CUD       #.
       C   CUF       #.
       D   CUB       #.
       E   CNL       #.
       F   CPL       #.
       G   CHA       .
       H   CUP       (11).
       J   ED        ().
                     ESC [ 1 J: .
                     ESC [ 2 J: .
       K   EL        ().
                     ESC [ 1 K: .
                     ESC [ 2 K: .
       L   IL        #.
       M   DL        #.
       P   DCH       #.
       X   ECH       #.
       a   HPR       #.
       c   DA        `I am a VT102' ESC [ ? 6 c:
       d   VPA
       e   VPR       #.
       f   HVP       .
       g   TBC       : .
                     ESC [ 3 g: .
       h   SM        ().
       l   RM        ().
       m   SGR       ().
       n   DSR       ().
       q   DECLL     .
                     ESC [ 0 q:
                     ESC [ 1 q:  Scroll Lock

                     ESC [ 2 q:  Num Lock
                     ESC [ 3 q:  Caps Lock
       r   DECSTBM   ; .
       s   ?         .
       u   ?         .
       `   HPA       .

   ECMA-48 Set Graphics Rendition
       ECMA-48 SGR  ESC [ <parameters> m .  .

       par
       0
       1
       2     ()
       4     ()
             (using ESC ] ...)
       5
       7     (reverse video)
       10    ,,
             .
       11    ,,
             .
       12    ,,
             .(

             .)
       21    ( ECMA-48 )
       22
       24
       25
       27
       30
       31
       32
       33
       34
       35
       36
       37
       38    ,
       39    ,
       40
       41
       42
       43
       44
       45
       46
       47
       49

   ECMA-48 Mode Switches ECMA-48
       ESC [ 3 h
              DECCRM(): .

       ESC [ 4 h
              DECIM(): .

       ESC [ 20 h
              LF/NL(): CR LF,VT  FF.

   ECMA-48 .
       ESC [ 5 n
              (DSR):  ESC [ 0 n ().

       ESC [ 6 n
              (CPR): ESC [ y ; x R ,  x,y .

   DEC Private Mode(DECSET/DECRST)sequences DEC.
        ECMA-48.; lh.

       ESC [ ? 1 h
              DECCKM():  ESC O ,  ESC [.

       ESC [ ? 3 h
              DECCOLM( = 80 ):  80/132 .  , resizecons(8) .

       ESC [ ? 5 h
              DECSCNM(): .

       ESC [ ? 6 h
              DECOM(): , .

       ESC [ ? 7 h
              DECAWM(): ., 80(DECCOLM132).

       ESC [ ? 8 h
              DECARM(): .

       ESC [ ? 9 h
              X10 ():  1( 0)- .

       ESC [ ? 25 h
              DECCM(): .

       ESC [ ? 1000 h
              X11 ():  2( 0)- .

   Linux Console Private CSI Sequences Linux
        ECMA-48  VT102.  Linux. SGR : 0 = ,1 = ,2 = ,3 = ,4 = ,5 = ,6 = ,7 = .

       ESC [ 1 ; n ]        n
       ESC [ 2 ; n ]        n
       ESC [ 8 ]           .
       ESC [ 9 ; n ]        n .
       ESC [ 10 ; n ]      ,: Hz.
       ESC [ 11 ; n ]      ,:.
       ESC [ 12 ; n ]      .
       ESC [ 13 ]
       ESC [ 14 ; n ]       VESA ,: .

CHARACTER SETS

       ,.  a)Latin1 -> PC,b)VT100 graphics -> PC,c)PC -> PC, d)user-defined().

       , G0  G1,.( G0.) ^N  G1 , ^O  G0 .

        G0 and G1 ,.   a)and 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).

         ESC  c  ,.    "echo ^V^O" G0, G0  a).  Linux reset(1)  "echo ^[c".  (
       rs1=\Ec), "tput reset".

        mapscrn(8).  .cs=map[c] s.sROM, setfont(8).

       .

MOUSE TRACKING

        xterm .  , ..   gpm(8) .

       xterm value+040 .,`!'  1.  '1'.

       X10 .  ESC [ ? 9 h ,ESC [ ? 9 l.  ,xterm ESC [ M bxy(6 ).  b  -1, x   y
       x  y .  .

       (Linux  2.0.24) ..ESC [ ? 1000 h ESC [ 1000 l ., xterm  ESC [ M bxy.b :
       0=1,1=2  ,2=3   ,3=.    ,:   4=Shift,8=Meta(Alt),16=Control(Ctrl).x   y
       xy.(1,1).

       ,Linux .  "VT100".: DEC VT102 xterm(1) Linux.

   Control-character handling
       vt102 :

       NUL(0x00);

       ENQ(0x05);

       DC1(0x11,^Q,XON);

       DC3(0x13,^S,XOFF) vt100 ()  XOFF and XON .

       VT100-like DC1/DC3  tty .

        xterm ( vt100  ) BEL,BS,HT,LF,VT,FF,CR,SO,SI,ESC.

   Escape sequences
       VT100  Linux:

       ESC N       SS2    G2
                         (Single shift 2).
       ESC O       SS3    G2
                         (Single shift 2).
       ESC P       DCS   ,ESC \
                         (Device control string).
       ESC X       SOS   .
                         (Start of string)
       ESC ^       PM    , ESC \
                         (Privacy message)
       ESC \       ST
                         (String terminator)
       ESC * ...          G2
       ESC + ...          G3

         xterm (vt100 ) ESC c,ESC # 8,ESC >,ESC =, ESC D,ESC E,ESC H,ESC M,ESC
       N,ESC O,ESC P ...ESC  ESC Z( [ ? 1 ; 2 c,`I am a  vt100  with  advanced
       video  option')   ESC  ^ ...ESC .   ESC(,ESC ),ESC *,ESC +  0,A,B , DEC
       ,,UK  US ASCII.   ESC ] :

       ESC ] 0 ; txt BEL      .
       ESC ] 1 ; txt BEL      .
       ESC ] 2 ; txt BEL      .
       ESC ] 4 6 ; name BEL   (
                              )
       ESC ] 5 0 ; fn BEL      fn.

       ::

       ESC 7  DECSC
       ESC 8  DECRC

       :

       ESC F          (
                      hpLowerleftBugCompat )

       ESC l          ( HP ).
                      .
       ESC m          ( HP ).
       ESC n   LS2     G2 .
       ESC o   LS3     G3 .
       ESC |   LS3R   GR G3 .
                      xterm.
       ESC }   LS2R   GR G3 .
                      xterm.
       ESC ~   LS1R   GR G3 .
                      xterm.

        ESC % ...

   CSI Sequences CSI
        xterm ( XFree86 3.1.2G) SGR.X11R6  SGRs .  xterm  ECMA-48 CSI  ,Linux.
       .

       xterm  DEC , Linux .  Xterm Control Sequences xterm .

       document  by  Edward  Moy  and  Stephen  Gildea,available  with  the  X
       distribution.

BUGS

        2.0.23 ,CSI : NUL.

       console(4), console_ioctl(4), charsets(7)