Skip to content

Thin line number #2242

Answered by sharkdp
KaspianDev asked this question in Q&A
Discussion options

You must be logged in to vote

Partially. You can remove the changes style option (see help text for --style) which makes up one character:

bat --style=grid,snip,numbers,header …

You can also add

--style=grid,snip,numbers,header

to bats config file to make this permanent. But note that it will interfere with style-auto-detection, e.g. when piping the output to another process or a file.

The problem is the following: bat does not (and can not) know in advance how many lines an input might have. Imagine a scenario like some_program | bat where the input comes from a pipe. In order to be a (mostly) POSIX-compliant alternative to cat, we need to output the incoming text in a streaming kind of way. This is necessary if so…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by KaspianDev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants