2
0
mirror of https://github.com/linka-cloud/d2vm.git synced 2024-11-16 13:06:24 +00:00
d2vm/examples/full/resize
Adphi 5b8cad6176
cli: improve flags and commands
docs: add README.md and examples
centos/rhel: fix dracut initramfs

Signed-off-by: Adphi <philippe.adrien.nousse@gmail.com>
2022-04-21 18:28:50 +02:00

13 lines
241 B
Bash
Executable File

#!/bin/bash
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"
# echo "cols:$cols"
# echo "rows:$rows"
stty cols "$cols" rows "$rows"