While gnome terminal shows output of below command, it doesn't pipe it out to text file
xinput test 5
shows output in terminal but
xinput test 5 >> text.txt
doesn't pipe out to file
EDIT:
"xinput test 5" shows key codes of virtual keyboard.
I can see output in terminal with " xinput test 5" but not with "xinput test 5 >>text.txt
It shows keycodes from onboard.
EDIT2:
I want to record keystrokes of "onboard" to file
"xinput test 5" shows the keystroke IDs well in terminal but it doesn't save it to file with " xinput test 5 >> text.txt " it also prevents showing keystroke IDs in terminal.
"xinput test 5 2>>text.txt" shows output in terminal but doesn't pipe it out to text file.
EDIT3:
You can find virtual keyboard ID with "xinput list"
Interestingly can see output in terminal with " xinput test 5" but not with "xinput test 5 >>text.txt