go-prompt icon indicating copy to clipboard operation
go-prompt copied to clipboard

Building powerful interactive prompts in Go, inspired by python-prompt-toolkit.

Results 114 go-prompt issues
Sort by recently updated
recently updated
newest added

I am looking a method that can change suggestion rendering style. I prefer the suggestion style that like network device, print suggestion line by line instead of a interactive list....

Added Alt+← and Alt+→ processing to the contents of [this pull request](https://github.com/c-bata/go-prompt/pull/112). For MacOS terminal emulators, Option + delete does not work with the default settings. Therefore, it is necessary...

# Bug reports Emojis appear to change the width of the suggestion block ## Expected Behavior *Please describe the behavior you are expecting* Like this but with emojis :) ![image](https://user-images.githubusercontent.com/6971318/97806922-08feff00-1c2c-11eb-894f-87be2ac4c9b2.png)...

bug

This bug is introduced by 20e0658bedf03de0604a1a4bf9c212b7a1e26970. Saving a *unix.Termios and then modifying it in SetRaw() makes the saved state useless. By restoring saveTermios type from *unix.Termios to unix.Termios, SetRaw() no...

Add SaveCursorPosition and RestoreCurcorPosition to output interface and use it in prepareArea Fix #70 ## TODO - [ ] test on Linux - [x] test on macOS

# Bug reports ``` [tsh][listeners] >>> start default-http2-listener [2022-05-06 20:33:28][INFO] Starting listener default-http2-listener [tsh][listeners] >>> [2022-05-06 20:33:28][ERROR] HTTP2Listener default-http2-listener start error: listen tcp 0.0.0.0:8989: bind: address already in use ```...

bug

This would allow this library to be used with https://github.com/gliderlabs/ssh/, for example.

enhancement

I don't see a way to retrieve the history, only a way to set it at program startup. I would like to persist history between sessions. I can implement persistence/restore...

Fixes file descriptor leak as described in #253 Reproduced by modifying `_example/simple-echo/main.go`, looping the body of the main function in order to observe multiple calls to `prompt.Input()`. "Exit" added for...

# Question I'm working on an application where users are able to execute commands on a server, for this I decided to use this project (great work by the way!),...

enhancement