On Wed, Jan 04, 2023 at 02:33:57PM -0300, Crystal Kolipe wrote:
| On Wed, Jan 04, 2023 at 04:42:55PM +0100, Paul de Weerd wrote:
| > Hi Crystal,
| > 
| > I tried your patch on my laptop.  With it applied, and my TERM set to
| > 'xterm', I do get colors in mutt and tmux.
| 
| Great!  Thanks for testing :).
| 
| > The latter, however, shows
| > '^@^@' before the PS1 prompt upon starting a new session (`tmux new`),
| > behavior I don't see with a 'real' xterm.
| 
| This looks like an off-by-one in the wscons code, (not introduced by me!)
| 
| Does the following patch, (on top of the last one), fix it?

Fixes only half of it: we're down to one ^@ now (which is not fixed
with a s/1/2/ in your below diff).

Cheers,

Paul

| --- dev/wscons/wsemul_vt100_subr.c.dist       Mon May 25 06:55:49 2020
| +++ dev/wscons/wsemul_vt100_subr.c    Wed Jan  4 14:22:05 2023
| @@ -231,7 +231,7 @@
|       switch (A3(edp->modif1, edp->modif2, c)) {
|       case A3('>', '\0', 'c'): /* DA secondary */
|               wsdisplay_emulinput(edp->cbcookie, WSEMUL_VT_ID2,
| -                 sizeof(WSEMUL_VT_ID2));
| +                 sizeof(WSEMUL_VT_ID2)-1);
|               break;
|  
|       case A3('\0', '\0', 'J'): /* ED selective erase in display */

-- 
>++++++++[<++++++++++>-]<+++++++.>+++[<------>-]<.>+++[<+
+++++++++++>-]<.>++[<------------>-]<+.--------------.[-]
                 http://www.weirdnet.nl/                 

Reply via email to