Skip to content

Comments

Add unicode printing support for barred output#1984

Merged
johnkerl merged 1 commit intojohnkerl:mainfrom
balki:barred-unicode
Feb 22, 2026
Merged

Add unicode printing support for barred output#1984
johnkerl merged 1 commit intojohnkerl:mainfrom
balki:barred-unicode

Conversation

@balki
Copy link
Contributor

@balki balki commented Feb 22, 2026

Add flag --barred-unicode that makes the output table prettier using unicode characters.

@johnkerl

  1. Please confirm if the cli flag and implementation looks good. I will update docs and add tests.
  2. Should there be reader support as well. If so, can that be deferred for later?
❯ echo "foo,bar\n1,2" | go run cmd/mlr/main.go --c2p --barred cat
+-----+-----+
| foo | bar |
+-----+-----+
| 1   | 2   |
+-----+-----+

miller on  barred-unicode via 🐹 v1.26.0-X:nodwarf5
❯ echo "foo,bar\n1,2" | go run cmd/mlr/main.go --c2p --barred-unicode cat
┌─────┬─────┐
│ foo │ bar │
├─────┼─────┤
│ 1   │ 2   │
└─────┴─────┘

miller on  barred-unicode via 🐹 v1.26.0-X:nodwarf5
❯ echo "foo,bar\n1,2" | go run cmd/mlr/main.go --c2p --barred cat | cat
+-----+-----+
| foo | bar |
+-----+-----+
| 1   | 2   |
+-----+-----+

miller on  barred-unicode via 🐹 v1.26.0-X:nodwarf5
❯ echo "foo,bar\n1,2" | go run cmd/mlr/main.go --c2p --barred-unicode cat | cat
┌─────┬─────┐
│ foo │ bar │
├─────┼─────┤
│ 1   │ 2   │
└─────┴─────┘

image

@johnkerl johnkerl merged commit d9ee244 into johnkerl:main Feb 22, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants