لیست سکانس کنترلر ها
معرف سکانس کنترلر یا CSI مخفف control sequence introducer یک کاراکتر برای کنترل خط فرمان است که با کاراکتر ] ابداء میشود, و سپس تمام اعداد بعد پارامتر دستوری هستند که با یک حرف به عنوان دستور پایان میابد.
Commands
echo -e "\e[5S Line breaks \e[5S"
echo -e "\e[2I Horizontal Tab"
Select Graphic Rendition
دستورات SGR یا Select Graphic Rendition با m پایانی نشان داده میشوند.
echo -e "\e[1mBold"
echo -e "\e[3mItalic"
| Parameter | Action |
|---|---|
| 0 | Reset all attributes |
| 1 | Bold |
| 2 | Faint |
| 3 | Italic |
| 4 | Underline |
| 5 | Slow Blink |
| 6 | Fast Blink |
| 7 | swap foreground/background |
| 9 | Crossed |
Cursor Movement Commands
echo -e "Go \e[5C 5 steps forward!"
echo -e "+ 12345\e[5DGo 5 steps backwards"
| Parameter | Command | Action |
|---|---|---|
| n (default 1) | A | Cursor Up (CUU) |
| n (default 1) | B | Cursor Down (CUD) |
| n (default 1) | C | Cursor Forward (CUF) |
| n (default 1) | D | Cursor Backward (CUB) |
| n (default 1) | E | Cursor Next Line (CNL) |
| n (default 1) | F | Cursor Previous Line (CPL) |
| n (default 1) | G | Cursor Horizontal Absolute (CHA) |
| row;col (default 1;1) | H | Cursor Position (CUP) |
| row;col (default 1;1) | f | Horizontal/Vertical Position (HVP) |
Screen Erasing Commands
| Parameters | Action |
|---|---|
| 0 | Erase from cursor to end of screen |
| 1 | Erase from beginning of screen to cursor |
| 2 | Erase entire screen |
Scrolling Commands
| Parameter | Command |
|---|---|
| n(default 1) | J |
| n(default 1) | T |
comments