Versions in this module Expand all Collapse all v1 v1.8.9 Mar 12, 2020 v1.8.8 Mar 12, 2020 Changes in this version + const IgnoreKey + const KeyDeleteLine + const KeyDeleteWord + const KeyEscape + const SpecialKeyDelete + const SpecialKeyEnd + const SpecialKeyHome + const VK_DELETE — windows/amd64 + const VK_END — windows/amd64 + const VK_HOME — windows/amd64 + type BufferedReader struct + Buffer *bytes.Buffer + In io.Reader + func (br *BufferedReader) Read(p []byte) (int, error) type Coord + func (cur Coord) CursorIsAtLineBegin() bool + func (cur Coord) CursorIsAtLineEnd(size *Coord) bool + type Cursor struct + In FileReader + Out FileWriter + func (c *Cursor) Back(n int) + func (c *Cursor) Down(n int) + func (c *Cursor) Forward(n int) + func (c *Cursor) Hide() + func (c *Cursor) HorizontalAbsolute(x int) + func (c *Cursor) Location(buf *bytes.Buffer) (*Coord, error) + func (c *Cursor) Location(buf *bytes.Buffer) (Coord, error) + func (c *Cursor) Move(x int, y int) + func (c *Cursor) MoveNextLine(cur *Coord, terminalSize *Coord) + func (c *Cursor) MoveNextLine(cur Coord, terminalSize *Coord) + func (c *Cursor) NextLine(n int) + func (c *Cursor) PreviousLine(n int) + func (c *Cursor) Restore() + func (c *Cursor) Save() + func (c *Cursor) Show() + func (c *Cursor) Size(buf *bytes.Buffer) (*Coord, error) + func (c *Cursor) Up(n int) + type FileReader interface + Fd func() uintptr + type FileWriter interface + Fd func() uintptr type RuneReader + func (rr *RuneReader) Buffer() *bytes.Buffer type Short — darwin/amd64, js/wasm, linux/amd64 + var COORDINATE_SYSTEM_BEGIN Short = 1 type Short — windows/amd64 + var COORDINATE_SYSTEM_BEGIN Short = 0 + type Stdio struct + Err io.Writer + In FileReader + Out FileWriter v1.4.2 Feb 27, 2018 v1.4.1 Nov 11, 2017 Changes in this version + const ENABLE_ECHO_INPUT — windows/amd64 + const ENABLE_LINE_INPUT — windows/amd64 + const ENABLE_PROCESSED_INPUT — windows/amd64 + const EVENT_KEY — windows/amd64 + const KeyArrowDown + const KeyArrowLeft + const KeyArrowRight + const KeyArrowUp + const KeyBackspace + const KeyDelete + const KeyEndTransmission + const KeyEnter + const KeyInterrupt + const KeySpace + const LEFT_CTRL_PRESSED — windows/amd64 + const RIGHT_CTRL_PRESSED — windows/amd64 + const VK_DOWN — windows/amd64 + const VK_LEFT — windows/amd64 + const VK_RIGHT — windows/amd64 + const VK_UP — windows/amd64 + var InterruptErr = errors.New("interrupt") + var Stdout = NewAnsiStdout() + func CursorBack(n int) + func CursorDown(n int) + func CursorForward(n int) + func CursorHide() + func CursorHorizontalAbsolute(x int) + func CursorMove(x int, y int) — darwin/amd64, js/wasm, linux/amd64 + func CursorNextLine(n int) + func CursorPreviousLine(n int) + func CursorShow() + func CursorUp(n int) + func EraseLine(mode EraseLineMode) + func NewAnsiStderr() io.Writer + func NewAnsiStdout() io.Writer + func Print(a ...interface{}) (n int, err error) + func Printf(format string, a ...interface{}) (n int, err error) + func Println(a ...interface{}) (n int, err error) + type Coord struct + X Short + Y Short + func CursorLocation() (*Coord, error) + func CursorLocation() (Coord, error) + func Size() (*Coord, error) + func Size() (Coord, error) + type EraseLineMode int + const ERASE_LINE_ALL + const ERASE_LINE_END + const ERASE_LINE_START + type RuneReader struct + Input *os.File + func NewRuneReader(input *os.File) *RuneReader + func (rr *RuneReader) ReadLine(mask rune) ([]rune, error) + func (rr *RuneReader) ReadRune() (rune, int, error) + func (rr *RuneReader) RestoreTermMode() error + func (rr *RuneReader) SetTermMode() error + type Short int16 + type Writer struct — windows/amd64 + func (w *Writer) Write(data []byte) (n int, err error)