On Tue, Feb 19, 2008 at 02:56:02PM +0100, Claudio M. Alessi wrote:
> On Tue, Feb 19, 2008 at 03:25:04PM +0200, Daniel Bainton wrote:
> > IMO it would make sense to s/ESC/META/ the patch though, as it isn't just 
> > the
> > esc key that is affected.

Which keys are affected? I think they all generate an escape key + some
other characters.

> You are probably right, i just used ESC because it's what
> the ascii(7) man page show. Using META is even better and
> i'm pretty sure Marc will agree with us.

Could you please try the attached patch and report whether this solves
the problem? Also the delay you saw can be adjusted with the environment
variable ESCDELAY, see the dvtm-status script for an example.

Regards,
Marc

-- 
 Marc Andre Tanner >< http://www.brain-dump.org/ >< GPG key: CF7D56C0
diff --git a/dvtm.c b/dvtm.c
index 097f7ad..1f38371 100644
--- a/dvtm.c
+++ b/dvtm.c
@@ -966,6 +966,12 @@ main(int argc, char *argv[]) {
 			keypress:
 					if(sel && (!sel->minimized || isarrange(fullscreen))){
 						madtty_keypress(sel->term, code);
+						if(code == '\e') {
+							nodelay(stdscr, TRUE);
+							while((code = getch()) != ERR)
+								madtty_keypress(sel->term, code);
+							nodelay(stdscr, FALSE);
+						}
 						if(r == 1){
 							draw_content(sel);
 							wrefresh(sel->window);

Reply via email to