Ignore:
Timestamp:
Aug 2, 2008, 12:23:49 PM (13 years ago)
Author:
Jean-Yves Lamoureux
Message:
  • We can now choose current window with ctrl-a-N where N is 0-9
File:
1 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    {
Note: See TracChangeset for help on using the changeset viewer.