summaryrefslogtreecommitdiff
path: root/src/shared/util.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-11-22 19:18:52 +0100
committerLennart Poettering <lennart@poettering.net>2013-11-22 19:27:56 +0100
commitdbc2c080debdc45683bc5534e327455d4fbbbea7 (patch)
tree7f18e82c9012d46486e831bf8fbc11bcfe7332a4 /src/shared/util.h
parent92c1622e14dd99890928b1a1596e4a670b31a7ff (diff)
systemctl: indicate in list-dependencies whether a unit is already running
Diffstat (limited to 'src/shared/util.h')
-rw-r--r--src/shared/util.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/shared/util.h b/src/shared/util.h
index 00d2364c61..e46438c92d 100644
--- a/src/shared/util.h
+++ b/src/shared/util.h
@@ -395,6 +395,10 @@ static inline const char *ansi_highlight_green(void) {
return on_tty() ? ANSI_HIGHLIGHT_GREEN_ON : "";
}
+static inline const char *ansi_highlight_yellow(void) {
+ return on_tty() ? ANSI_HIGHLIGHT_YELLOW_ON : "";
+}
+
static inline const char *ansi_highlight_off(void) {
return on_tty() ? ANSI_HIGHLIGHT_OFF : "";
}