Documentation
¶
Index ¶
- type DumpFormat
- type KeyCode
- type Modifier
- type Runtime
- type ScreenDump
- type Terminal
- func (t *Terminal) Close(ctx context.Context) error
- func (t *Terminal) DumpScreen(ctx context.Context, format DumpFormat) (*ScreenDump, error)
- func (t *Terminal) EncodeKey(ctx context.Context, keyCode KeyCode, mods Modifier) ([]byte, error)
- func (t *Terminal) Feed(ctx context.Context, data []byte) error
- func (t *Terminal) GetPwd(ctx context.Context) string
- func (t *Terminal) Resize(ctx context.Context, cols, rows uint32) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DumpFormat ¶
type DumpFormat uint32
const ( DumpPlain DumpFormat = 0 // Plain text, no escape sequences. DumpVTFull DumpFormat = 1 // Full VT with all extras (for reattach). DumpVTSafe DumpFormat = 2 // Safe VT — colors but no palette/mode corruption. DumpHTML DumpFormat = 3 // HTML with inline CSS colors. DumpFlagUnwrap DumpFormat = 0x10 // Bit 4: join soft-wrapped lines. DumpFlagScrollback DumpFormat = 0x20 // Bit 5: include scrollback history. DumpFormatMask DumpFormat = 0x0F // Bits 0-3: format selector. )
type KeyCode ¶
type KeyCode uint32
const ( KeyEnter KeyCode = 0x100 KeyEscape KeyCode = 0x101 KeyTab KeyCode = 0x102 KeyBackspace KeyCode = 0x103 KeyUp KeyCode = 0x110 KeyDown KeyCode = 0x111 KeyLeft KeyCode = 0x112 KeyRight KeyCode = 0x113 KeyHome KeyCode = 0x120 KeyEnd KeyCode = 0x121 KeyPageUp KeyCode = 0x122 KeyPageDown KeyCode = 0x123 KeyInsert KeyCode = 0x124 KeyDelete KeyCode = 0x125 KeyF1 KeyCode = 0x130 KeyF2 KeyCode = 0x131 KeyF3 KeyCode = 0x132 KeyF4 KeyCode = 0x133 KeyF5 KeyCode = 0x134 KeyF6 KeyCode = 0x135 KeyF7 KeyCode = 0x136 KeyF8 KeyCode = 0x137 KeyF9 KeyCode = 0x138 KeyF10 KeyCode = 0x139 KeyF11 KeyCode = 0x13A KeyF12 KeyCode = 0x13B )
type ScreenDump ¶
type Terminal ¶
type Terminal struct {
// contains filtered or unexported fields
}
func (*Terminal) DumpScreen ¶
func (t *Terminal) DumpScreen(ctx context.Context, format DumpFormat) (*ScreenDump, error)
Click to show internal directories.
Click to hide internal directories.