Documentation
¶
Index ¶
- func BufferToASCII(buf *uv.Buffer) string
- func CellsToASCII(screen [][]vterm.Cell) string
- func RenderViewToBuffer(view tea.View, width, height int) *uv.Buffer
- type PTYOptions
- type PTYSession
- func (s *PTYSession) ScreenASCII() string
- func (s *PTYSession) SendBytes(data []byte) error
- func (s *PTYSession) SendString(text string) error
- func (s *PTYSession) WaitForAbsent(substr string, timeout time.Duration) error
- func (s *PTYSession) WaitForContains(substr string, timeout time.Duration) error
- func (s *PTYSession) WaitForExit(timeout time.Duration) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BufferToASCII ¶
BufferToASCII converts a UV buffer to ASCII text. Trailing spaces are trimmed.
func CellsToASCII ¶
CellsToASCII converts a vterm screen buffer to ASCII text.
Types ¶
type PTYOptions ¶
type PTYSession ¶
type PTYSession struct {
// contains filtered or unexported fields
}
func StartPTYSession ¶
func StartPTYSession(opts PTYOptions) (*PTYSession, func(), error)
func (*PTYSession) ScreenASCII ¶
func (s *PTYSession) ScreenASCII() string
func (*PTYSession) SendBytes ¶
func (s *PTYSession) SendBytes(data []byte) error
func (*PTYSession) SendString ¶
func (s *PTYSession) SendString(text string) error
func (*PTYSession) WaitForAbsent ¶
func (s *PTYSession) WaitForAbsent(substr string, timeout time.Duration) error
func (*PTYSession) WaitForContains ¶
func (s *PTYSession) WaitForContains(substr string, timeout time.Duration) error
func (*PTYSession) WaitForExit ¶ added in v0.0.9
func (s *PTYSession) WaitForExit(timeout time.Duration) error
Click to show internal directories.
Click to hide internal directories.