bzr doesn't detect correct terminal width
Bug #3507 reported by
Martin Pool
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Fix Released
|
Low
|
Martin Pool |
Bug Description
bzr needs to know the terminal width for e.g. drawing the progress bar and (in some contexts) truncating log messages to a single line. It often doesn't do so on Unix and falls back to the default of 80 columns.
Most modern shells/terminals will have $COLUMNS set to the right value, but it is sometimes not exported, so Python can't see it. One fix is to tell people to export it from their rc file.
Another approach is to use curses to query the window size.
To post a comment you must log in.
A good workaround for the moment is to just
export COLUMNS