Documentation ¶
Index ¶
- type EscapeFilter
- type Screen
- func (s *Screen) Col() int
- func (s *Screen) EraseLine()
- func (s *Screen) EraseLineAfter()
- func (s *Screen) EraseLineBefore()
- func (s *Screen) EraseScreen()
- func (s *Screen) EraseScreenAfter()
- func (s *Screen) EraseScreenBefore()
- func (s *Screen) MoveCursor(row int, col int)
- func (s *Screen) NextTabStop(n int) int
- func (s *Screen) PrevTabStop(n int) int
- func (s *Screen) PutRune(r rune)
- func (s *Screen) Row() int
- func (s *Screen) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EscapeFilter ¶
type EscapeFilter struct {
// contains filtered or unexported fields
}
EscapeFilter stores virtual screen and process text files contains ANSI escape code.
func (*EscapeFilter) Load ¶
func (f *EscapeFilter) Load(rd io.Reader) error
Load loads contents from the Reader.
func (*EscapeFilter) String ¶
func (f *EscapeFilter) String() string
String returns the current screen content.
type Screen ¶
type Screen struct {
// contains filtered or unexported fields
}
Screen stores character content and a cursor position.
func (*Screen) EraseLine ¶
func (s *Screen) EraseLine()
EraseLineBefore erases characters in the current row.
func (*Screen) EraseLineAfter ¶
func (s *Screen) EraseLineAfter()
EraseLineAfter erases characters from the current position to the end of the line.
func (*Screen) EraseLineBefore ¶
func (s *Screen) EraseLineBefore()
EraseLineBefore erases characters from the current position to the beginning of the line.
func (*Screen) EraseScreen ¶
func (s *Screen) EraseScreen()
EraseScreen erases characters in the entire screen.
func (*Screen) EraseScreenAfter ¶
func (s *Screen) EraseScreenAfter()
EraseScreenAfter erases characters from the current position to the end of the screen.
func (*Screen) EraseScreenBefore ¶
func (s *Screen) EraseScreenBefore()
EraseScreenBefore erases characters from the current position to the beginning of the screen.
func (*Screen) MoveCursor ¶
MoveCursor moves the cursor position to (row, col).
func (*Screen) NextTabStop ¶
NextTabStop returns the n-th next tab stop from the current position.
func (*Screen) PrevTabStop ¶
PrevTabStop returns the n-th last tab stop from the current position.