Documentation ¶
Overview ¶
Package terminal implements terminal evaluation functions.
Index ¶
Constants ¶
View Source
const ( RETURN = '\r' NEWLINE = '\n' BS = 0x08 ESCAPE = 0x1B CSI = '[' CUB = 'D' ELINE = 'K' SGR = 'm' CUP = 'H' ED = 'J' )
https://xfree86.org/4.8.0/ctlseqs.html https://gist.github.com/fnky/458719343aabd01cfb17a3a4f7296797
Variables ¶
This section is empty.
Functions ¶
func ParseDropLastReturn ¶ added in v1.0.33
ParseDropLastReturn evaluates ANSI escape sequences and apply logic related to prompt cut
Types ¶
Click to show internal directories.
Click to hide internal directories.