LoginSignup
7
8

More than 5 years have passed since last update.

古いディストロでGNU screenの表示が残念になったとき

Posted at

古いディストロでGNU screenを使った時に256色表示がされず白黒になったので調べてみた結果。

どうやらscreen-256colorを認識していないらしい。

.screenrc
term screen-256color

確認してみる。

$ infocmp screen-256color

見事に「そんなものはない」と言われたので自分で作る。適当なディレクトリにscreen-256color.terminfoというファイルを書く。

screen-256color.terminfo
screen-256color|GNU Screen with 256 colors,
  use=xterm-256color,

ticコマンドでコンパイルする。自動的に$HOME/.terminfo/s/screen-256colorというファイルが作られて出来上がり。

tic screen-256color.terminfo

256表示は次のようにして確認できる。(はずだが、古いディストロではサーバー証明書が...)

wget https://github.com/zhengkai/config/raw/master/script/256colors2.pl
perl ./256colors2.pl
7
8
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7
8