Documentation ¶
Index ¶
- type Terminal
- func (t *Terminal) BreakCheck() bool
- func (t *Terminal) Cls()
- func (t *Terminal) GetCursor() (int, int)
- func (t *Terminal) Locate(row, col int)
- func (t *Terminal) Log(msg string)
- func (t *Terminal) Print(msg string)
- func (t *Terminal) Println(msg string)
- func (t *Terminal) Read(col, row, len int) string
- func (t *Terminal) ReadKeys(count int) []byte
- func (t *Terminal) SoundBell()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Terminal ¶
type Terminal struct {
// contains filtered or unexported fields
}
Terminal holds the terminal instance and provides io abilities
func (*Terminal) BreakCheck ¶
returns true if CTRL+C has been seen if it has flag is cleared before returning
func (*Terminal) GetCursor ¶
GetCursor retrieves the current cursor position NOTE: Cursor position is based on the upper left position being 0,0
func (*Terminal) Locate ¶
Locate moves the cursor to the passed row/col NOTE: When issuing the Locate sequence, the upper left screen position is 1,1
func (*Terminal) Print ¶
Print sends the passed string to the terminal at the current cursor position
Click to show internal directories.
Click to hide internal directories.