--- ../dvtm-0.4.orig/dvtm.c 2008-02-16 12:09:13.191369197 +0100 +++ dvtm.c 2008-02-18 12:52:38.977473837 +0100 @@ -55,6 +55,7 @@ #define CTRL(k) ((k) & 0x1F) #endif #define CTRL_ALT(k) ((k) + (129 - 'a')) +#define ESC 27 #define MAX_ARGS 2 @@ -949,6 +950,15 @@ if(sel && (!sel->minimized || isarrange(fullscreen))){ madtty_keypress(sel->term, code); if(r == 1){ + + if(code == ESC && ! is_modifier(ESC)) { + nodelay(stdscr, TRUE); + code = getch(); + nodelay(stdscr, FALSE); + if( code != ERR ) + madtty_keypress(sel->term, code); + } + draw_content(sel); wrefresh(sel->window); }