Changeset 556


Ignore:
Timestamp:
Mar 8, 2006, 9:58:07 PM (14 years ago)
Author:
Jean-Yves Lamoureux
Message:
  • Fixed blinking screen
File:
1 edited

Legend:

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

    r555 r556  
    7676
    7777    kk->drv.p->width = 80;
    78     kk->drv.p->height = 25;
     78    kk->drv.p->height = 24;
    7979    kk->drv.p->port = 7575; // 75 75 decimal ASCII -> KK   // FIXME, sadly
    8080
     
    170170    to_send = realloc(to_send, kk->qq->width * kk->qq->height * 15 * 3);
    171171   
    172 
    173     if (send(kk->drv.p->new_fd, "\033[s", 4, 0) == -1) {
     172    /* ANSI code for move(0,0)*/
     173    if (send(kk->drv.p->new_fd, "\033[1,1H", 6, 0) == -1) {
    174174        perror("send");
    175175        return;
    176176    }
     177   
    177178    if (send(kk->drv.p->new_fd, to_send, size, 0) == -1) {
    178179        perror("send");
    179180        return;
    180181    }
    181     /*   if (send(kk->drv.p->new_fd, "\033?75l\033[2J\033[H", 12, 0) == -1) {
    182         perror("send");
    183         return;
    184     }
    185     */
    186182}
    187183static void network_handle_resize(caca_t *kk)
Note: See TracChangeset for help on using the changeset viewer.