aboutsummaryrefslogtreecommitdiff
path: root/bterm.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2020-04-20 14:20:46 -0700
committerBruce Hill <bruce@bruce-hill.com>2020-04-20 14:20:46 -0700
commit69bc783ff9ebc2344dab14ef7bd140c87d31733b (patch)
tree86634479e7c3959a58e3987780564acce51e7e32 /bterm.h
parent8eedc8b72620d8dc69da9296d79569375a1da5ba (diff)
Slightly optimized column rendering by using the sequence for moving
column position instead of row,col
Diffstat (limited to 'bterm.h')
-rw-r--r--bterm.h1
1 files changed, 1 insertions, 0 deletions
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;