summaryrefslogtreecommitdiff
path: root/src/basic/terminal-util.h
diff options
context:
space:
mode:
authorTomsod M <tomsod-m@ya.ru>2018-05-20 18:58:58 +0300
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-07-06 16:35:22 +0200
commit8255430754d3836b5f4713733341d6e2e8bd8b98 (patch)
tree3a4c6ccea53d6d56ac578478d3e7e1bdbb2cfa4e /src/basic/terminal-util.h
parent1448dfa6bfa0232f4aa0ee684452770eaa26014f (diff)
downloadsystemd-8255430754d3836b5f4713733341d6e2e8bd8b98.tar.gz
show-status: add newline to ephemeral messages
Fixes #6712. The newline is later reversed, naturally.
Diffstat (limited to 'src/basic/terminal-util.h')
-rw-r--r--src/basic/terminal-util.h3
1 files changed, 3 insertions, 0 deletions
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"