screen discards undefined escape sequences
Mark Plaksin <[email protected]>
| Newsgroups | gmane.comp.gnu.screen |
|---|---|
| Message-ID | <[email protected]> |
screen discards certain escape sequences. For example if you run this:
echo ^[Hello # where ^[ is an actual escape character
you get this:
ello
Emacs' term-mode looks for an escape sequence (^[AnSiT) to do directory
tracking. This fails inside of screen because screen discards the ^[A.
DoESC in ansi.c looks like the culprit to me. If intermediate is 0 and
the escape sequence is not special to screen, DoESC does nothing with
the sequence--it gets dropped. Is there a reason for this behavior?
I've come close to fixing it but haven't gotten it quite right. Can
somebody give me a clue how I can get screen to send ^[A to the
screen? I've tried using a modified version of what looks like the
"OK, print this character" code from ansi.c (below) but I haven't been
able to get it quite right. I end up with a colored character before
the A and it screen dies at random times :(
Thanks for any insight!
if (curr->w_insert)
{
save_mline(&curr->w_mlines[curr->w_y], cols);
MInsChar(curr, &curr->w_rend, curr->w_x, curr->w_y);
LInsChar(&curr->w_layer, &curr->w_rend, curr->w_x, curr->w_y, &mline_old);
curr->w_x++;
}
else
{
MPutChar(curr, &curr->w_rend, curr->w_x, curr->w_y);
LPutChar(&curr->w_layer, &curr->w_rend, curr->w_x, curr->w_y);
curr->w_x++;
}
Yahoo! Groups Links
To visit your group on the web, go to:
http://groups.yahoo.com/group/gnu-screen/
To unsubscribe from this group, send an email to:
[email protected]
Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/