]> git.ipfire.org Git - thirdparty/util-linux.git/commit
write: make timestamp to be obviously just a clock time
authorSami Kerola <kerolasa@iki.fi>
Sat, 7 May 2016 20:07:44 +0000 (21:07 +0100)
committerSami Kerola <kerolasa@iki.fi>
Fri, 1 Jul 2016 21:07:02 +0000 (22:07 +0100)
commita07943926612bd62bf302b50537616b0917c8a63
tree5c18f2c25fba93fdb78359ffcc8b7f5d991fbb79
parentc1d0a95eea8a1e3f05d78f734f0c93ef97b6b7e5
write: make timestamp to be obviously just a clock time

By looking the code one will had hard time knowing that a slice of ctime()
from characters 11 to 16 is HH:MM time format.  Use of strftime("%H:%M")
makes this a lot less mysterious.

In same go make \007 hex printouts to be \a that is the same thing: alarm.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
term-utils/write.c