Ignore:
Timestamp:
Nov 23, 2003, 4:44:59 AM (17 years ago)
Author:
Sam Hocevar
Message:
  • src/caca.c: + Mouse initialisation in ncurses.
  • src/io.c: + Mouse support in ncurses.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/src/caca.c

    r205 r213  
    6161
    6262#if defined(USE_NCURSES)
     63static mmask_t oldmask;
    6364int _caca_attr[16];
    6465#endif
     
    125126#elif defined(USE_NCURSES)
    126127    int i;
     128    mmask_t newmask;
    127129
    128130    initscr();
     
    133135    nodelay(stdscr, TRUE);
    134136    curs_set(0);
     137
     138    newmask = ALL_MOUSE_EVENTS;
     139    mousemask(newmask, &oldmask);
    135140
    136141    start_color();
     
    307312    SLsmg_reset_smg();
    308313#elif defined(USE_NCURSES)
     314    mousemask(oldmask, NULL);
    309315    curs_set(1);
    310316    endwin();
Note: See TracChangeset for help on using the changeset viewer.