mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-11-07 04:42:54 -05:00
Merge pull request #868 from TotallyNotElite/master
[WIP] Add dynamic resizing of xterm tty
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user