Documentation
¶
Index ¶
- Variables
- func Clear()
- func EditInEditor(s string) (string, error)
- func Print(a ...interface{})
- func Printf(format string, a ...interface{})
- func Println(a ...interface{})
- func ReadPassword(prompt string) string
- func Readline(prompt string) string
- func Start()
- func Stop()
- func TermSize() (w, h int)
- func WrapText(s string, width int) ([]string, int)
- func Write(b []byte)
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func EditInEditor ¶ added in v0.0.2
Edit the string s using the editor defined by the environment variable EDITOR.
func ReadPassword ¶ added in v0.0.2
ReadPassword reads a line of input from the user, but doesn't echo to the screen.
func WrapText ¶ added in v0.0.2
WrapText takes the text in s and wraps it to the width. It returns the individual wrapped lines, and the length of the longest wrapped line.
If the width is less than or equal to zero, it is set to the terminal width.
In order to wrap the text in a reasonable way, white space is trimmed and collapsed througout the text.
Types ¶
This section is empty.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.