PCLinuxOS - 201906 - KDE Plasma - 基本操作 - xterm、~/.Xresources
- 1. 概要
- 2. ~/.Xresources
1. 概要
デスクトップ上で使用する端末は、「Konsole」「XTerm」がありますが、「Konsole」は、日本語が使えないので、使い物になりません。
「XTerm」を中心に使用するのですが
「スタート」→「その他のアプリケーション」→「XTerm」
デフォルトの状態が、これだ。

大きさ、色、気分が悪くなりそうです。
本項は、「Xterm - ArchWiki」を参考にさせていただきました。
2. ~/.Xresources
デフォルトの設定は、「/etc/X11/xdm/Xresources」にありますので、コピーして使います。
cp /etc/X11/xdm/Xresources ~/.Xresources
を作成して編集します。
XTerm に関する記述は、以下のものです。
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! xterm (and friends)
XTerm*highlightSelection: true
! Uncomment this to use color for the bold attribute
XTerm*VT100*colorBDMode: on
XTerm*VT100*colorBD: blue
! Uncomment this to use color for underline attribute
XTerm.VT100*colorULMode: on
XTerm.VT100*underLine: off
XTerm*VT100*colorUL: magenta
! Uncomment this to display the scrollbar
XTerm*scrollBar: true
! This resource specifies whether or not to ignore the 'alternate screen'
! of applications such as vi. When it is on, these applications will restore
! the contents of the screen when they are exited to what they were before
! they were started. When it is off, the contents of vi will remain on the
! screen after the program is quit.
XTerm.VT100.titeInhibit: true
! Uncomment this to turn off color mode in your xterms
!XTerm.VT100*colorMode: off
XTerm.VT100*dynamicColors: on
! Number of lines of scrollback to save
XTerm*saveLines: 1500
xterm*reverseWrap: true
*visualBell: true
*scrollTtyOutput: False
*scrollKey: True
Scrollbar.JumpCursor: True
! (fg) 20001004 These are compulsory for KDE2, otherwise font will display
! incorrectly - to say the least
xterm*font: fixed
xterm_color*font: fixed
下記のように編集しました(ほとんどコメントアウトですな)。
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! xterm (and friends)
!XTerm*highlightSelection: true
! Uncomment this to use color for the bold attribute
!XTerm*VT100*colorBDMode: on
!XTerm*VT100*colorBD: blue
! Uncomment this to use color for underline attribute
!XTerm.VT100*colorULMode: on
!XTerm.VT100*underLine: off
!XTerm*VT100*colorUL: magenta
! Uncomment this to display the scrollbar
!XTerm*scrollBar: true
! This resource specifies whether or not to ignore the 'alternate screen'
! of applications such as vi. When it is on, these applications will restore
! the contents of the screen when they are exited to what they were before
! they were started. When it is off, the contents of vi will remain on the
! screen after the program is quit.
!XTerm.VT100.titeInhibit: true
! Uncomment this to turn off color mode in your xterms
!XTerm.VT100*colorMode: off
!XTerm.VT100*dynamicColors: on
! Number of lines of scrollback to save
XTerm*saveLines: 2000
!xterm*reverseWrap: true
!*visualBell: true
!*scrollTtyOutput: False
!*scrollKey: True
!Scrollbar.JumpCursor: True
! (fg) 20001004 These are compulsory for KDE2, otherwise font will display
! incorrectly - to say the least
!xterm*font: fixed
!xterm_color*font: fixed
XTerm*background: black
XTerm*foreground: white
XTerm*utf8: 1
XTerm*locale: true
XTerm*renderFont: false
96行は、行送りをしたときに、マウスでスクロールバックさせて、何行まで戻れるかっていうことです。
110、111行は、背景色と文字の表示色です。黒い背景に、白い文字で表示。
112、113行は、UTF-8 を有効にしています。
115行が決め手です。
これ、どういう意味かわからんのですが、すべてのフォント設定が無効になるようで・・・。
その結果設定されているフォントが何なのかがよくわからんのですが、少なくとも間延びしたフォントではない。
負の効果として、行・列の指定や、フォントサイズの指定が無効になりますが・・・変な表示になるよりはよっぽどいいのです。

|
|