diff options
| author | 2026-06-29 03:00:12 -0500 | |
|---|---|---|
| committer | 2026-06-29 03:00:12 -0500 | |
| commit | 6bb84fe005fc151df1a67259242da9c0eaf3fe93 (patch) | |
| tree | 683d6e160bf48fd0c235635be874a8fef697402c /ppc/source/term.h | |
| parent | add new tests (diff) | |
begin work on pc side
Diffstat (limited to 'ppc/source/term.h')
| -rw-r--r-- | ppc/source/term.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ppc/source/term.h b/ppc/source/term.h new file mode 100644 index 0000000..cc65615 --- /dev/null +++ b/ppc/source/term.h @@ -0,0 +1,13 @@ +#ifndef EXITEST_TERM_H_INCLUDED +#define EXITEST_TERM_H_INCLUDED + +#include "macros.h" + +#define TERM_ESC "\x1b" +#define TERM_CSI(_s) TERM_ESC "[" _s +#define TERM_CLEAR TERM_CSI("2J") +#define TERM_CLEARLINE TERM_CSI("2K") +#define TERM_CUR_POS(_row, _col) TERM_CSI(STR(_row) ";" STR(_col) "f") +#define TERM_CUR_UP(_rows) TERM_CSI(STR(_rows) "A") + +#endif /* include guard */ |
