tag 512544 + patch thanks The problem is that ncurses decides to select() on its own, and sets a default delay value of 1000 miliseconds for it, which is one full second.
This can be modified, and I default it to 100msec now, which makes such problems bearable for the UI (0.1 sec is not perceived as slow) and should still work across slow internet links. The user can pass now a -e 1000 argument to set it back to the 1s default if they experience issues due to e.g. a slow link, or usage on a really slow serial link e.g. I've not patched the manpage though ;) Regards. diff -u dvtm-0.4.1/debian/changelog dvtm-0.4.1/debian/changelog --- dvtm-0.4.1.orig/dvtm.c +++ dvtm-0.4.1/dvtm.c @@ -140,6 +140,7 @@ bool need_screen_resize = true; int width, height; bool running = true; +int esc_delay = 100; void eprint(const char *errstr, ...) { @@ -850,6 +851,7 @@ signal(SIGWINCH, sigwinch_handler); signal(SIGCHLD, sigchld_handler); signal(SIGTERM, sigterm_handler); + set_escdelay(esc_delay); } void @@ -868,7 +870,7 @@ void usage() { cleanup(); - eprint("usage: dvtm [-v] [-m mod] [-s status] [cmd...]\n"); + eprint("usage: dvtm [-v] [-e escdelay] [-m mod] [-s status] [cmd...]\n"); exit(EXIT_FAILURE); } @@ -887,6 +889,16 @@ continue; } switch (argv[arg][1]) { + case 'e': + if (++arg >= argc) + usage(); + int delay = atoi(argv[arg]); + if (delay < 50) + delay = 50; + if (delay > 1000) + delay = 1000; + esc_delay = delay; + break; case 'v': puts("dvtm-"VERSION" (c) 2007-2008 Marc Andre Tanner"); exit(EXIT_SUCCESS); -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org