Matthias Clasen
e76761e827
Don't crash if there's more titles than columns
...
This was crashing when running flatpak list for
an empty installation.
2017-05-03 12:40:14 +02:00
Alexander Larsson
fb6695e9a4
Add macros for common ANSI tty escape codes
2017-05-03 11:17:41 +02:00
Matthias Clasen
ea93b3977d
table printer: Use localeconv for decimal point
...
This gives us a chance of working correctly in exotic locales.
2017-05-03 11:06:43 +02:00
Matthias Clasen
5635adea29
Add table printer api for number columns
...
This is better than open-coding the decimal point
check in all the callers.
2017-05-03 11:06:43 +02:00
Matthias Clasen
b07240f525
Use the new output helper
...
Instead of open-coding isatty(), use flatpak_fancy_output().
2017-05-03 11:06:43 +02:00
Matthias Clasen
62b8ae2953
table printer: move to its own source files
...
This is a pretty standalone object, and it is nicer to
have it in its own files. All users have been updated
to include the new flatpak-table-printer.h header.
2017-05-02 14:56:04 +02:00