$ nc rya.nc 1987
-
$ nc rya.nc 1987
-
-
:neocat_floof_happy:lexireplied to eater last edited by
-
Ryan Castellucci :nonbinary_flag:replied to eater last edited by
-
:neocat_floof_happy:lexireplied to Ryan Castellucci :nonbinary_flag: last edited by
@ryanc @eater @alina only sort of; the issue isn't that terminfo doesn't work via netcat, the issue is that the input is buffered and you have to hit enter to actually send the reported resolution to a server. this works (if you hit enter):
$ cat getpos.sh
set -x; echo -n $'\033[s\033[999;999H\033[6n'; sleep 0.1; read -d R RES; echo -n $'\033[u'; echo $RES | tail -c+3
$ socat TCP-LISTEN:9999,fork EXEC:"bash getpos.sh"
[other term]
$ nc -v localhost 9999
Connection to localhost (127.0.0.1) 9999 port [tcp/*] succeeded!
[i hit enter here]
41;124
$ echo $LINES:$COLUMNS
41:124i did not find a way to make it not buffer the input without changing the
nc
command yet though -
Ryan Castellucci :nonbinary_flag:replied to :neocat_floof_happy:lexi last edited by
Copyright © 2024 NodeBB | Contributors