From 69bc783ff9ebc2344dab14ef7bd140c87d31733b Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Mon, 20 Apr 2020 14:20:46 -0700 Subject: Slightly optimized column rendering by using the sequence for moving column position instead of row,col --- bterm.h | 1 + 1 file changed, 1 insertion(+) (limited to 'bterm.h') diff --git a/bterm.h b/bterm.h index 79183a1..9ab9b2f 100644 --- a/bterm.h +++ b/bterm.h @@ -76,6 +76,7 @@ typedef enum { #define T_OFF(opt) "\033[?" opt "l" #define move_cursor(f, x, y) fprintf((f), "\033[%d;%dH", (int)(y)+1, (int)(x)+1) +#define move_cursor_col(f, x) fprintf((f), "\033[%d`", (int)(x)+1) typedef struct { int key; -- cgit v1.2.3