⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 vt100.txt

📁 国外网站上的一些精典的C程序
💻 TXT
字号:
##                        VT100 Escape Codes#        symbology:#        ^[       = escape character (ascii 27 decimal)#        <v>         = single or double digit number.  Vertical coordinate#        <h>         = single or double digit number.  Horizontal coordinate#        <n>         = single or double digit number.  Number of chars/lines#        others   = single characters just as they appear.## NOTE: Many sequences have "^[[" which is two chars: "escape" and "[".#Name                  Description                            Esc Code--------------------  -------------------------------------  -----------setnl LMN             Set new line mode                      ^[[20hsetappl DECCKM        Set cursor key to application          ^[[?1hsetansi DECANM        Set ANSI (versus VT52)                 nonesetcol DECCOLM        Set number of columns to 132           ^[[?3hsetsmooth DECSCLM     Set smooth scrolling                   ^[[?4hsetrevscrn DECSCNM    Set reverse video on screen            ^[[?5hsetorgrel DECOM       Set origin to relative                 ^[[?6hsetwrap DECAWM        Set auto-wrap mode                     ^[[?7hsetrep DECARM         Set auto-repeat mode                   ^[[?8hsetinter DECINLM      Set interlacing mode                   ^[[?9hsetlf LMN             Set line feed mode                     ^[[20lsetcursor DECCKM      Set cursor key to cursor               ^[[?1lsetvt52 DECANM        Set VT52 (versus ANSI)                 ^[[?2lresetcol DECCOLM      Set number of columns to 80            ^[[?3lsetjump DECSCLM       Set jump scrolling                     ^[[?4lsetnormscrn DECSCNM   Set normal video on screen             ^[[?5lsetorgabs DECOM       Set origin to absolute                 ^[[?6lresetwrap DECAWM      Reset auto-wrap mode                   ^[[?7lresetrep DECARM       Reset auto-repeat mode                 ^[[?8lresetinter DECINLM    Reset interlacing mode                 ^[[?9laltkeypad DECKPAM     Set alternate keypad mode              ^[=numkeypad DECKPNM     Set numeric keypad mode                ^[>setukg0               Set United Kingdom G0 character set    ^[(Asetukg1               Set United Kingdom G1 character set    ^[)Asetusg0               Set United States G0 character set     ^[(Bsetusg1               Set United States G1 character set     ^[)Bsetspecg0             Set G0 special chars. & line set       ^[(0setspecg1             Set G1 special chars. & line set       ^[)0setaltg0              Set G0 alternate character ROM         ^[(1setaltg1              Set G1 alternate character ROM         ^[)1setaltspecg0          Set G0 alt char ROM and spec. graphics ^[(2setaltspecg1          Set G1 alt char ROM and spec. graphics ^[)2setss2 SS2            Set single shift 2                     ^[Nsetss3 SS3            Set single shift 3                     ^[Omodesoff SGR0         Turn off character attributes          ^[[mmodesoff SGR0         Turn off character attributes          ^[[0mbold SGR1             Turn bold mode on                      ^[[1mlowint SGR2           Turn low intensity mode on             ^[[2munderline SGR4        Turn underline mode on                 ^[[4mblink SGR5            Turn blinking mode on                  ^[[5mreverse SGR7          Turn reverse video on                  ^[[7minvisible SGR8        Turn invisible text mode on            ^[[8msetwin DECSTBM        Set top and bottom line#s of a window  ^[[<v>;<v>rcursorup(n) CUU       Move cursor up n lines                 ^[[<n>Acursordn(n) CUD       Move cursor down n lines               ^[[<n>Bcursorrt(n) CUF       Move cursor right n lines              ^[[<n>Ccursorlf(n) CUB       Move cursor left n lines               ^[[<n>Dcursorhome            Move cursor to upper left corner       ^[[Hcursorhome            Move cursor to upper left corner       ^[[;Hcursorpos(v,h) CUP    Move cursor to screen location v,h     ^[[<v>;<h>Hhvhome                Move cursor to upper left corner       ^[[fhvhome                Move cursor to upper left corner       ^[[;fhvpos(v,h) CUP        Move cursor to screen location v,h     ^[[<v>;<h>findex IND             Move/scroll window up one line         ^[Drevindex RI           Move/scroll window down one line       ^[Mnextline NEL          Move to next line                      ^[Esavecursor DECSC      Save cursor position and attributes    ^[7restorecursor DECSC   Restore cursor position and attributes ^[8tabset HTS            Set a tab at the current column        ^[Htabclr TBC            Clear a tab at the current column      ^[[gtabclr TBC            Clear a tab at the current column      ^[[0gtabclrall TBC         Clear all tabs                         ^[[3gdhtop DECDHL          Double-height letters, top half        ^[#3dhbot DECDHL          Double-height letters, bottom half     ^[#4swsh DECSWL           Single width, single height letters    ^[#5dwsh DECDWL           Double width, single height letters    ^[#6cleareol EL0          Clear line from cursor right           ^[[Kcleareol EL0          Clear line from cursor right           ^[[0Kclearbol EL1          Clear line from cursor left            ^[[1Kclearline EL2         Clear entire line                      ^[[2Kcleareos ED0          Clear screen from cursor down          ^[[Jcleareos ED0          Clear screen from cursor down          ^[[0Jclearbos ED1          Clear screen from cursor up            ^[[1Jclearscreen ED2       Clear entire screen                    ^[[2Jdevstat DSR           Device status report                   ^[5ntermok DSR               Response: terminal is OK            ^[0ntermnok DSR              Response: terminal is not OK        ^[3ngetcursor DSR         Get cursor position                    ^[6ncursorpos CPR            Response: cursor is at v,h          ^[<v>;<h>Rident DA              Identify what terminal type            ^[[cident DA              Identify what terminal type (another)  ^[[0cgettype DA               Response: terminal type code n      ^[[?1;<n>0creset RIS             Reset terminal to initial state        ^[calign DECALN          Screen alignment display               ^[#8testpu DECTST         Confidence power up test               ^[[2;1ytestlb DECTST         Confidence loopback test               ^[[2;2ytestpurep DECTST      Repeat power up test                   ^[[2;9ytestlbrep DECTST      Repeat loopback test                   ^[[2;10yledsoff DECLL0        Turn off all four leds                 ^[[0qled1 DECLL1           Turn on LED #1                         ^[[1qled2 DECLL2           Turn on LED #2                         ^[[2qled3 DECLL3           Turn on LED #3                         ^[[3qled4 DECLL4           Turn on LED #4                         ^[[4q##  All codes below are for use in VT52 compatibility mode.#setansi               Enter/exit ANSI mode (VT52)            ^[<altkeypad             Enter alternate keypad mode            ^[=numkeypad             Exit alternate keypad mode             ^[>setgr                 Use special graphics character set     ^[Fresetgr               Use normal US/UK character set         ^[Gcursorup              Move cursor up one line                ^[Acursordn              Move cursor down one line              ^[Bcursorrt              Move cursor right one char             ^[Ccursorlf              Move cursor left one char              ^[Dcursorhome            Move cursor to upper left corner       ^[Hcursorpos(v,h)        Move cursor to v,h location            ^[<v><h>revindex              Generate a reverse line-feed           ^[Icleareol              Erase to end of current line           ^[Kcleareos              Erase to end of screen                 ^[Jident                 Identify what the terminal is          ^[Zidentresp             Correct response to ident              ^[/Z#=======================================================================## VT100 Special Key Codes## These are sent from the terminal back to the computer when the# particular key is pressed.  Note that the numeric keypad keys# send different codes in numeric mode than in alternate mode.# See escape codes above to change keypad mode.## Function Keys:PF1                ^[OPPF2                ^[OQPF3                ^[ORPF4                ^[OS# Arrow Keys:                Reset         Set                -----         ---up               ^[A         ^[OAdown             ^[B         ^[OBright            ^[C         ^[OCleft             ^[D         ^[OD# Numeric Keypad Keys:                Keypad Mode                -----------------Keypad Key        Numeric        Alternate----------        -------        ---------0                0        ^[Op1                1        ^[Oq2                2        ^[Or3                3        ^[Os4                4        ^[Ot5                5        ^[Ou6                6        ^[Ov7                7        ^[Ow8                8        ^[Ox9                9        ^[Oy- (minus)        -        ^[Om, (comma)        ,        ^[Ol. (period)       .        ^[OnENTER           ^M        ^[OM

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -