首页 > 解决方案 > 终端命令被自身覆盖

问题描述

有时在终端中,当我输入一个长命令时,它不是在下一行继续,而是在同一行开始写,我看不到我在输入什么。是什么原因,我应该怎么做?

在此处输入图像描述

标签: bashterminal

解决方案


Sometimes if you resize a terminal window while in a fullscreen command (say inside "vim" or "less"), when you exit back to the shell it will assume your terminal has the old dimensions, and will show the behavior you are describing. See this question: https://unix.stackexchange.com/questions/61584/how-to-solve-the-issue-that-a-terminal-screen-is-messed-up-usually-after-a-res

Also, please in the future post this kind of questions in unix.stackexchange.com as this one is not strictly a programming question.


推荐阅读