Skip to content

Instantly share code, notes, and snippets.

@sleetdrop
Created August 15, 2018 03:01
Show Gist options
  • Save sleetdrop/74c3b2b9989ae3efc5bca513fb1fbe3a to your computer and use it in GitHub Desktop.
Save sleetdrop/74c3b2b9989ae3efc5bca513fb1fbe3a to your computer and use it in GitHub Desktop.
#!/usr/bin/expect -f
trap {
set rows [stty rows]
set cols [stty columns]
stty rows $rows columns $cols < $spawn_out(slave,name)
} WINCH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment