Bug 7875 - tlctl doesn't respect terminal window size
Summary: tlctl doesn't respect terminal window size
Status: NEW
Alias: None
Product: ThinLinc
Classification: Unclassified
Component: Misc (show other bugs)
Version: trunk
Hardware: PC Unknown
: P2 Normal
Target Milestone: LowPrio
Assignee: Bugzilla mail exporter
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-03-30 13:57 CEST by Pierre Ossman
Modified: 2022-04-06 07:45 CEST (History)
0 users

See Also:
Acceptance Criteria:


Attachments

Description Pierre Ossman cendio 2022-03-30 13:57:48 CEST
tlctl currently has a hard coded assumption that the displaying terminal is the standard 80 columns. This creates two practical problems:

a) If the terminal is smaller then tables might get confusingly line wrapped rather than truncating contents to make things fit

b) If 80 columns is insufficient to show everything then the user cannot make the terminal larger to avoid truncating fields.

If tlctl is run from a shell then it will provide $COLUMNS for us. Not sure if it's sufficient to rely on that or if we also need to be able to directly query the tty.
Comment 1 Pierre Ossman cendio 2022-03-30 13:58:57 CEST
There is also the question of what width should be used if the output is not going to a terminal. E.g. when piping to a file to save things. Should we assume an infinite width at that point?

This might be relevant in combination with bug 7848.

Note You need to log in before you can comment on or make changes to this bug.