Re: screen discards undefined escape sequences

Mark Plaksin <[email protected]>
Newsgroups gmane.comp.gnu.screen
Message-ID <[email protected]>
Dan Nelson <[email protected]> writes:

> In the last episode (Jan 06), Mark Plaksin said:
>> 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.
>
> ESC A doesn't appear in my table.  I don't actually have a copy of
> X3.64, though, so I can't say for sure whether unknown escapes are
> supposed to be eaten or passed through.  Can you tell Emacs to send
> something else?

Emacs can be made to look for something else, sure.  But let me
rephrase my question:

What is the right way to get screen to print ESC A to the screen?  I
have tried adding the following to DoESC in ansi.c but instead of an
escape character I get a colored non-ASCII character and then an A.  I
also have the dungeon collapse around me after running screen a while.

          struct mchar happymchar;
          happymchar.image = '\033';
          happymchar.attr = NATTR;
          happymchar.font = 0;
          happymchar.color = 9;
          MPutChar(curr, &happymchar, curr->w_x, curr->w_y);
          LPutChar(&curr->w_layer, &happymchar, curr->w_x, curr->w_y);
          curr->w_x++;
          happymchar.image = c;
          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++;

What am I missing?


 

------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/NhFolB/TM
---------------------------------------------------------------------~->

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/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.