I have a custom client that connects to remote Ubuntu via websocket and runs bash there. But keys like Del, Arrows etc. don't work. How can I output what is being received on the server side? None of the solutions mentioned in show keys pressed in linux work.
UPDATE: I first asked question about SSH, but later realized that I am probably not using SSH.
UPDATE2: What have I tried.
# showkey
Couldn't get a file descriptor referring to the console
# evtest
No device specified, trying to scan all of /dev/input/event*
USAGE:
Capture mode:
evtest [--grab] /dev/input/eventX
--grab grab the device for exclusive access
Query mode: (check exit code)
evtest --query /dev/input/eventX <type> <value>
<type> is one of: EV_KEY, EV_SW, EV_LED, EV_SND
<value> can either be a numerical value, or the textual name of the
key/switch/LED/sound being queried (e.g. SW_DOCK).
# ls /dev/input
ls: cannot access /dev/input: No such file or directory
# stty -a
speed 38400 baud; rows 300; columns 80; line = 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>;
eol2 = <undef>; swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R;
werase = ^W; lnext = ^V; flush = ^O; min = 1; time = 0;
-parenb -parodd -cmspar cs8 hupcl -cstopb cread -clocal -crtscts
-ignbrk brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon -ixoff
-iuclc ixany imaxbel iutf8
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0
isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt
echoctl echoke
Basically, I need something like this:
UPDATE3: The communication between console client and server is done through websockets in Go. Sources - client and server.