I set up an Ubuntu VPS from Digital Ocean recently.
When I log in as root, I'm able to navigate around the terminal properly
When I sudo as any other user, I get some extremely strange terminal behavior
- I can't move my cursor left. It overrwites it with strange control characters, eg.
- I can't use the up arrow to navigate previous commands. I get something similar -
- Vim is absolutely un-usable. Moving in any direction causes a strange combination of inserting the above control characters or "overwriting" existing characters. I can't delete either.
- Tab completion doesn't exist at all. Same output as above.
Since this all works when logged in as
root, I suspect it's something software related which makes me hopeful it can be fixed.
Any thoughts? Thanks!