Package: lsb-base
Version: 10.2019051400
Severity: wishlist
File: /lib/lsb/init-functions


Dear Maintainer,

please change output format of logging functions, provided by
`/lib/lsb/init-functions'.

Currently, status marker -- green [ok], red [FAIL], blue [warn], etc. -- is
printed at the start of terminal line.

It causes numerous glitches. Here is incomplete list of them.  For sake of
brevity, I will talk about [ok] marker only. Other markers behave in same way.

 * If message contains newline, [ok] marker will displace message text.
   Before:

     [..] This is
     very important message

   After:

     [..] This is
     [ok] important message

   Expected:
     [ok] This is
     very important message

 * If message is longer then terminal width, it will be span several terminal
   lines, causing problem described above.

Please, change format to following:

  Before:

  This is very important message...

  After:

  This is very important message... ok

If message spans several lines, it will look like following:

  This is
  very important message... ok

Aligning markers on right border of terminal will cause glitches when message
length is equal to terminal width, so please don't.

  Before:

  This is long message ...

  After:

  This is long message .ok

Attachment: pgpF8BxJDxkCS.pgp
Description: PGP signature

Reply via email to