在历史记录中滚动时,终端命令将被截断


0

很简单的问题,当我按向上箭头滚动浏览以前的命令时,即使终端足够宽(它们显示的输出超出了截断点),它们也被截断了:

[2017-10-02 17:38:34,046] WARN Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect (org.apache.zookeeper.ClientCnxn)
java.net.ConnectException: Connection refused
    at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
    at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717)
    at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:361)
    at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1141)
<er my.zook.com:2181 --list

该行的最后一行显示了被截断的命令,该命令本来应该沿着的./kafka-topics.sh --zookeeper my.zook.com:2181 --list。使它停止截断的任何帮助都会很棒。谢谢!


1
该命令应该是什么?
艾伦(Allan)

已更新以显示命令
ctote

您正在使用什么外壳?而且您的主文件夹中是否有任何Shell rc文件?
fd0

我只是打开终端,输入a .bashrc,它为某些内容设置了一些登录信息并设置了颜色选项。
ctote

终端在首选项->高级Terminfo中设置为哪种终端类型?您的.bashrc中的内容是否已更改?
Sherwood Botsford
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.