liner icon indicating copy to clipboard operation
liner copied to clipboard

Pure Go line editor with history, inspired by linenoise

Results 18 liner issues
Sort by recently updated
recently updated
newest added

I'm running Debian (sid) with Alacritty as my terminal emulator. (I can also reproduce the issue below with Gnome Terminal.) If I call the `Prompt` method with a long string...

I'm evaluating line input modules to use for my Golang version of sqlcmd (github.com/microsoft/go-sqlcmd) So far `liner` looks like a good candidate except for this display glitch. I can't tell...

Would you consider adding an example for a prompt that auto completed file names on tab presses?

Feature Request

When I run the following minimal example on Manjaro Linux / xfce4-terminal (0.8.10) or on Mac OS X 10.14.6 / Terminal ```go package main import "github.com/peterh/liner" func main() { line...

Can we let the user exit raw mode through some public function (and then get back to it)? How would this be implemented?

In docker, all keyboard shortcuts will not work.

https://travis-ci.org and https://www.appveyor.com are two popular options for Linux/macOS and Windows respectively. Both integrate nicely with GitHub.

Feature Request

Sometimes, for example when `liner` is used to allow the user to choose from a few options, it would be useful to immediately print the available options, instead of waiting...

Usually in almost all circumstances `/dev/sdterr` is a TTY; meanwhile `/dev/stdin` and/or `/dev/stdout` can be redirected to files or pipes. (In fact if `/dev/stderr` is not a TTY, most likely...

Hi, I am looking for a way to move the cursor into a completed suggestion. For example, if I type `p` and it completes to `play("")`, I would like the...