当我使用鼠标滚轮向上/向下滚动终端窗口Linux时,我得到的所有信息都是打印出来的一些控制字符。它看起来像这样..
^[OA^[OA^[OA^[OA^[OA^[OA^[OA^[OB^[OB^[OB^[OB^[OB^[OB^[OA^[OA^[OA^[OA
我怎么才能把它关掉?
发布于 2019-05-07 22:09:48
只需像这里描述的那样使用tput rmcup就行了https://www.igorkromin.net/index.php/2016/05/05/mouse-wheel-displaying-control-characters-in-a-terminal-or-scrolling-through-history-instead/
tput rmcup
https://stackoverflow.com/questions/56024505
相似问题