Changeset 0881cdd for owl.c


Ignore:
Timestamp:
May 11, 2010, 7:42:13 PM (14 years ago)
Author:
David Benjamin <davidben@mit.edu>
Branches:
master, release-1.10, release-1.7, release-1.8, release-1.9
Children:
88e425f
Parents:
bcff94d
git-author:
David Benjamin <davidben@mit.edu> (05/06/10 01:46:48)
git-committer:
David Benjamin <davidben@mit.edu> (05/11/10 19:42:13)
Message:
Use a separate pad for input

wgetch calls a wrefresh on regular windows. I imagine this is for
echo(), which we do not use. Instead, we make a pad and only ever
wgetch on it.

This also means that the various nodelay settings on other windows are
unnecessary.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • owl.c

    rbcff94d r0881cdd  
    311311{
    312312  owl_input j;
    313   WINDOW *typwin;
    314 
    315   typwin = owl_global_get_curs_typwin(&g);
    316313
    317314  while (1) {
    318     j.ch = wgetch(typwin);
     315    j.ch = wgetch(g.input_pad);
    319316    if (j.ch == ERR) return;
    320317
     
    339336     
    340337      for (i = 1; i < bytes; i++) {
    341         int tmp =  wgetch(typwin);
     338        int tmp = wgetch(g.input_pad);
    342339        /* If what we got was not a byte, or not a continuation byte */
    343340        if (tmp > 0xff || !(tmp & 0x80 && ~tmp & 0x40)) {
Note: See TracChangeset for help on using the changeset viewer.