| Index | Manual | Download | Source | Macros | Embedded word Case ins.
Sitemap | Links | Forum | Tests | Projects

# ansi.htm

This file can be included to programs written in EuroAssembler.
It declares the most often used ANSI escape codes which can be used to modify the behaviour of computer terminal.

Codes are defined in
Wikipedia,
Github
Escape codes

    ansi HEAD

    AnsiAtRowCol           DB 27,'[row;col;H',0
    AnsiClrBgC0C0C0        DB 27,'[48;2;192;192;192m',0
    AnsiClrBgD0D0FF        DB 27,'[48;2;208;208;255m',0
    AnsiClrBgD0FFD0        DB 27,'[48;2;208;255;208m',0
    AnsiClrBgFEFEFF        DB 27,'[48;2;255;255;224m',0
    AnsiClrBgFFD0D0        DB 27,'[48;2;255;208;208m',0
    AnsiClrBgFFFF30        DB 27,'[48;2;255;255;48m',0
    AnsiClrBgFFFFD0        DB 27,'[48;2;255;255;208m',0
    AnsiClrBgFFFFFF        DB 27,'[48;2;255;255;255m',0
    AnsiClrFg000000        DB 27,'[38;2;0;0;0m',0
    AnsiClrFg000080        DB 27,'[38;2;0;0;128m',0
    AnsiClrFg800000        DB 27,'[38;2;128;0;0m',0
    AnsiCursorHide         DB 27,'[?25l',0
    AnsiCursorShow         DB 27,'[?25h',0
    AnsiEraseScreen        DB 27,'[2J',0
    AnsiEraseScreenToEnd   DB 27,'[J',0
    AnsiEraseScreenToStart DB 27,'[1J',0
    AnsiKeyAltDn           DB 27,'[1;3B',0
    AnsiKeyAltShiftDn      DB 27,'[1;4B',0
    AnsiKeyAltShiftUp      DB 27,'[1;4A',0
    AnsiKeyAltUp           DB 27,'[1;3A',0
    AnsiKeyAltW            DB 27,'W',0
    AnsiKeyAltw            DB 27,'w',0
    AnsiKeyBackspace       DB 8,0
    AnsiKeyBel             DB 7,0
    AnsiKeyCtrlAltDn       DB 27,'[1;7B',0
    AnsiKeyCtrlAltShiftDn  DB 27,'[1;8B',0
    AnsiKeyCtrlAltShiftUp  DB 27,'[1;8A',0
    AnsiKeyCtrlAltUp       DB 27,'[1;7A',0
    AnsiKeyCtrlDn          DB 27,'[1;5B',0
    AnsiKeyCtrlEnd         DB 27,'[1;5F',0
    AnsiKeyCtrlHome        DB 27,'[1;5H',0
    AnsiKeyCtrlPgDn        DB 27,'[6;5~',0
    AnsiKeyCtrlPgUp        DB 27,'[5;5~',0
    AnsiKeyCtrlShiftDn     DB 27,'[1;6B',0
    AnsiKeyCtrlShiftUp     DB 27,'[1;6A',0
    AnsiKeyCtrlUp          DB 27,'[1;5A',0
    AnsiKeyCtrlW           DB 23,0
    AnsiKeyDelete          DB 27,'[3~',0
    AnsiKeyDn              DB 27,'[B',0
    AnsiKeyEnd             DB 27,'[F',0
    AnsiKeyEnter           DB 13,0
    AnsiKeyEscape          DB 27,0
    AnsiKeyFormFeed        DB 12,0
    AnsiKeyHome            DB 27,'[H',0
    AnsiKeyLeft            DB 27,'[D',0
    AnsiKeyLineFeed        DB 10,0
    AnsiKeyPgDn            DB 27,'[6~',0
    AnsiKeyPgUp            DB 27,'[5~',0
    AnsiKeyRight           DB 27,'[C',0
    AnsiKeyShiftDn         DB 27,'[1;2B',0
    AnsiKeyShiftTab        DB 27,'[Z',0
    AnsiKeyShiftUp         DB 27,'[1;2A',0
    AnsiKeyTab             DB 9,0
    AnsiKeyUp              DB 27,'[A',0
    AnsiKeyW               DB 'W',0
    AnsiKeyw               DB 'w',0
    AnsiMouseDisable       DB 27,'[?1000;1006;1015l',0
    AnsiMouseEnable        DB 27,'[?1000;1006;1015h',0
    row %FOR 1..30
      AnsiRow%row          DB 27,'[%row{}H',0
        %ENDFOR row

      ENDHEAD ansi

▲Back to the top▲