-
-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Legacy -c
option support
#23
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
-c
option in thelinux-utils
version ofcolumn
lets you control the output width of the table -- good for clipping at a certain length or dynamically usingtput cols
.However piping the table to something like
cut -c 1-$(tput cols)
causes overtrim because the control characters aren't interpreted as 0 width characters (I think), i.e.\e[41m
is counted as 6 characters instead of 0 and your line ends up 6 characters short of what it's supposed to be.I can't really find a good alternative for this clipping behavior with colors and I figure since it existed in the original someone might be willing to implement it here. I would submit a pull request myself but I've never used pearl.
The text was updated successfully, but these errors were encountered: