mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-09 15:40:18 +00:00
Merge pull request #868 from TotallyNotElite/master
[WIP] Add dynamic resizing of xterm tty
This commit is contained in:
commit
106e900c82
2 changed files with 20 additions and 7 deletions
|
@ -180,6 +180,7 @@
|
|||
break;
|
||||
case 3:
|
||||
// Connected
|
||||
tunnel.sendText(`mcresize() { old=$(stty -g);stty raw -echo min 0 time 5;printf '\\0337\\033[r\\033[999;999H\\033[6n\\0338' > /dev/tty;IFS='[;R' read -r _ rows cols _ < /dev/tty;stty "$old";stty cols "$cols" rows "$rows"; };trap mcresize SIGWINCH;clear\n`);
|
||||
term.focus();
|
||||
break;
|
||||
default:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue