Re: [dwm] [ANNOUNCE] dvtm-0.5
On Jan 29, 2009, at 8:54 PM, bill lam wrote: On Thu, 29 Jan 2009, Donald Chai wrote: You can replace that line with: ESCDELAY = esc_delay; Thanks! I found 2 further issues 1. on my ubuntu, $TERM is xterm (actually it is 256 color), but dvtm cannot detect it and makes it a 8 (or 16?) color rxvt. You probably need to set TERM to xterm-256color. If 'infocmp xterm' says you have 8 colors, ncurses and dvtm will think your terminal only supports 8 colors. If you don't have the proper terminfo files, then be prepared for some fun with 'infocmp' and 'tic'. 2. if start dvtm from dmenu typing xterm -e dvtm there is always an extra ^Z placed in ttyin so that when I start to type any character, the ^Z appear and I have to delete it, However if I start dvtm from xterm, it is OK. Change config.mk to use ncursesw (LIBS_UTF8).
Re: [dwm] [ANNOUNCE] dvtm-0.5
On Fri, 30 Jan 2009, Donald Chai wrote: On Jan 29, 2009, at 8:54 PM, bill lam wrote: On Thu, 29 Jan 2009, Donald Chai wrote: You can replace that line with: ESCDELAY = esc_delay; Thanks! I found 2 further issues 1. on my ubuntu, $TERM is xterm (actually it is 256 color), but dvtm cannot detect it and makes it a 8 (or 16?) color rxvt. You probably need to set TERM to xterm-256color. If 'infocmp xterm' says you have 8 colors, ncurses and dvtm will think your terminal only supports 8 colors. If you don't have the proper terminfo files, then be prepared for some fun with 'infocmp' and 'tic'. After install terminfo for xterm-256color, echo $TERM inside xterm now gives xterm-256color, but after enter dvtm, echo $TERM now gives rxvt-256color, why not xterm-256color?. Moreover colors are displayed incorrectly. This is worse than using the previous xterm setting. 2. if start dvtm from dmenu typing xterm -e dvtm there is always an extra ^Z placed in ttyin so that when I start to type any character, the ^Z appear and I have to delete it, However if I start dvtm from xterm, it is OK. Change config.mk to use ncursesw (LIBS_UTF8). I already built with unicode $ldd dvtm linux-vdso.so.1 = (0x7fffa7ffe000) libc.so.6 = /lib/libc.so.6 (0x7f869f99c000) libutil.so.1 = /lib/libutil.so.1 (0x7f869f799000) libncursesw.so.5 = /lib/libncursesw.so.5 (0x7f869f552000) /lib64/ld-linux-x86-64.so.2 (0x7f869fd0e000) libdl.so.2 = /lib/libdl.so.2 (0x7f869f34e000) -- regards, GPG key 1024D/4434BAB3 2008-08-24 gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3 唐詩303 李商隱 嫦娥 雲母屏風燭影深 長河漸落曉星沈 嫦娥應悔偷靈藥 碧海青天夜夜心
Re: [dwm] [ANNOUNCE] dvtm-0.5
On Jan 30, 2009, at 6:43 AM, bill lam wrote: On Fri, 30 Jan 2009, Donald Chai wrote: On Jan 29, 2009, at 8:54 PM, bill lam wrote: 1. on my ubuntu, $TERM is xterm (actually it is 256 color), but dvtm cannot detect it and makes it a 8 (or 16?) color rxvt. You probably need to set TERM to xterm-256color. If 'infocmp xterm' says you have 8 colors, ncurses and dvtm will think your terminal only supports 8 colors. If you don't have the proper terminfo files, then be prepared for some fun with 'infocmp' and 'tic'. After install terminfo for xterm-256color, echo $TERM inside xterm now gives xterm-256color, but after enter dvtm, echo $TERM now gives rxvt-256color, why not xterm-256color?. Moreover colors are displayed incorrectly. This is worse than using the previous xterm setting. So you mean that if you run the following shell command both outside and inside dvtm, you get different results? for i in `seq 1 64`; do echo -e \e[38;5;${i}mXXX; done The colors *should* match. If not, that's a bug. TERM is set to rxvt or rxvt-256color because those are the escape sequences interpreted by madtty.c. If you have code that absolutely must have TERM=xterm, I think it's sufficient to modify keytable in that file. 2. if start dvtm from dmenu typing xterm -e dvtm there is always an extra ^Z placed in ttyin so that when I start to type any character, the ^Z appear and I have to delete it, However if I start dvtm from xterm, it is OK. Change config.mk to use ncursesw (LIBS_UTF8). I already built with unicode $ldd dvtm linux-vdso.so.1 = (0x7fffa7ffe000) libc.so.6 = /lib/libc.so.6 (0x7f869f99c000) libutil.so.1 = /lib/libutil.so.1 (0x7f869f799000) libncursesw.so.5 = /lib/libncursesw.so.5 (0x7f869f552000) /lib64/ld-linux-x86-64.so.2 (0x7f869fd0e000) libdl.so.2 = /lib/libdl.so.2 (0x7f869f34e000) There seems to be some sort of race condition between SIGWINCH being raised and some other magic. I personally use rxvt-unicode (which works fine with urxvt -e dvtm) and only ever use dvtm on remote computers, so I'm not inclined to dig any deeper into this.
Re: [dwm] [ANNOUNCE] dvtm-0.5
The color test is ok. I found that it was vim that misinterpret the color, By coerce term to xterm, it's ok now. -- regards, GPG key 1024D/4434BAB3 2008-08-24 gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3 唐詩217 李商隱 無題二首之一 鳳尾香羅薄幾重 碧文圓頂夜深縫 扇裁月魄羞難掩 車走雷聲語未通 曾是寂寥金燼暗 斷無消息石榴紅 斑騅只繫垂楊岸 何處西南任好風