readline
readline copied to clipboard
Readline is a pure go(golang) implementation for GNU-Readline kind library
This is simply the fix from #112 . I can confirm this fixes the behaviour on Windows 10 in Powershell.
This fix is for single line (idxLine==0) case only.
``` ================== WARNING: DATA RACE Write at 0x0000017ecc40 by goroutine 57: github.com/chzyer/readline.DefaultOnWidthChanged() /home/runner/go/pkg/mod/github.com/chzyer/[email protected]/utils_unix.go:68 +0x30 github.com/chzyer/readline.NewOperation() /home/runner/go/pkg/mod/github.com/chzyer/[email protected]/operation.go:82 +0x84c github.com/chzyer/readline.(*Terminal).Readline() /home/runner/go/pkg/mod/github.com/chzyer/[email protected]/terminal.go:95 +0x5b github.com/chzyer/readline.NewEx() /home/runner/go/pkg/mod/github.com/chzyer/[email protected]/readline.go:167 +0x41 github.com/manifoldco/promptui.(*Prompt).Run() /home/runner/go/pkg/mod/github.com/kylecarbs/[email protected][119](https://github.com/coder/coder/runs/5152098085?check_suite_focus=true#step:7:119)0244-d8f2159af2b2/prompt.go:142 +0x35a github.com/coder/coder/cli.prompt() /home/runner/work/coder/coder/cli/root.go:178 +0x9b2 github.com/coder/coder/cli.projectCreate.func1()...
If [`Operation.SetConfig()`](https://github.com/chzyer/readline/blob/2972be24d48e78746da79ba8e24e8b488c9880de/operation.go#L452) is called on already active readline instance (that e.g. read some lines), this may lead to data race between updating [`Operation.history`](https://github.com/chzyer/readline/blob/2972be24d48e78746da79ba8e24e8b488c9880de/operation.go#L257) in `ioloop()` and [resetting history](https://github.com/chzyer/readline/blob/2972be24d48e78746da79ba8e24e8b488c9880de/operation.go#L469) in `SetConfig()`,...
### 1.The go code: ```go rl, err := readline.New("> ") if err != nil { fmt.Println("ERROR:",err) return } defer rl.Close() if str, err := rl.Readline(); err == nil { fmt.Println(str)...
I'm aware this project is no longer maintained, and I'm not sure if maybe another readline alternative could solve that issue. The problem I have is when a TCP connection...
Typing beyond end of line, ending up on a new line and then moving back with C-b or M-b screws up the redrawing. The input line keeps moving up the...
Long story short, I have a terminal using this library and one of the options connects to a remote CLI listening on some port using this library. I can successfully...
For example, the command may be: get 0 status get 0 config get 1 status get 1 config The first cmd get is fix, the second cmd is not fix,...
Added power support for the travis.yml file with ppc64le. This is part of the Ubuntu distribution for ppc64le. This helps us simplify testing later when distributions are re-building and re-releasing.