Tera TermにSolarizedカラースキームを適用する


ターミナル画面を目に優しくしたい

モチベーション

  • コードとか見る認知負荷を下げたい
  • 目にも優しい色合いにしたい

Solarizedを使うことにした

  • 「dark」と「light」の2種類
  • どんなものかは本家サイトSolarizedを見てね
  • 説明文を以下引用しとく

Solarized is a sixteen color palette (eight monotones, eight accent colors) designed for use with terminal and gui applications. It has several unique properties. I designed this colorscheme with both precise CIELAB lightness relationships and a refined set of hues based on fixed color wheel relationships. It has been tested extensively in real world use on color calibrated displays (as well as uncalibrated/intentionally miscalibrated displays) and in a variety of lighting conditions.

Tera TermにSolarized

  • 適用は簡単、Tera Term設定ファイル(TERATERM.INI)の該当箇所をコメントインするだけ
TERATERM.INI
;   ANSI color definition (in the case FullColor=on)
;   * UseTextColor should be off, or the background and foreground color of
;     VTColor are assigned to color-number 0 and 7 respectively, even if
;     they are specified in ANSIColor.
;   * ANSIColor is a set of 4 values that are color-number(0--15),
;     red-value(0--255), green-value(0--255) and blue-value(0--255).
;ANSIColor=0,0,0,0, 1,255,0,0, 2,0,255,0, 3,255,255,0, 4,128,128,255, 5,255,0,255, 6,0,255,255, 7,255,255,255, 8,64,64,64, 9,192,0,0, 10,0,192,0, 11,192,192,0, 12,64,64,192, 13,192,0,192, 14,0,192,192, 15,192,192,192    ←:コメントアウト

; Solarized (http://ethanschoonover.com/solarized)
ANSIColor=0,7,54,66, 1,203,75,22, 2,88,110,117, 3,101,123,131, 4,131,148,150, 5,108,113,196, 6,147,161,161, 7,253,246,227, 8,0,43,54, 9,220,50,47, 10,133,153,0, 11,181,137,0, 12,38,139,210, 13,211,54,130, 14,42,161,152, 15,238,232,213    ←:コメントイン

;   Text and background colors
;       for Normal characters
;VTColor=255,255,255,0,0,0    ←:コメントアウト
;   Solarized Dark
VTColor=131,148,150,0,43,54    ←:コメントイン
;   Solarized Light
;VTColor=101,123,131,253,246,227
;
;       for Bold characters
EnableBoldAttrColor=on
;VTBoldColor=255,255,0,0,0,0    ←:コメントアウト
;   Solarized Dark
VTBoldColor=147,161,161,0,43,54    ←:コメントイン
;   Solarized Light
;VTBoldColor=88,110,117,238,232,213
;
;       for Blink characters
EnableBlinkAttrColor=on
;VTBlinkColor=255,0,0,0,0,0    ←:コメントアウト
;   Solarized Dark
VTBlinkColor=133,153,0,0,43,54    ←:コメントイン
;   Solarized Light
;VTBlinkColor=133,153,0,253,246,227
;
;       for Reverse characters
EnableReverseAttrColor=on
;VTReverseColor=0,0,0,255,255,255    ←:コメントアウト
;   Solarized Dark
;VTReverseColor=0,43,54,131,148,150
VTReverseColor=101,123,131,253,246,227    ←:コメントイン
;   Solarized Light
;VTReverseColor=253,246,227,101,123,131
;VTReverseColor=131,148,150,0,43,54
;
;       for URL(hyper link) text color
EnableURLColor=on
URLUnderline=on
;URLColor=0,255,255,0,0,0    ←:コメントアウト
;   Solarized Dark
URLColor=181,137,0,0,43,54    ←:コメントイン
;   Solarized Light
;URLColor=181,137,0,253,246,227
;