mirror of
https://github.com/johnkerl/miller.git
synced 2026-07-18 00:45:47 +00:00
Add unicode printing support for barred output (#1984)
This commit is contained in:
parent
4535922db0
commit
d9ee24460c
3 changed files with 81 additions and 23 deletions
|
|
@ -540,6 +540,16 @@ var PPRINTOnlyFlagSection = FlagSection{
|
|||
},
|
||||
},
|
||||
|
||||
{
|
||||
name: "--barred-unicode",
|
||||
help: "Uses unicode printing chars for barred output",
|
||||
parser: func(args []string, argc int, pargi *int, options *TOptions) {
|
||||
options.WriterOptions.BarredPprintOutput = true
|
||||
options.WriterOptions.BarredUseUnicode = true
|
||||
*pargi += 1
|
||||
},
|
||||
},
|
||||
|
||||
{
|
||||
name: "--barred-input",
|
||||
help: "When used in conjunction with --pprint, accepts barred input.",
|
||||
|
|
|
|||
|
|
@ -96,6 +96,7 @@ type TWriterOptions struct {
|
|||
|
||||
HeaderlessOutput bool
|
||||
BarredPprintOutput bool
|
||||
BarredUseUnicode bool
|
||||
RightAlignedPPRINTOutput bool
|
||||
RightAlignedXTABOutput bool
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue