lharding / tasknc

ncurses wrapper around taskwarrior
MIT License
117 stars 18 forks source link

src/keys.c: used KEY_EVENT only if it exists #57

Closed trofi closed 1 year ago

trofi commented 3 years ago

On ncurses-6.3 the build fails as:

src/keys.c:122:6: error: 'KEY_EVENT' undeclared here (not in a function); did you mean 'KEY_SLEFT'?
  122 |     {KEY_EVENT, "event"},
      |      ^~~~~~~~~
      |      KEY_SLEFT

ncurses-6.3 deprecated KEY_EVENT as:

 * mark wgetch-events feature as deprecated.
      + prevent  KEY_EVENT  from  appearing  in  curses.h  unless the
        configure option --enable-wgetch-events is used.