Changeset 1838 for neercs/trunk


Ignore:
Timestamp:
Oct 20, 2007, 12:23:06 AM (15 years ago)
Author:
Sam Hocevar
Message:
  • Cursor support in neercs.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • neercs/trunk/src/main.c

    r1834 r1838  
    5757    if(!dp)
    5858        return 1;
     59    caca_set_cursor(dp, 1);
    5960
    6061    n = argc - 1;
     
    247248                cucul_draw_cp437_box(cv, (n - 1 - j) * XTAB, j * YTAB,
    248249                                     w + (n - 1 - j) * XTAB + 1, h + j * YTAB + 1);
     250                /* Set cursor to the correct position */
     251                if(i == n - 1)
     252                    cucul_gotoxy(cv, (n - 1 - j) * XTAB + 1
     253                                        + cucul_get_cursor_x(screen[j].cv),
     254                                     j * YTAB + 1
     255                                        + cucul_get_cursor_y(screen[j].cv));
    249256            }
    250257
Note: See TracChangeset for help on using the changeset viewer.