From cf43c08d479fcaa547f85432baae820697c2b6e6 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Tue, 14 Jun 2016 21:09:31 +0200 Subject: Using UTF-8 symbols for container status. Signed-off-by: Daniel Baumann --- lib/container/list | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/lib/container/list b/lib/container/list index 506340e..e19bfae 100755 --- a/lib/container/list +++ b/lib/container/list @@ -101,7 +101,7 @@ case "${FORMAT}" in NORMAL="$(tput sgr0)" cat << EOF -Container IPv4 Address(es) Status + Container IPv4 Address(es) -------------------------------------------------------------------------------- EOF @@ -152,12 +152,12 @@ do case "${STATE}" in running) - STATUS="${GREEN}started${NORMAL}" + STATUS="${GREEN}✓${NORMAL}" ;; *) - STATUS="${RED}stopped${NORMAL}" + STATUS="${RED}✕${NORMAL}" ;; esac @@ -176,11 +176,11 @@ do case "${FIRST_LINE}" in true) FIRST_LINE="false" - printf "%-69s %-29s %-7s\n" "${BLUE}${CONTAINER}${NORMAL}" "${YELLOW}${ADDRESS}${NORMAL}" " ${STATUS}" + printf "%-80s %-29s\n" "${STATUS} ${BLUE}${CONTAINER}${NORMAL}" "${YELLOW}${ADDRESS}${NORMAL}" ;; *) - printf "%-54s %-29s\n" "" "${ADDRESS}" + printf "%-80s %-29s\n" "" "${ADDRESS}" ;; esac done @@ -204,11 +204,11 @@ do case "${FIRST_LINE}" in true) FIRST_LINE="false" - printf "%-69s %-29s %-7s\n" "${BLUE}${CONTAINER}${NORMAL}" "${YELLOW}${ADDRESS}${NORMAL}" " ${STATUS}" + printf "%-80s %-29s\n" "${STATUS} ${BLUE}${CONTAINER}${NORMAL}" "${YELLOW}${ADDRESS}${NORMAL}" ;; *) - printf "%-54s %-29s\n" "" "${ADDRESS}" + printf "%-80s %-29s\n" "" "${ADDRESS}" ;; esac done @@ -237,11 +237,11 @@ do case "${FIRST_LINE}" in true) FIRST_LINE="false" - printf "%-69s %-29s %-7s\n" "${BLUE}${CONTAINER}${NORMAL}" "${YELLOW}${ADDRESS}${NORMAL}" " ${STATUS}" + printf "%-80s %-29s\n" "${STATUS} ${BLUE}${CONTAINER}${NORMAL}" "${YELLOW}${ADDRESS}${NORMAL}" ;; *) - printf "%-54s %-29s\n" "" "${ADDRESS}" + printf "%-80s %-29s\n" "" "${ADDRESS}" ;; esac done -- cgit v1.2.3