Skip to content

refactor: PTY & SSH #7100

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 22 commits into from
Apr 24, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
PTY doesn't extend PTYCmd
Signed-off-by: Spike Curtis <spike@coder.com>
  • Loading branch information
spikecurtis committed Apr 24, 2023
commit 0f07cb98548bf6a390d3ebb9e90720c3e79174b9
5 changes: 4 additions & 1 deletion pty/pty.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@ type PTYCmd interface {
// process retains access to _both_ ends of the pseudo-TTY (i.e. `ptm` & `pts`
// on Linux).
type PTY interface {
PTYCmd
io.Closer

// Resize sets the size of the PTY.
Resize(height uint16, width uint16) error

// Name of the TTY. Example on Linux would be "/dev/pts/1".
Name() string
Expand Down