8/12/2023 0 Comments Escape sequences pythonWith CSI alone you can also control the cursor, clear lines or the whole display, or scroll (provided the terminal supports this of course). However, there is more to ANSI than just CSI SGR codes. 0 (or 00 in this example): reset, disable all attributes.So for each \x1B[.m sequence, the 3 codes that are used are: The parameters (separated by semicolons) in between those tell your terminal what graphic rendition attributes to use. The example you gave contains 4 CSI (Control Sequence Introducer) codes, as marked by the \x1B[ or ESC [ opening bytes, and each contains a SGR (Select Graphic Rendition) code, because they each end in m. ECMA-48 standard, 5th edition (especially sections 5.3 and 5.4).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |