Documentation
¶
Index ¶
- func EncodeKey(event KeyEvent) ([]byte, bool)
- type KeyEvent
- type Size
- type UITerminalView
- func (t *UITerminalView) Append(text string)
- func (t *UITerminalView) Clear()
- func (t *UITerminalView) ClearHistory()
- func (t *UITerminalView) Feed(data []byte)
- func (t *UITerminalView) OnInput(handler func([]byte))
- func (t *UITerminalView) OnResize(handler func(Size))
- func (t *UITerminalView) Raw() *fltk_bridge.Terminal
- func (t *UITerminalView) Reset()
- func (t *UITerminalView) SetAutomationID(id string) *UITerminalView
- func (t *UITerminalView) SetAutomationName(name string) *UITerminalView
- func (t *UITerminalView) SetBackgroundColor(color uint)
- func (t *UITerminalView) SetFont(font fltk_bridge.Font)
- func (t *UITerminalView) SetFontSize(size int)
- func (t *UITerminalView) SetHistoryRows(rows int)
- func (t *UITerminalView) SetMargins(left, top, right, bottom int)
- func (t *UITerminalView) SetRedrawRate(seconds float32)
- func (t *UITerminalView) SetSelectionColors(foreground, background uint)
- func (t *UITerminalView) SetTextColor(color uint)
- func (t *UITerminalView) Size() Size
- func (t *UITerminalView) Text() string
- func (t *UITerminalView) View() *view.UIView
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Size ¶
Size is the terminal grid size in character cells. It is transport-neutral and can be passed directly to PTY, SSH window-change, or ConPTY adapters.
type UITerminalView ¶
type UITerminalView struct {
// contains filtered or unexported fields
}
UITerminalView is a native ANSI/VT presentation and input surface. It owns terminal parsing, scrollback, selection, focus, and key-sequence translation; it intentionally does not own a process or network connection.
func NewUITerminalView ¶
func NewUITerminalView(r *foundation.Rect) *UITerminalView
func (*UITerminalView) Append ¶
func (t *UITerminalView) Append(text string)
func (*UITerminalView) Clear ¶
func (t *UITerminalView) Clear()
func (*UITerminalView) ClearHistory ¶
func (t *UITerminalView) ClearHistory()
func (*UITerminalView) Feed ¶
func (t *UITerminalView) Feed(data []byte)
func (*UITerminalView) OnInput ¶
func (t *UITerminalView) OnInput(handler func([]byte))
OnInput receives exact terminal bytes for printable/IME text, control keys, navigation keys, and paste commits. Returning ownership to the caller keeps PTY and SSH lifecycle outside the reusable native widget.
func (*UITerminalView) OnResize ¶
func (t *UITerminalView) OnResize(handler func(Size))
func (*UITerminalView) Raw ¶
func (t *UITerminalView) Raw() *fltk_bridge.Terminal
func (*UITerminalView) Reset ¶
func (t *UITerminalView) Reset()
func (*UITerminalView) SetAutomationID ¶
func (t *UITerminalView) SetAutomationID(id string) *UITerminalView
func (*UITerminalView) SetAutomationName ¶
func (t *UITerminalView) SetAutomationName(name string) *UITerminalView
func (*UITerminalView) SetBackgroundColor ¶
func (t *UITerminalView) SetBackgroundColor(color uint)
func (*UITerminalView) SetFont ¶
func (t *UITerminalView) SetFont(font fltk_bridge.Font)
func (*UITerminalView) SetFontSize ¶
func (t *UITerminalView) SetFontSize(size int)
func (*UITerminalView) SetHistoryRows ¶
func (t *UITerminalView) SetHistoryRows(rows int)
func (*UITerminalView) SetMargins ¶
func (t *UITerminalView) SetMargins(left, top, right, bottom int)
func (*UITerminalView) SetRedrawRate ¶
func (t *UITerminalView) SetRedrawRate(seconds float32)
func (*UITerminalView) SetSelectionColors ¶
func (t *UITerminalView) SetSelectionColors(foreground, background uint)
func (*UITerminalView) SetTextColor ¶
func (t *UITerminalView) SetTextColor(color uint)
func (*UITerminalView) Size ¶
func (t *UITerminalView) Size() Size
func (*UITerminalView) Text ¶
func (t *UITerminalView) Text() string
func (*UITerminalView) View ¶
func (t *UITerminalView) View() *view.UIView
Click to show internal directories.
Click to hide internal directories.