Changeset 4026 for neercs


Ignore:
Timestamp:
Nov 23, 2009, 2:57:43 PM (10 years ago)
Author:
Jean-Yves Lamoureux
Message:
  • Added src/python.c and ctrl-a-e to open (non-existing yet) single-command executer. Do not document this yet (hint hint)
Location:
neercs/trunk/src
Files:
1 added
6 edited

Legend:

Unmodified
Added
Removed
  • neercs/trunk/src/Makefile.am

    r3998 r4026  
    55                 term.c grab.c effects.c wm.c screensaver.c attach.c \
    66                 configuration.c mytrace.c mytrace.h input.c lock.c server.c \
    7                  client.c screen_list.c help.c              
    8 neercs_CFLAGS = @CACA_CFLAGS@
    9 neercs_LDADD = @CACA_LIBS@ @UTIL_LIBS@ @PAM_LIBS@
     7                 client.c screen_list.c help.c python.c             
     8neercs_CFLAGS = @CACA_CFLAGS@ @PYTHON3_CFLAGS@
     9neercs_LDADD = @CACA_LIBS@ @UTIL_LIBS@ @PAM_LIBS@ @PYTHON3_LIBS@
  • neercs/trunk/src/input.c

    r3968 r4026  
    179179        detach(screen_list);
    180180        break;
     181#ifdef USE_PYTHON
     182    case 'e':
     183        screen_list->python_command = 1;
     184        break;
     185#endif
    181186    }
    182187    return refresh;
  • neercs/trunk/src/neercs.h

    r4016 r4026  
    178178    int status;                  /* Status bar */
    179179    int help;                    /* Help */
     180    int python_command;          /* Python command */
    180181    int border_size;             /* Borders */
    181182    int window_list;             /* Window list */
     
    307308void draw_help(struct screen_list *screen_list);
    308309int help_handle_key(struct screen_list *screen_list, unsigned int c);
     310#ifdef USE_PYTHON
     311int python_command_handle_key(struct screen_list *screen_list, unsigned int c);
     312void draw_python_command(struct screen_list *screen_list);
     313#endif
    309314int update_window_list(int c, struct screen_list *screen_list);
    310315void draw_list(struct screen_list *screen_list);
  • neercs/trunk/src/screen_list.c

    r4023 r4026  
    5858    screen_list->mini = 1;
    5959    screen_list->help = 0;
     60    screen_list->python_command = 0;
    6061    screen_list->status = 1;
    6162    screen_list->eyecandy = 1;
  • neercs/trunk/src/screens.c

    r4014 r4026  
    231231        draw_list(screen_list);
    232232    }
     233#ifdef USE_PYTHON
     234    if(screen_list->python_command)
     235    {
     236        draw_python_command(screen_list);   
     237    }
     238#endif
    233239    screen_list->changed = 0;
    234240    for (i = screen_list->count - 1; i >= 0; i--)
  • neercs/trunk/src/server.c

    r4016 r4026  
    455455        return help_handle_key(screen_list, c); 
    456456    }
    457 
     457#ifdef USE_PYTHON
     458        if(screen_list->python_command)
     459    {
     460        return python_command_handle_key(screen_list, c);   
     461    }
     462#endif
     463   
    458464    /* CTRL-A has been pressed before, handle this as a command, except that
    459465     CTRL-A a sends literal CTRL-A */
Note: See TracChangeset for help on using the changeset viewer.