interactive: Introduce i9e_print_status_bar().
authorAndre Noll <maan@systemlinux.org>
Thu, 12 Apr 2012 04:20:42 +0000 (06:20 +0200)
committerAndre Noll <maan@systemlinux.org>
Sun, 18 Nov 2012 19:28:28 +0000 (20:28 +0100)
commite541d7bea7febed8cb9f8a65ae4bd9bdd1b5c8a0
tree199ec6f8639f3690d7e8cd60bbd4008295c9a7b8
parent901f6642a51445accaf88ab80f6bc80757f74149
interactive: Introduce i9e_print_status_bar().

When operating in single key mode, the users of the i9e API
may write a single line, called status bar, to stderr.

This patch adds a new public function to the i9e subsystem for
this purpose. It honors the width of the terminal and shortens
the given status bar string to fit in one line if necessary.
interactive.c
interactive.h