proxy.golang.org : github.com/paulstuart/prompt
Package prompt implements a cross platform line-editing prompt. It also provides routines to use ANSI escape sequences across platforms for terminal connected io.Readers/io.Writers. If os.Stdin isn't connected to a terminal or (on Unix)if the terminal doesn't support the ANSI escape sequences needed a fallback prompt is provided that doesn't do line-editing. Unix terminals that are not supported will have the TERM environment variable set to either "dumb" or "cons25". The keyboard shortcuts are similar to those found in the Readline library:
Registry
-
Source
- Documentation
- JSON
purl: pkg:golang/github.com/paulstuart/prompt
License: MIT
Latest release: about 6 years ago
First release: about 6 years ago
Namespace: github.com/paulstuart
Last synced: about 2 months ago