Source File
codes.go
Belonging Package
github.com/reeflective/readline/internal/term
package term// Terminal control sequences.const (NewlineReturn = "\r\n"ClearLineAfter = "\x1b[0K"ClearLineBefore = "\x1b[1K"ClearLine = "\x1b[2K"ClearScreenBelow = "\x1b[0J"ClearScreen = "\x1b[2J" // Clears screen, preserving scroll bufferClearDisplay = "\x1b[3J" // Clears screen fully, wipes the scroll bufferCursorTopLeft = "\x1b[H"SaveCursorPos = "\x1b7"RestoreCursorPos = "\x1b8"HideCursor = "\x1b[?25l"ShowCursor = "\x1b[?25h")// Some core keys needed by some stuff.var (ArrowUp = string([]byte{27, 91, 65}) // ^[[AArrowDown = string([]byte{27, 91, 66}) // ^[[BArrowRight = string([]byte{27, 91, 67}) // ^[[CArrowLeft = string([]byte{27, 91, 68}) // ^[[D)
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |