Tom Rini | 83d290c | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Pali Rohár | e7abe91 | 2013-03-23 14:53:08 +0000 | [diff] [blame] | 2 | /* |
| 3 | * (C) Copyright 2012 |
Pali Rohár | 5308665 | 2020-04-01 00:35:08 +0200 | [diff] [blame] | 4 | * Pali Rohár <pali@kernel.org> |
Pali Rohár | e7abe91 | 2013-03-23 14:53:08 +0000 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | /* |
| 8 | * ANSI terminal |
| 9 | */ |
| 10 | |
| 11 | #define ANSI_CURSOR_UP "\e[%dA" |
| 12 | #define ANSI_CURSOR_DOWN "\e[%dB" |
| 13 | #define ANSI_CURSOR_FORWARD "\e[%dC" |
| 14 | #define ANSI_CURSOR_BACK "\e[%dD" |
| 15 | #define ANSI_CURSOR_NEXTLINE "\e[%dE" |
| 16 | #define ANSI_CURSOR_PREVIOUSLINE "\e[%dF" |
| 17 | #define ANSI_CURSOR_COLUMN "\e[%dG" |
| 18 | #define ANSI_CURSOR_POSITION "\e[%d;%dH" |
| 19 | #define ANSI_CURSOR_SHOW "\e[?25h" |
| 20 | #define ANSI_CURSOR_HIDE "\e[?25l" |
| 21 | #define ANSI_CLEAR_CONSOLE "\e[2J" |
| 22 | #define ANSI_CLEAR_LINE_TO_END "\e[0K" |
| 23 | #define ANSI_CLEAR_LINE "\e[2K" |
| 24 | #define ANSI_COLOR_RESET "\e[0m" |
| 25 | #define ANSI_COLOR_REVERSE "\e[7m" |