Changeset 0881cdd for global.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
  • global.c

    r719173c4 r0881cdd  
    120120  g->timerlist = NULL;
    121121  g->interrupted = FALSE;
     122
     123  /* set up a pad for input */
     124  g->input_pad = newpad(1, 1);
     125  nodelay(g->input_pad, 1);
     126  keypad(g->input_pad, 1);
     127  meta(g->input_pad, 1);
    122128}
    123129
     
    179185  idlok(owl_global_get_curs_msgwin(g), FALSE);
    180186
    181   nodelay(owl_global_get_curs_typwin(g), 1);
    182   keypad(owl_global_get_curs_typwin(g), TRUE);
    183187  wmove(owl_global_get_curs_typwin(g), 0, 0);
    184 
    185   meta(owl_global_get_curs_typwin(g), TRUE);
    186188}
    187189
Note: See TracChangeset for help on using the changeset viewer.