Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/ssh/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Shell urwid和SecureCRT的颜色问题_Shell_Ssh_Colors_Terminal_Urwid - Fatal编程技术网

Shell urwid和SecureCRT的颜色问题

Shell urwid和SecureCRT的颜色问题,shell,ssh,colors,terminal,urwid,Shell,Ssh,Colors,Terminal,Urwid,我正在编写一个python脚本,应该通过SSH在远程服务器上运行。最常见的用例是从通过SecureCRT建立的会话运行它 我选择使用创建“用户界面”,但无法使其256色模式正常工作。我的意思是,我正在尝试运行“palete_test.py”,输出看起来很奇怪。当我选择256色模式时,得到的不是预期的输出,而是以下内容: SecureCRT中的会话配置如下: 起初,我认为$TERM环境变量与问题有关,因为在我的macOS机器中,一切正常,我得到xterm-256color作为其值,而在Secu

我正在编写一个python脚本,应该通过SSH在远程服务器上运行。最常见的用例是从通过SecureCRT建立的会话运行它

我选择使用创建“用户界面”,但无法使其256色模式正常工作。我的意思是,我正在尝试运行“palete_test.py”,输出看起来很奇怪。当我选择256色模式时,得到的不是预期的输出,而是以下内容:

SecureCRT中的会话配置如下:

起初,我认为
$TERM
环境变量与问题有关,因为在我的macOS机器中,一切正常,我得到
xterm-256color
作为其值,而在SecureCRT会话中,我只得到
xterm
。但是,当我在SecureCRT中运行时,我得到了预期的输出:

那么,urwid 256色模式无法正常工作的原因是什么