My terminal seems to be broken. All of the lines are shifted and the promt starts at random locations on the screen each time i enter a command. Also all output of ran programms comes up out of alignment and contains non-printable characters. I use a standart unix terminal emulator that ships with Ubuntu 22. Please recommend a fix.
That's easy one - all you need is to enter `reset` command in your shell. If this happens with you for a first time, chances you have some garbage from your random typings left in a command line, which you can't see, don't forget to drop it before attempting to enter command. 

To make it even more obvious:
- press Ctrl+C several times, it will clear current command line;
- type `reset` and hit Enter, you may want to `clear` screen after.