Add unicode printing support for barred output (#1984)

This commit is contained in:
Balki 2026-02-22 04:15:03 +00:00 committed by GitHub
parent 4535922db0
commit d9ee24460c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 81 additions and 23 deletions

View file

@ -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.",

View file

@ -96,6 +96,7 @@ type TWriterOptions struct {
HeaderlessOutput bool
BarredPprintOutput bool
BarredUseUnicode bool
RightAlignedPPRINTOutput bool
RightAlignedXTABOutput bool