在命令行输入 tput rmcup 回车 特别感谢: https://stackoverflow.com/questions/36594420/how-can-i-turn-off-scrolling-the-history-in-iterm2 https://www.v2ex.com/t/552854