Bug#934502: lsb-base: avoid '\r' in logging functions
Dmitry Bogatov
KAction at debian.org
Sun Aug 11 18:47:35 BST 2019
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://www.chiark.greenend.org.uk/pipermail/debian-init-diversity/attachments/20190811/86615c9b/attachment.sig>
More information about the Debian-init-diversity
mailing list