Changeset 2639 for neercs


Ignore:
Timestamp:
Aug 2, 2008, 12:23:49 PM (12 years ago)
Author:
Jean-Yves Lamoureux
Message:
  • We can now choose current window with ctrl-a-N where N is 0-9
Location:
neercs/trunk/src
Files:
4 edited

Legend:

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

    r2626 r2639  
    7373{
    7474    int refresh = 0;
     75
     76    if(c >= '0' && c<='9')
     77    {
     78        int n = c-49;
     79        if(n<screen_list->count) {
     80            screen_list->prevpty = screen_list->pty;
     81            screen_list->pty = n==-1?10:n;
     82            return 1;
     83        } else {
     84            return 0;
     85        }
     86    }
     87
    7588    switch(c)
    7689    {
  • neercs/trunk/src/main.c

    r2625 r2639  
    357357            {
    358358                cucul_import_memory(screen_list->cv, buf+8, n-8, "caca");
    359 
    360359                caca_refresh_display(screen_list->dp);
    361360            }
  • neercs/trunk/src/screens.c

    r2495 r2639  
    179179    if(!screen_list->count) return;
    180180
     181
     182    debug("Current pty is %d\n", screen_list->pty);
     183
    181184    screen_list->width  = cucul_get_canvas_width(screen_list->cv);
    182185    screen_list->height = cucul_get_canvas_height(screen_list->cv) - (screen_list->mini*6);
  • neercs/trunk/src/server.c

    r2638 r2639  
    8888        if(write(screen_list->socket[SOCK_CLIENT], buf2, bytes+8) <= 0 && errno != EAGAIN)
    8989        {
     90            debug("Can't refresh (%s), with %d bytes\n", strerror(errno), bytes+8);
    9091            return -1;
    9192        }
Note: See TracChangeset for help on using the changeset viewer.