Putty

在 AIX 上與 PuTTY 一 起使用的最佳 TERM 類型是什麼,應該調整哪些 PuTTY 設置?

  • November 27, 2016

我管理許多 AIX 機器,一般是 5.3 版。

基本的終端功能工作得很好,但似乎有些事情沒有。例如nmon顯示lqqx而不是畫線字元。

lqnmonqqqqqqqqr=ResourcesqqqqqqqqHost=sigloprodqqqqqqRefresh=2 secsqqq11:29.
1 Memory qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqx
x          Physical  PageSpace |        pages/sec  In     Out | FileSystemCx
x% Used       97.4%      1.3%  | to Paging Space   0.0    0.0 | (numperm) 5x
x% Free        2.6%     98.7%  | to File System    0.5    1.5 | Process   2x
xMB Used    7980.3MB    26.2MB | Page Scans        0.0        | System    1x
xMB Free     211.7MB  2021.8MB | Page Cycles       0.0        | Free       x
xTotal(MB)  8192.0MB  2048.0MB | Page Steals       0.0        |           -x
x                              | Page Faults       3.0        | Total    10x
x------------------------------------------------------------ | numclient 5x
xMin/Maxperm     781MB( 10%)  3904MB( 48%) <--% of RAM        | maxclient 4x
xMin/Maxfree     248   1088       Total Virtual   10.0GB      | User      7x
xMin/Maxpgahead    2    128    Accessed Virtual    3.2GB 31.8%  Pinned    1x
x                                                                          x
xqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqx
x                                                                          x
x                                                                          x
x                                                                          x
x                                                                          x
mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj

我目前xterm在 AIX 上使用終端類型,在 putty 中指定 utf8 編碼,在 putty 中使用 unicode 畫執行緒式碼點,並使用 Deja Vu Sans Mono 字型,它應該包括所有畫線字元

nmon當我從同一台機器上的 xterm 執行它時,它確實顯示正確。

目前的 terminfo 條目TERM=xterm如下:

sigloprod ~ $ echo $TERM
xterm
sigloprod ~ $ infocmp
#       Reconstructed via infocmp from file: /usr/share/lib/terminfo/x/xterm
xterm|vs100|xterm terminal emulator,
   am, km, msgr, xenl,
   cols#80, it#8, lines#25,
   batt1=f1, batt2=f1md, bel=^G, bold=\E[1m,
   box1=lqkxjmwuvtn, box2=lqkxjmwuvtn, civis=\E[?25l,
   clear=\E[H\E[2J, cnorm=\E[?25h, cr=\r,
   csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=\b,
   cud=\E[%p1%dB, cud1=\n, cuf=\E[%p1%dC, cuf1=\E[C,
   cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
   cvvis=\E[?25h, dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM,
   dl1=\E[M, ed=\E[J, el=\E[K, font0=\E(B, font1=\E(0,
   home=\E[H, ht=\t, hts=\EH, ich=\E[%p1%d@, ich1=\E[@,
   il=\E[%p1%dL, il1=\E[L, ind=\n, kbs=\b, kcub1=\E[D,
   kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdch1=^?,
   kf1=\E[11~, kf10=\E[21~, kf11=\E[23~, kf12=\E[24~,
   kf2=\E[12~, kf3=\E[13~, kf4=\E[14~, kf5=\E[15~,
   kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~,
   khome=\E[H, kich1=\E[2~, knl=\r, knp=\E[6~, kpp=\E[5~,
   ktab=\t, mc4=\E[4i, mc5=\E[5i, nel=\n, rc=\E8,
   rev=\E[7m, rf=/usr/share/lib/tabset/vt100, ri=\EM,
   rmcup=\E[?7h, rmkx=\E>, rmso=\E[m, rmul=\E[m$<2>,
   rs1=\E>\E[1;3;4;5;6l\E[?7h\E[m\E[r\E[2J\E[H, sc=\E7,
   sgr=\E[%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;1%;m%?%p9%t\E(0%e\E(B%;,
   sgr0=\E[m\E(B, smcup=\E[?7h\E[?1l\E(B\E=, smkx=\E=,
   smso=\E[7m, smul=\E[4m$<2>, tbc=\E[3g,

試試 Putty 的配置菜單:視窗 -> 翻譯 -> 接收到的數據假定在哪個字元集中 -> UTF-8

如果不是 UTF-8,請嘗試其他一些值。

試試$export TERM=dtterm這個會給你一些顏色,如官方常見問題解答中所述。 http://www.ibm.com/developerworks/wikis/display/wikiptype/nmon+faq/問題 41

引用自:https://serverfault.com/questions/91760