Documentation
¶
Index ¶
Constants ¶
View Source
const ( ResetCursor EscapeCode = "\033[0G" // Move cursor to the beginning of the line HideCursor EscapeCode = "\033[?25l" // Hide cursor Red Color = "\033[31m" Reset Color = "\033[0m" Green Color = "\033[32m" Blue Color = "\033[34m" Cyan Color = "\033[36m" Yellow Color = "\033[33m" )
Variables ¶
This section is empty.
Functions ¶
func PrintColored ¶
PrintColored prints text in the specified color
func ProcessLine ¶
func ProcessLine(bracket, line string)
Types ¶
type EscapeCode ¶
type EscapeCode string
type HighlightedPager ¶
type HighlightedPager struct {
// contains filtered or unexported fields
}
func NewHighlightedPager ¶
func NewHighlightedPager(filename string, content io.Reader) *HighlightedPager
func (*HighlightedPager) Run ¶
func (hp *HighlightedPager) Run() error
Click to show internal directories.
Click to hide internal directories.