readline
readline copied to clipboard
Readline is a pure go(golang) implementation for GNU-Readline kind library
Client of the library cannot distinguish Ctrl+D and Delete keys. Both of them return io.EOF for empty line. But it would be great to continue readline loop with Delete on...
**Steps to reproduce problem**: 1. Input `aaa` 2. Press `^A`(Ctrl+A) to move cursor to the beginning of the line 3. Press Delete key 4 times Here's the code I used:...
If I press Tab and the string is completed, the completer adds a unwanted space character to the output. I workarounded it by adding each option twice with different postfix,...
I have a problem where occasionally readline will deadlock. I'm using readline in a couple of different simple CLI tools. There's nothing too unusual or fancy about the usage. I...
This package is an indirect dependency of Caddy 2, and is preventing Caddy 2 from being available for Plan 9: ``` # github.com/chzyer/readline ../../../../../go/pkg/mod/github.com/chzyer/[email protected]/operation.go:234:4: undefined: ClearScreen ../../../../../go/pkg/mod/github.com/chzyer/[email protected]/readline.go:129:20: undefined: GetScreenWidth ../../../../../go/pkg/mod/github.com/chzyer/[email protected]/readline.go:132:22:...
i tried to paste text like that to console in windows: dd io.go '{"Type":"channel","Content":"f1"}' '{"len":10}' but not all text were pasted and readline started to work incorrectly unteel next program...
With following example code, Readline() cleans up the last line "This line will be cleaned up after 10 seconds...". I think it's better to print the next prompt just after...
As this project seems to be not more maintained, is there any alternative? Many thanks
These functions would bypass calling RuneBuffer.Refresh when Terminal.IsReading(), but this leads to a race condition when another goroutine is just beginning to read. The result is that the prompt is...
On many systems <ctrl>+<left arrow> and <ctrl>+<right arrow> are mapped to make the cursor move a word back and forward respectively. This is done by mapping the `\e[1;5C` and `\e[1;5D`...