]> git.ipfire.org Git - thirdparty/util-linux.git/commit
column: ignore non-printable chars
authorKarel Zak <kzak@redhat.com>
Wed, 13 Jan 2016 09:08:39 +0000 (10:08 +0100)
committerKarel Zak <kzak@redhat.com>
Wed, 13 Jan 2016 09:08:39 +0000 (10:08 +0100)
commit683ddbd5c4a7c28db878bd5b2387c7cff2504967
tree8ea0a2c0b45c054926e7117aff3dd3a9b1013f27
parent6426f926ee3d23fe416cd82e0325f249ba973798
column: ignore non-printable chars

echo -e '\033[33mb\033[mXFoo\n\033[33mbar\033[mXFoo' | column -s X -t

old version:

b   Foo
bar   Foo

fixed version:

b    Foo
bar  Foo

References: https://github.com/karelzak/util-linux/issues/252
Signed-off-by: Karel Zak <kzak@redhat.com>
text-utils/column.c