commit - db0dfdd7e5c2c5a38ed7c3291a0615132bcb5945
commit + c301e4ed7f25d48be4d36d791f90cac50b0be419
blob - e63f4a7c65678ce2cdbd63fb24abb940c2551358
blob + 87eeaf0b99951e273aa30da21d81e7ab116412c7
--- tog/tog.c
+++ tog/tog.c
static int
get_compound_key(struct tog_view *view, int c)
{
- int n = 0;
+ int x, n = 0;
view->count = 0;
halfdelay(5); /* block for half a second */
+ wattron(view->window, A_BOLD);
+ wmove(view->window, view->nlines - 1, 0);
+ wclrtoeol(view->window);
+ waddch(view->window, ':');
do {
+ x = getcurx(view->window);
+ if (x != ERR && x < view->ncols)
+ waddch(view->window, c);
/*
* Don't overflow. Max valid request should be the greatest
* between the longest and total lines; cap at 10 million.
/* Massage excessive or inapplicable values at the input handler. */
view->count = n;
+ wattroff(view->window, A_BOLD);
cbreak(); /* return to blocking */
return c;
}