远程服务器颜色看起来不正确

问题描述

我经常使用 ssh 登录远程服务器,在服务器上我会使用 emacs、git、tmux 等工具。我注意到远程服务器上的颜色与本地机器相比非常难看。特别是对于 emacs,我想使用 solarize 主题,但在远程服务器上它并没有真正显示正确的颜色。

有谁知道如何改善远程服务器上的颜色?

我正在使用 item2 并且在运行 infocmp 时我得到以下结果:

  update(price: SavePrice){
    return this.http.put(this.pricesEndpoint + '/' + price.id,price)
      .pipe(map(res => res));
  }

解决方法

确保在“首选项”>“配置文件”>“终端”>“报告终端类型”中将您的终端类型设置为 xterm-256color。

https://iterm2.com/faq.html

问:如何在 vim 中使用 256 色模式?

A:推荐的方法是在“首选项”>“配置文件”>“终端”>“报告终端类型”中将您的终端类型设置为 xterm-256color。您可能还需要在 .vimrc 中设置 set background=light 或 set background=dark。

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...