Documentation ¶
Overview ¶
Package goterm provides a simple terminal emulator.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RuneTwoWidthTables = []*unicode.RangeTable{ unicode.Han, unicode.Hangul, unicode.Hiragana, unicode.Katakana, {R16: []unicode.Range16{{0x3000, 0x303f, 1}}}, {R16: []unicode.Range16{{0x30a0, 0x30ff, 1}}}, {R16: []unicode.Range16{{0xff01, 0xff60, 1}}}, }
RuneTwoWidthTables is the slice of unicode.RangeTable containing the unicode characters whose display width is two. Notice that, hankaku (half-width) katakana (in Japanese) characters are contained in unicode.Katakana, but the display width should be one.
View Source
var RuneZeroWidthTables = []*unicode.RangeTable{ unicode.Mn, unicode.Me, unicode.Cc, unicode.Cf, }
RuneZeroWidthTables is the slice of unicode.RangeTable containing the unicode characters whose display width is zero.
Functions ¶
func IsTerminal ¶
IsTerminal returns ture if w writes to a terminal.
Types ¶
type Config ¶
type Config struct { // History indicates whether the input history is enabled. History bool }
Config is configure settings for a Term.
Click to show internal directories.
Click to hide internal directories.