Ignore:
Timestamp:
05/22/09 11:03:40 (4 years ago)
Author:
pterjan
Message:

Send cursor position, now that we no longer export full canvas

File:
1 edited

Legend:

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

    r3498 r3500  
    209209                fcntl(screen_list->socket[SOCK_CLIENT], F_SETFL, O_NONBLOCK); 
    210210            } 
    211             else if(!strncmp("REFRESH", buf, 7)) 
    212             { 
    213                 int dt; 
     211            else if(!strncmp("REFRESH ", buf, 8)) 
     212            { 
     213                int dt, x, y; 
     214                /* FIXME check the length before calling atoi*/ 
     215                x = atoi(buf+8); 
     216                y = atoi(buf+19); 
     217                caca_gotoxy(screen_list->cv, x, y); 
    214218                caca_refresh_display(screen_list->dp); 
    215219                dt = caca_get_display_time(screen_list->dp); 
Note: See TracChangeset for help on using the changeset viewer.