Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CursorMove ¶
CursorMove moves the cursor n times in the direction d.
func CursorRestorePosition ¶
func CursorRestorePosition()
CursorRestorePosition restores the cursor position/state.
func CursorSavePosition ¶
func CursorSavePosition()
CursorSavePosition saves the cursor position/state.
Types ¶
type Direction ¶
type Direction string
Direction constants are to be used with CursorMove.
const ( // Up moves the cursor up. Up Direction = "A" // Down moves the cursor down. Down Direction = "B" // Forward moves the cursor forward. Forward Direction = "C" // Backward moves the cursor backward. Backward Direction = "D" // NextLine cursor to beginning of the line next line. NextLine Direction = "E" // PreviousLine cursor to beginning of the line previous line. PreviousLine Direction = "F" // HorizontalAbsolute the cursor to the specified column. HorizontalAbsolute Direction = "G" )
type ImageWriter ¶
type ImageWriter struct { Name string Width int Height int // contains filtered or unexported fields }
ImageWriter is a writer that write into iTerm2 terminal the PNG data written to it.
func (*ImageWriter) Close ¶
func (w *ImageWriter) Close() error
Close flushes the image to the terminal and close the writer.
Click to show internal directories.
Click to hide internal directories.