Skip to content

Update COLUMNS env var when fixing column width #254

@mjpieters

Description

@mjpieters

I love the new --columns option, but when a command adjusts its output based on the current terminal size you get rather ugly output:

cmd-help

(generated with termshot --columns 100 --show-cmd --filename assets/cmd-help.png -- 'pyright-analysis --help')

If I also set COLUMNS the output becomes:

cmd-help

(generated with COLUMNS=100 termshot --columns 100 --show-cmd --filename assets/cmd-help.png -- 'pyright-analysis --help')

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingenhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions