gpt4 book ai didi

gnu-screen - GNU screen : output that causes the screen to scroll leaves garbage at the bottom of the window

转载 作者:行者123 更新时间:2023-12-01 01:05:44 27 4
gpt4 key购买 nike

我正在 cygwin 环境中配置 GNU 屏幕。实际上重新配置——它之前总是有效,当我升级到 cygwin-64 时,相同的配置文件给了我意想不到的行为。

发生的情况是,每当我在终端中执行溢出全屏的操作时,终端都不会滚动。相反,每个新行都会“覆盖”窗口底行的最后一行。即使这个过程已经完成,如果我按 CTRL+l,终端的最后三行也会留下一堆垃圾。此外,当我使用占据整个屏幕的程序时,例如 vim 或 irssi,“标题”行消失了。

我怀疑我的 xterm 设置和屏幕的“term”设置之间存在一些差异,但我在这里有点不知所措,正如我所说,所有相同的配置文件都可以正常工作(并且在其他机器上都可以正常工作) cygwin 和 native linux)。谁能推荐一种让我心爱的屏幕再次运行的方法?

这是我的 .screenrc:

shell /bin/bash

screen -t bash 0

select 0

escape ^Zz # Instead of Control-a, make the escape/command character be Control-z

autodetach on # Autodetach session on hangup instead of terminating screen completely

startup_message off # Turn off the splash screen

defscrollback 30000 # Use a 30000-line scrollback buffer

nethack on

# Misc h4x to make scrollback work
terminfo * te@:ti@
termcapinfo xterm|xterms|xs|rxvt ti=\E7\E[?47l

# Bells are annoying
bell_msg ''
vbell off

caption always '%{= kG}[ %{G}%H %{g}][%= %{= kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B} %d/%m %{W}%c %{g}]'

最佳答案

您正在运行 screenxterm (我自己一直在做的事情)。 screen进程“知道”终端有多大,但该信息可能与现实不同步。当我运行 screen -dr 时,我发现这种情况经常发生。从另一个窗口。

调整 xterm 的大小windows 导致它发送一个 SIGWINCH向在其下运行的进程发出信号,这通常会导致该进程重新查询 tty 设置。

单击最大化按钮两次。如果您已经最大化,那会将其恢复为正常窗口,然后重新最大化;如果它还没有最大化,它会做相反的事情。在任何一种情况下,它都应该导致 screen重新计算窗口大小。

关于gnu-screen - GNU screen : output that causes the screen to scroll leaves garbage at the bottom of the window,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18881116/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com