From 89a10c4802dd898758122af147a818342c78133d Mon Sep 17 00:00:00 2001 From: "Collin J. Doering" Date: Thu, 15 Oct 2015 00:27:19 -0400 Subject: [PATCH] Add remaining ANSI escapes to ansi_escapes.h All ANSI escapes sequences except "Select graphic rendition" are supported. Signed-off-by: Collin J. Doering --- ansi_escapes.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/ansi_escapes.h b/ansi_escapes.h index ea86641..5f6c98c 100644 --- a/ansi_escapes.h +++ b/ansi_escapes.h @@ -40,3 +40,16 @@ #define SD(n) CSI #n "T" // Scroll down #define HVP(n,m) CSI #n ";" #m "f" // Horizontal and vertical position + +// #define SGR(n,m) CSI #n #m // Select graphic rendition + +#define AUX_ON CSI "5i" // AUX port on +#define AUX_OFF CSI "4i" // AUX port off + +// #define DSR CSI "6 n" // Device status report + +#define SCP CSI "s" // Save cursor position +#define RCP CSI "u" // Restore cursor position + +#define HIDE_CURSOR CSI "?25l" // DECTCEM: hide cursor +#define SHOW_CURSOR CSI "?25h" // DECTCEM: show cursor