mirror of
https://github.com/yudai/gotty.git
synced 2025-09-22 05:50:48 +02:00
Refine API of webtty package
This commit is contained in:
parent
d1ec7125cf
commit
807bcc25a4
10 changed files with 82 additions and 97 deletions
|
@ -123,10 +123,6 @@ func (lcmd *LocalCommand) ResizeTerminal(width int, height int) error {
|
|||
}
|
||||
}
|
||||
|
||||
func (lcmd *LocalCommand) GetTerminalSize() (int, int, error) {
|
||||
return pty.Getsize(lcmd.pty)
|
||||
}
|
||||
|
||||
func (lcmd *LocalCommand) closeTimeoutC() <-chan time.Time {
|
||||
if lcmd.closeTimeout >= 0 {
|
||||
return time.After(lcmd.closeTimeout)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue