From 8255430754d3836b5f4713733341d6e2e8bd8b98 Mon Sep 17 00:00:00 2001 From: Tomsod M Date: Sun, 20 May 2018 18:58:58 +0300 Subject: show-status: add newline to ephemeral messages Fixes #6712. The newline is later reversed, naturally. --- src/basic/terminal-util.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/basic/terminal-util.h') diff --git a/src/basic/terminal-util.h b/src/basic/terminal-util.h index c0bd0e67a6..38c382c47c 100644 --- a/src/basic/terminal-util.h +++ b/src/basic/terminal-util.h @@ -50,6 +50,9 @@ /* Erase characters until the end of the line */ #define ANSI_ERASE_TO_END_OF_LINE "\x1B[K" +/* Move cursor up one line */ +#define ANSI_REVERSE_LINEFEED "\x1BM" + /* Set cursor to top left corner and clear screen */ #define ANSI_HOME_CLEAR "\x1B[H\x1B[2J" -- cgit v1.2.1