Re: Blanks problem (was: mutt and screen: display problems)
On Sun, Sep 23, 2001 at 20:13:30 -0400, Matt Spong wrote: Maybe I'm missing something here, but when you start rxvt with -bg white, default will give you a white background... this is what it's supposed to do. That's why I don't want to use default. -- Vincent Lefèvre [EMAIL PROTECTED] - Web: http://www.vinc17.org/ - 100% validated HTML - Acorn Risc PC, Yellow Pig 17, Championnat International des Jeux Mathématiques et Logiques, TETRHEX, etc. Work: CR INRIA - computer arithmetic / SPACES project at LORIA
Blanks problem (was: mutt and screen: display problems)
In article [EMAIL PROTECTED], Thomas Dickey [EMAIL PROTECTED] wrote: I'd compare typescripts from the two sessions to see which feature of the terminfo is producing the blanks. In rxvt (TERM=rxvt): : 6D 08 6D 61 69 6C 0D 00 0D 0A 1B 28 42 1B 29 30 : m.mail.(B.)0 0010 : 1B 37 1B 5B 3F 34 37 68 1B 5B 31 3B 34 30 72 1B : .7.[?47h.[1;40r. 0020 : 5B 6D 0F 1B 5B 34 6C 1B 5B 33 39 3B 34 39 6D 1B : [m..[4l.[39;49m. 0030 : 5B 33 39 3B 34 39 6D 1B 5B 34 30 3B 31 48 1B 5B : [39;49m.[40;1H.[ 0040 : 32 4A 1B 5B 3F 34 37 6C 1B 38 0D 00 1B 37 1B 5B : 2J.[?47l.8...7.[ 0050 : 3F 34 37 68 1B 5B 31 3B 34 30 72 1B 5B 33 39 3B : ?47h.[1;40r.[39; 0060 : 34 39 6D 1B 5B 6D 0F 1B 5B 34 6C 1B 5B 33 37 6D : 49m.[m..[4l.[37m 0070 : 1B 5B 34 30 6D 1B 5B 33 37 6D 1B 5B 34 30 6D 1B : .[40m.[37m.[40m. 0080 : 5B 33 37 6D 1B 5B 34 30 6D 1B 5B 48 1B 5B 32 4A : [37m.[40m.[H.[2J 0090 : 1B 5B 31 6D 1B 5B 4B 0A 1B 5B 4B 0A 1B 5B 4B 0A : .[1m.[K..[K..[K. 00A0 : 1B 5B 4B 0A 1B 5B 4B 0A 1B 5B 4B 0A 1B 5B 4B 0A : .[K..[K..[K..[K. 00B0 : 1B 5B 4B 0A 1B 5B 4B 0A 1B 5B 4B 0A 1B 5B 4B 0A : .[K..[K..[K..[K. 00C0 : 1B 5B 4B 0A 1B 5B 4B 0A 1B 5B 4B 0A 1B 5B 4B 0A : .[K..[K..[K..[K. [snip] In screen (TERM=screen): : 1B 5B 6D 0F 6D 08 6D 61 69 6C 0D 0A 1B 5B 48 1B : .[m.m.mail...[H. 0010 : 5B 33 39 42 1B 5B 48 1B 5B 33 37 6D 1B 5B 34 30 : [39B.[H.[37m.[40 0020 : 6D 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 : m 0030 : 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 : 0040 : 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 : 0050 : 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 : 0060 : 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 : 0070 : 20 0D 0A 20 20 20 20 20 20 20 20 20 20 20 20 20 : .. 0080 : 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 : 0090 : 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 : 00A0 : 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 : 00B0 : 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 : 00C0 : 20 20 20 0D 0A 20 20 20 20 20 20 20 20 20 20 20 :.. 00D0 : 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 : 00E0 : 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 : 00F0 : 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 : 0100 : 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 : 0110 : 20 20 20 20 20 0D 0A 20 20 20 20 20 20 20 20 20 : .. [snip] both under LinuxPPC, with ncurses 5.2. Note that both rxvt and screen contain el=\E[K in their terminfos. -- Vincent Lefèvre [EMAIL PROTECTED] - Web: http://www.vinc17.org/ - 100% validated HTML - Acorn Risc PC, Yellow Pig 17, Championnat International des Jeux Mathématiques et Logiques, TETRHEX, etc. Work: CR INRIA - computer arithmetic / SPACES project at LORIA
Re: Blanks problem (was: mutt and screen: display problems)
On Sun, Sep 23, 2001 at 10:19:34AM +0200, Vincent Lefevre wrote: In article [EMAIL PROTECTED], Thomas Dickey [EMAIL PROTECTED] wrote: I'd compare typescripts from the two sessions to see which feature of the terminfo is producing the blanks. In rxvt (TERM=rxvt): ... In screen (TERM=screen): ... both under LinuxPPC, with ncurses 5.2. Note that both rxvt and screen contain el=\E[K in their terminfos. but I see from the dump that screen is not sending el's, but sending blanks instead. Perhaps it's a bug or limitation of screen (or something obscure in the terminfo that can be tweaked to appease screen). -- Thomas E. Dickey [EMAIL PROTECTED] http://invisible-island.net ftp://invisible-island.net
Re: Blanks problem (was: mutt and screen: display problems)
In article [EMAIL PROTECTED], Thomas Dickey [EMAIL PROTECTED] wrote: Note that both rxvt and screen contain el=\E[K in their terminfos. but I see from the dump that screen is not sending el's, but sending blanks instead. Perhaps it's a bug or limitation of screen (or something obscure in the terminfo that can be tweaked to appease screen). The bug doesn't come from screen (the program), because when I set TERM=screen though not being in screen, I get blanks too instead of el's, but this is a little different: : 6D 08 6D 61 69 6C 0D 00 0D 0A 1B 28 42 1B 29 30 : m.mail.(B.)0 0010 : 1B 5B 31 3B 34 30 72 1B 5B 6D 1B 5B 34 6C 1B 5B : .[1;40r.[m.[4l.[ 0020 : 33 39 3B 34 39 6D 1B 5B 3F 31 68 1B 3D 1B 5B 33 : 39;49m.[?1h.=.[3 0030 : 39 3B 34 39 6D 1B 5B 34 30 3B 31 48 0D 00 1B 5B : 9;49m.[40;1H...[ 0040 : 3F 31 6C 1B 3E 1B 5B 3F 31 68 1B 3D 1B 5B 31 3B : ?1l..[?1h.=.[1; 0050 : 34 30 72 1B 5B 33 39 3B 34 39 6D 1B 5B 6D 1B 5B : 40r.[39;49m.[m.[ 0060 : 34 6C 1B 5B 33 37 6D 1B 5B 34 30 6D 1B 5B 31 3B : 4l.[37m.[40m.[1; 0070 : 31 48 20 20 20 20 20 20 20 20 20 20 20 20 20 20 : 1H 0080 : 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 : 0090 : 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 : 00A0 : 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 : 00B0 : 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 : 00C0 : 20 20 1B 5B 32 3B 31 48 20 20 20 20 20 20 20 20 : .[2;1H 00D0 : 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 : 00E0 : 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 : 00F0 : 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 : 0100 : 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 : 0110 : 20 20 20 20 20 20 20 20 1B 5B 33 3B 31 48 20 20 : .[3;1H 0120 : 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 : [snip] -- Vincent Lefèvre [EMAIL PROTECTED] - Web: http://www.vinc17.org/ - 100% validated HTML - Acorn Risc PC, Yellow Pig 17, Championnat International des Jeux Mathématiques et Logiques, TETRHEX, etc. Work: CR INRIA - computer arithmetic / SPACES project at LORIA
Re: Blanks problem (was: mutt and screen: display problems)
On Sun, Sep 23, 2001 at 06:40:10PM +0200, Vincent Lefevre wrote: In article [EMAIL PROTECTED], Thomas Dickey [EMAIL PROTECTED] wrote: Note that both rxvt and screen contain el=\E[K in their terminfos. but I see from the dump that screen is not sending el's, but sending blanks instead. Perhaps it's a bug or limitation of screen (or something obscure in the terminfo that can be tweaked to appease screen). The bug doesn't come from screen (the program), because when I set TERM=screen though not being in screen, I get blanks too instead of el's, but this is a little different: I don't see that (if I set $TERM to screen). Perhaps it's related to your color scheme. -- Thomas E. Dickey [EMAIL PROTECTED] http://invisible-island.net ftp://invisible-island.net
Re: Blanks problem (was: mutt and screen: display problems)
In article [EMAIL PROTECTED], Thomas Dickey [EMAIL PROTECTED] wrote: I don't see that (if I set $TERM to screen). Perhaps it's related to your color scheme. I use the following: color attachment brightred black color error brightyellow black color indicator brightred black color markersredblack color messagebrightcyan black color normal brightwhiteblack color quoted brightgreenblack color signature brightcyan black color status black white color tilde yellow black color tree brightred black color index brightgreenblack ^~p~P color index brightcyan black !~P~fens-lyon\.fr color index brightmagenta black ~sannounce!~s^re: color index brightyellow black ~F color hdrdefault brightmagenta black color header brightyellow black ^from: color header brightwhiteblue^subject: color header brightgreenblack ^(to|cc|delivered-to): color header brightcyan black ^(x-mailer|user-agent): color header yellow black ^organization: color body brightyellow black (ht|f)tp://[-0-9A-Za-z_/.~:\#%@,+?=]*[0-9A-Za-z_/\#%] color body brightyellow black [-0-9A-Za-z_%.+]+@[-0-9A-Za-z_.]*[A-Za-z] I don't see why this would cause the problem. I had similar problems when I used TERM=xtermc or xterm-color. -- Vincent Lefèvre [EMAIL PROTECTED] - Web: http://www.vinc17.org/ - 100% validated HTML - Acorn Risc PC, Yellow Pig 17, Championnat International des Jeux Mathématiques et Logiques, TETRHEX, etc. Work: CR INRIA - computer arithmetic / SPACES project at LORIA
Re: Blanks problem (was: mutt and screen: display problems)
On Sun, Sep 23, 2001 at 09:52:45PM +0200, Vincent Lefevre wrote: In article [EMAIL PROTECTED], Thomas Dickey [EMAIL PROTECTED] wrote: I don't see that (if I set $TERM to screen). Perhaps it's related to your color scheme. I use the following: color attachment brightredblack the problem is that black is an explicit color, and if the terminal doesn't do back-color-erase (bce), then the (n)curses/slang library will paint cells that are black. If you chose default and used mutt linked appropriately with ncurses/slang, then it could clear the background rather than paint it. I'm using this (xterm is set to white characters on a black background): color hdrdefault red default color quoted brightblue default color signature red default color indicator brightyellow red color error brightred default color status yellow blue color tree magenta default # the thread tree in the index menu color tilde magenta default color message brightcyan default color markers brightcyan default color attachment brightmagenta default color search default green # how to hilite search patterns in the pager color header brightred default ^(From|Subject): color body magenta default (ftp|http)://[^ ]+ # point out URLs color body magenta default [-a-z_0-9.]+@[-a-z_0-9.]+# e-mail addresses color underline brightgreen default I don't see why this would cause the problem. I had similar problems when I used TERM=xtermc or xterm-color. xtermc corresponds to a terminal emulator which afaik isn't in use anymore. neither does bce. -- Thomas E. Dickey [EMAIL PROTECTED] http://invisible-island.net ftp://invisible-island.net
Re: Blanks problem (was: mutt and screen: display problems)
In article [EMAIL PROTECTED], Thomas Dickey [EMAIL PROTECTED] wrote: the problem is that black is an explicit color, and if the terminal doesn't do back-color-erase (bce), then the (n)curses/slang library will paint cells that are black. If you chose default and used mutt linked appropriately with ncurses/slang, then it could clear the background rather than paint it. OK, but default does not work with rxvt -bg white -fg black. So, this is not a good solution. Perhaps the problem is due to the fact that the screen terminfo doesn't have bce, though the real terminal has one. Perhaps I should create a screen-bce, based on screen. What do you think? -- Vincent Lefèvre [EMAIL PROTECTED] - Web: http://www.vinc17.org/ - 100% validated HTML - Acorn Risc PC, Yellow Pig 17, Championnat International des Jeux Mathématiques et Logiques, TETRHEX, etc. Work: CR INRIA - computer arithmetic / SPACES project at LORIA
Re: Blanks problem (was: mutt and screen: display problems)
On Mon, Sep 24, 2001 at 12:33:32AM +0200, Vincent Lefevre wrote: In article [EMAIL PROTECTED], Thomas Dickey [EMAIL PROTECTED] wrote: the problem is that black is an explicit color, and if the terminal doesn't do back-color-erase (bce), then the (n)curses/slang library will paint cells that are black. If you chose default and used mutt linked appropriately with ncurses/slang, then it could clear the background rather than paint it. OK, but default does not work with rxvt -bg white -fg black. So, but it does (I'm not sure why you say it doesn't). of course I normally use xterm. this is not a good solution. Perhaps the problem is due to the fact that the screen terminfo doesn't have bce, though the real terminal has one. Perhaps I should create a screen-bce, based on screen. What do you think? screen is aware of bce, because it looks in the original termcap for the corresponding data. (I've seen that recent versions of screen can be configured to use bce, but haven't tested it to see how well it works). -- Thomas E. Dickey [EMAIL PROTECTED] http://invisible-island.net ftp://invisible-island.net
Re: Blanks problem (was: mutt and screen: display problems)
In article [EMAIL PROTECTED], Thomas Dickey [EMAIL PROTECTED] wrote: OK, but default does not work with rxvt -bg white -fg black. So, but it does (I'm not sure why you say it doesn't). of course I normally use xterm. Well, when I say that it doesn't, I mean that I don't get a black background. Well, perhaps there's a method to set the background color *after* the terminal has been opened, but I don't know how to do that. screen is aware of bce, because it looks in the original termcap for the corresponding data. (I've seen that recent versions of screen can be configured to use bce, but haven't tested it to see how well it works). But Mutt uses the screen terminfo in screen, not the original one. So, I think it is better to add bce to the screen terminfo. -- Vincent Lefèvre [EMAIL PROTECTED] - Web: http://www.vinc17.org/ - 100% validated HTML - Acorn Risc PC, Yellow Pig 17, Championnat International des Jeux Mathématiques et Logiques, TETRHEX, etc. Work: CR INRIA - computer arithmetic / SPACES project at LORIA
Re: Blanks problem (was: mutt and screen: display problems)
In article [EMAIL PROTECTED], Thomas Dickey [EMAIL PROTECTED] wrote: On Mon, Sep 24, 2001 at 12:33:32AM +0200, Vincent Lefevre wrote: OK, but default does not work with rxvt -bg white -fg black. So, but it does (I'm not sure why you say it doesn't). of course I normally use xterm. Another problem with default, when used in Nettle or rxvt (with a black background): the bright attribute isn't taken into account, i.e. if I replace color normal brightwhiteblack by color normal brightwhitedefault it looks like color normal white black -- Vincent Lefèvre [EMAIL PROTECTED] - Web: http://www.vinc17.org/ - 100% validated HTML - Acorn Risc PC, Yellow Pig 17, Championnat International des Jeux Mathématiques et Logiques, TETRHEX, etc. Work: CR INRIA - computer arithmetic / SPACES project at LORIA
Re: Blanks problem (was: mutt and screen: display problems)
OK, but default does not work with rxvt -bg white -fg black. So, Well, when I say that it doesn't, I mean that I don't get a black background. Maybe I'm missing something here, but when you start rxvt with -bg white, default will give you a white background... this is what it's supposed to do. Matt -- Matt Spong || [EMAIL PROTECTED] || AIM: Spong1027 || http://www.forkbomb.net Those who desire to give up freedom in order to gain security, will not have, nor do they deserve, either one. -Benjamin Franklin PGP signature
Re: Blanks problem (was: mutt and screen: display problems)
On Mon, Sep 24, 2001 at 01:34:18AM +0200, Vincent Lefevre wrote: In article [EMAIL PROTECTED], Thomas Dickey [EMAIL PROTECTED] wrote: On Mon, Sep 24, 2001 at 12:33:32AM +0200, Vincent Lefevre wrote: OK, but default does not work with rxvt -bg white -fg black. So, but it does (I'm not sure why you say it doesn't). of course I normally use xterm. Another problem with default, when used in Nettle or rxvt (with a black background): the bright attribute isn't taken into account, i.e. if I replace ... that's why vim and vile have settings to tell how to setup colors based on whether the background is light or dark (because explicit color schemes aren't very flexible - to work with _those_ programs, I have one of my keys bound to toggle the terminal's reverse video). -- Thomas E. Dickey [EMAIL PROTECTED] http://invisible-island.net ftp://invisible-island.net