crash.software
Projects
Pull Requests
Issues
Builds
termdash
Code
Files
Commits
Branches
Tags
Pull Requests
Code Comments
Code Compare
Issues
List
Boards
Milestones
Builds
Statistics
Contributions
Source Lines
Child Projects
Projects
STRLCPY
termdash
Files
🤬
Sign In
22ae4490
ROOT
/
widgets
/
textinput
/
textinput.go
Search
History
392 lines
|
UTF-8
|
9 KB
Blame
Outline
2
4
8
No wrap
Soft wrap
Outline
TextInput
mu
:
sync.Mutex
editor
:
*fieldEditor
forField
:
image.Rectangle
opts
:
*options
New
(opts ...Option)
:
(*TextInput, error)
textFieldRune
:
rune
cursorRune
:
rune
minFieldHeight
split
(cvsAr image.Rectangle, label string, widthPerc *int)
:
(labelAr, textAr image.Rectangle, err error)
hideText
(text string, hr rune)
:
string
*TextInput
Read
()
:
string
ReadAndClear
()
:
string
drawLabel
(cvs *canvas.Canvas, labelAr image.Rectangle)
:
error
drawField
(cvs *canvas.Canvas, text string)
:
error
drawCursor
(cvs *canvas.Canvas, curPos int)
:
error
Draw
(cvs *canvas.Canvas, meta *widgetapi.Meta)
:
error
keyboard
(k *terminalapi.Keyboard)
:
(bool, string)
Keyboard
(k *terminalapi.Keyboard, meta *widgetapi.EventMeta)
:
error
Mouse
(m *terminalapi.Mouse, meta *widgetapi.EventMeta)
:
error
Options
()
:
widgetapi.Options
All occurrences
Please wait...
Page is in error, reload to recover