Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type VisFlag ¶
type VisFlag uint
VisFlag manipulates how the characters are encoded/decoded
const ( VisOctal VisFlag = (1 << iota) // VIS_OCTAL: Use octal \ddd format. VisCStyle // VIS_CSTYLE: Use \[nrft0..] where appropriate. VisSpace // VIS_SP: Also encode space. VisTab // VIS_TAB: Also encode tab. VisNewline // VIS_NL: Also encode newline. VisSafe // VIS_SAFE: Encode unsafe characters. VisNoSlash // VIS_NOSLASH: Inhibit printing '\'. VisHTTPStyle // VIS_HTTPSTYLE: HTTP-style escape %xx. VisGlob // VIS_GLOB: Encode glob(3) magics. VisWhite VisFlag = (VisSpace | VisTab | VisNewline) )
vis() has a variety of flags when deciding what encodings to use. While mtree only uses one set of flags, implementing them all is necessary in order to have compatibility with BSD's vis() and unvis() commands.
Click to show internal directories.
Click to hide internal directories.