mlterm + screen + emacs 256 colors
ã©ã®ãããéè¦ãããã®ãã¯å®ãã§ã¯ããã¾ããã.
å··ã§ã¯ "putty + screen + emacs 256 color" ãªãã¦ã®ãæµè¡ã£ã¦ããããã§ã. ã§ããã©, ç§ã¯æ®æ®µã®çæ´»ã mlterm + screen ã®äººãªãã§, ãã®ç°å¢ã§ã emacs ã« 256 è²åºãããã, ã¨ãæãããã§ã. ãããªè¨³ã§ã¡ã¢.
mlterm 㧠256 è²
id:shinichiro_h ããã mlterm 㧠256 è²è¡¨ç¤ºãããçºã®ããããå ¬éããã¦ãã¾ã. â 256 color mlterm
ãããå½ã¦ã¦ mlterm ã build & install ãã¦ããã¾ã. ãã¨, ãããã 㨠tput colors 㧠256 ãè¿ã£ã¦ããªãããã¨ãæã人ã¯é©å½ã« termcap ãä¿®æ£ãã¦ããã¨è¯ãã¨æãã¾ã.
diff -urNad mlterm-2.9.4~/doc/term/mlterm.tc mlterm-2.9.4/doc/term/mlterm.tc --- mlterm-2.9.4~/doc/term/mlterm.tc 2005-10-30 21:20:54.000000000 +0900 +++ mlterm-2.9.4/doc/term/mlterm.tc 2008-03-14 19:29:27.000000000 +0900 @@ -1,7 +1,7 @@ mlterm|multi lingual terminal emulator:\ :am:km:mi:ms:xn:\ - :Co#8:co#80:it#8:li#24:pa#64:\ - :*6=\E[4~:@0=\E[1~:@7=\EOF:AB=\E[4%dm:AF=\E[3%dm:\ + :Co#256:co#80:it#8:li#24:pa#32767:\ + :*6=\E[4~:@0=\E[1~:@7=\EOF:AB=\E[48;5;%dm:AF=\E[38;5;dm:\ :AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:DO=\E[%dB:F1=\E[23~:\ :F2=\E[24~:IC=\E[%d@:Km=\E[M:LE=\E[%dD:\ :RI=\E[%dC:UP=\E[%dA:\ diff -urNad mlterm-2.9.4~/doc/term/mlterm.ti mlterm-2.9.4/doc/term/mlterm.ti --- mlterm-2.9.4~/doc/term/mlterm.ti 2008-03-14 19:21:16.000000000 +0900 +++ mlterm-2.9.4/doc/term/mlterm.ti 2008-03-14 19:22:08.000000000 +0900 @@ -1,6 +1,6 @@ mlterm|multi lingual terminal emulator, am, eslok, km, mc5i, mir, msgr, npc, xenl, - colors#8, cols#80, it#8, lines#24, pairs#64, + colors#256, cols#80, it#8, lines#24, pairs#32767, acsc=00``aaffgghhjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~, bel=^G, bold=\E[1m, cbt=\E[Z, civis=\E[?25l, clear=\E[H\E[2J, cnorm=\E[?25h, cr=^M, csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H, @@ -32,7 +32,8 @@ rmkx=\E[?1l\E>, rmso=\E[27m, rmul=\E[24m, rs2=\E7\E[r\E8\E[m\E[?7h\E[?1;3;4;6l\E[4l\E>\E[?1000l, sc=\E7, - setab=\E[4%p1%dm, setaf=\E[3%p1%dm, + setab=\E[48;5;%p1%dm, setaf=\E[38;5;%p1%dm, + setb=\E[48;5;%p1%dm, setf=\E[38;5;%p1%dm, sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;m%?%p9%t\E(0%e\E(B%;, sgr0=\E[m\E(B, smacs=\E(0, smam=\E[?7h, smcup=\E[?1049h, smir=\E[4h, smkx=\E[?1h\E=, smso=\E[7m, smul=\E[4m, tbc=\E[3g,
ã¡ãªã¿ã«, termcap ã¯è¯ãããã¾ããã®ã§, ééã£ã¦ãããããã¾ãã. ææãã¦ä¸ããã¨å¬ããã§ã.
screen
screen ã --enable-colors256 ä»ã㧠build & install ãã¾ã. Debian ã® lenny/sid ã§ã¯æ¢ã« --enable-colors256 ä»ãã§ãã.
ãã¨, ä¸è¨ 256è²å + termcap ã®ä¿®æ£ãæ½ãã mlterm, screen ã® Debian ããã±ã¼ã¸ãå ¬éãã¦ã¾ã. ãå©ç¨ã¯èªå·±è²¬ä»»ã§ã©ãã.
#GPG: pub 1024D/AEE995F4 2005-12-08 # uid Youhei SASAKI <uwabami_at_gfd-dennou.org> # unofficial apt-line for etch deb http://www.gfd-dennou.org/arch/uwabami/pub/etch ./ deb-src http://www.gfd-dennou.org/arch/uwabami/pub/etch ./ # unofficial apt-line for lenny deb http://www.gfd-dennou.org/arch/uwabami/pub/lenny ./ deb-src http://www.gfd-dennou.org/arch/uwabami/pub/lenny ./
è¨å®
å ã screen.
.screenrc å ã§,
defbce on term xterm-256color
ã¨ãã¦ããã®ãè¯ãããè¨å®ã§ã. ãã ããããã¨å½ç¶ TERM ã xterm-256color ã«ãªãã®ã§, ç§ã¯ /lib/terminfo/s/screen-bce ã /usr/share/terminfo/s/screen-256color-bce ã¸ã® symlink ã«ãã¦ãã¾ã. teminfo ã®ä½ç½®ã¯ Debian specific ããããã¾ããã,
ãããã㨠.screenrc å ã§
defbce on
ã®ã¿ã§, 256 è²ä½¿ããããã«ãªãã¾ã. TERM 㯠screen-bce ã§ã.
次㫠emacs. TERM ã xterm-256colors ã®å ´åã«ã¯ç¹ã«è¨å®ã¯ãããªãã§ããã. term ã screen-bce ã®å ´åã«ã¯ .emacs å ã«
;; 256 è²ã表示ããããã®è¨å® (defun terminal-init-screen () "Terminal initialization function for screen" ;; User the xterm color initialization code. (load "term/xterm") (xterm-register-default-colors) (tty-set-up-initial-frame-faces) )
ã¨ãã¦ããã¾ã. è¦ããã«, term/xterm.el ãèªã¿è¾¼ãããã«ãã¦ããã®ã§ã.