Ignore:
Timestamp:
Oct 20, 2007, 12:22:13 AM (12 years ago)
Author:
Sam Hocevar
Message:
  • Implemented caca_set_cursor() on the X11, ncurses and S-Lang drivers.
  • Use caca_set_cursor() in test/input.c.
File:
1 edited

Legend:

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

    r1785 r1837  
    351351        }
    352352    }
     353   
     354    x = cucul_get_cursor_x(dp->cv);
     355    y = cucul_get_cursor_y(dp->cv);
     356    move(y, x);
     357
    353358    refresh();
    354359}
     
    532537}
    533538
     539static void ncurses_set_cursor(caca_display_t *dp, int flags)
     540{
     541    curs_set(flags ? 2 : 0);
     542}
     543
    534544/*
    535545 * XXX: following functions are local
     
    804814    dp->drv.get_event = ncurses_get_event;
    805815    dp->drv.set_mouse = NULL;
    806     dp->drv.set_cursor = NULL;
     816    dp->drv.set_cursor = ncurses_set_cursor;
    807817
    808818    return 0;
Note: See TracChangeset for help on using the changeset viewer.