Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CRLF = []byte{'\r', '\n'}
Functions ¶
This section is empty.
Types ¶
type KeyPress ¶
type KeyPress byte
const ( KeyNone KeyPress = 0 // None KeyCtrlC KeyPress = '\x03' // Ctrl+C KeyCtrlD KeyPress = '\x04' // Ctrl+D KeyCtrlE KeyPress = '\x05' // Ctrl+E KeyCtrlL KeyPress = '\x0c' // Ctrl+L KeyCtrlO KeyPress = '\x0f' // Ctrl+O KeyCtrlR KeyPress = '\x12' // Ctrl+R KeyCtrlS KeyPress = '\x13' // Ctrl+S KeyCtrlT KeyPress = '\x14' // Ctrl+T KeyA KeyPress = 'A' KeyE KeyPress = 'E' KeyH KeyPress = 'H' KeyI KeyPress = 'I' KeyN KeyPress = 'N' KeyP KeyPress = 'P' KeyR KeyPress = 'R' )
key representation
type RawTerm ¶
type RawTerm struct {
// contains filtered or unexported fields
}
rawTerminal wraps an io.Writer, converting \n to \r\n
func NewRawTerm ¶
func NewRawTerm() *RawTerm
func (*RawTerm) ReadKeyPress ¶
Click to show internal directories.
Click to hide internal directories.