Ncurses 提示在 Windows 中的 PuTTY 中看起来已损坏

The*_*eLQ 12 command-line putty

Byobu 在 PuTTY 中看起来很破碎。我已经修复了键映射问题,但是手册页甚至 Google 中都没有指定这个问题:

损坏的 PuTTY 控制台

请注意窗口列表的错位位置、损坏的选择器位置、最后一个窗口的重复、右上角的随机 a 以及错位的应用选项。你看不到这个,但最后一个选项是不可选的。

PuTTY 中是否有一些我需要使用的选项才能正确查看?

小智 10

配置putty读取utf8。putty -> config -> window -> translation 在“Recieved data in ...”中选择utf 这不是byobu问题,而是putty问题。

也可以看看:


Dus*_*and 8

与 Putty 相关,我不久前byobu(1)联机帮助页中添加了此注释:

> PuTTY  users have reported that the
> F2, F3, and F4 shortcut keys are not
> working properly.  PuTTY sends the
> same escape sequences as the linux
> console for F1-F4 by default.  You can
> fix this problem in the PuTTY config,
> Terminal -> Keyboard -> Function keys:
> Xterm R6.
Run Code Online (Sandbox Code Playgroud)

看:


Lek*_*eyn 3

Ubuntu 在其终端中使用 UTF-8,但 byobu 似乎在其菜单中使用“ISO-8859-1(西欧)”字符集。您可以在“窗口”->“翻译”中设置字符集。

我在互联网上找到了以下代码,我仍然对此感到满意。byobu可能有更多选择,但我也喜欢这个(~/.screenrc):

startup_message off
hardstatus alwayslastline
hardstatus string '%{= kG}[ %{G}%H %{g}][%= %{=kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B}%Y-%m-%d %{W}%c %{g}]%{w} %l'
shelltitle "$ |bash"
termcapinfo xterm ti@:te@
altscreen on
Run Code Online (Sandbox Code Playgroud)

注意:对于byobu,shelltitle "$ |bash"必须删除/注释,否则byobu将无法工作。