![]() ![]() Meffords ANSI.COM, Jason Hoods ANSICON10 and Maximus5s ConEmu interpreted ANSI escape sequences printed by programs. Some replacements or additions for the console window such as JP Softwares TCC (formerly 4NT), Michael J. If n is 1, the command clears from the cursor to the beginning of the line. The Win32 console did not support ANSI escape sequences at all. If n is 0 or not specified, the command clears from the cursor to the end of the line. CSI n K Erase in Line Erase the part of the line. If n is 3, the command clears the entire window and deletes lines in the scroll-back buffer. The command clears the whole screen if the n is 2. If n is 1, the command clears from the cursor position to the beginning of the window. If n is 0 or not specified, the command clears from the current position of the cursor to the end of the window. The general format for an ANSI-compliant escape sequence is defined by ANSI X3.41 (equivalent to ECMA-35 or ISO/IEC 2022).: 13.1 The escape sequences consist only of bytes in the range 0x200x7F (all the non-control ASCII characters), and can be parsed without looking ahead. ![]() inputrc, but it doesn't work, it simply ignores the three chars: Control-N: '\e J' If I add some test chars inside the string: Control-N: 'BEFORE \e J AFTER', then the string BEFORE is inserted and it stops there. CSI n J Erase in Display Clear part of the terminal window. The ANSI sequence to clear the bottom of the screen is \e J, so I tried to add the following line to my. If the cursor is already at the edge, this sequence command has no effect. CSI n B Cursor Down Move the terminal cursor down by n cells. If the cursor is already at the edge, the sequence command has no effect. It supports 12-bit graphics addressing, scaled to the window size. The Tektronix 4014 emulation is also fairly good. Code Name Effect CSI n A Cursor Up Move the terminal cursor up by n cells. Many of the special xterm features may be modified under program control through a set of escape sequences different from the standard VTxxx escape sequences (see Xterm Control Sequences). Only ESC H ESC J really 'clears' the currently showed contents on the screen. However, ESC 2J doesnt really 'clear' the screen, it just scrolls down to 'hide' printed contents. ESC 0 q: clear all LEDs ESC 1 q: set Scroll Lock LED ESC 2 q: set Num Lock LED ESC 3. The new Windows console supports ANSI (VT100) control codes: ANSI/VT100 control codes
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |