Monday, May 6, 2024
5
rated 0 times [  5] [ 0]  / answers: 1 / hits: 1382  / 2 Years ago, sat, april 16, 2022, 11:10:20

So, when I cat /dev/input/mouse0 in a TTY, move the mouse around a bit, and then ctrl-z to stop cat, my terminal characters are all messed up. Almost every single character gets swapped out for another character in the ASCII character set. This same situation occurs when I execute this in Python 3.2:



print('033[1;12mTest.033[1;m')


The the same symptom does not appear on a shell in the GUI, only on the virtual terminals. The problem does not go away if I log out. I suspect that a certain escape code (which may be contained within the Python code) is remapping the ASCII byte codes to the character representations, but that is just a guess. What is happening and how do I undo it?


More From » command-line

 Answers
1

I finally found the command that I was looking for on Command Line Fu. The command is reset. I tried it, and it worked perfectly, without logging out or restarting the system.


[#39313] Monday, April 18, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ouschee

Total Points: 485
Total Questions: 88
Total Answers: 106

Location: Central African Republic
Member since Mon, Aug 10, 2020
4 Years ago
;