Changeset 4412 for neercs


Ignore:
Timestamp:
Aug 15, 2010, 1:18:43 PM (9 years ago)
Author:
Pascal Terjan
Message:
  • Change C-a h to dump hardcopy, like screen
Location:
neercs/trunk/src
Files:
5 edited

Legend:

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

    r4391 r4412  
    66                 configuration.c mytrace.c mytrace.h input.c lock.c server.c \
    77                 client.c screen_list.c help.c python/interpreter.c python/py_module.c \
    8                  python/py_module.h widgets.c widgets.h ansi.c
     8                 python/py_module.h widgets.c widgets.h ansi.c actions.c
    99neercs_CFLAGS = @CACA_CFLAGS@ @PYTHON_CFLAGS@
    1010neercs_LDADD = @CACA_LIBS@ @MATH_LIBS@ @UTIL_LIBS@ @PAM_LIBS@ @PYTHON_LIBS@
  • neercs/trunk/src/effects.c

    r4366 r4412  
    160160    {
    161161        char text[256];
    162         sprintf(text, "Help: ctrl-a-h");
     162        sprintf(text, "Help: ctrl-a-?");
    163163        caca_set_color_ansi(screen_list->cv, CACA_BLUE, CACA_BLUE);
    164164        while (x <
  • neercs/trunk/src/help.c

    r4366 r4412  
    2626int help_handle_key(struct screen_list *screen_list, unsigned int c)
    2727{
    28     if (c == CACA_KEY_ESCAPE || c == 'h')
     28    if (c == CACA_KEY_ESCAPE || c == '?')
    2929    {
    3030        screen_list->modals.help = 0;
     
    6969    caca_printf(screen_list->cv, x, y++, "d:        Detach");
    7070    caca_printf(screen_list->cv, x, y++, "k:        Close window and kill associated process");
    71     caca_printf(screen_list->cv, x, y++, "h:        This help");
     71    caca_printf(screen_list->cv, x, y++, "h:        Dump screen into a file");
     72    caca_printf(screen_list->cv, x, y++, "?:        This help");
    7273    caca_printf(screen_list->cv, x, y++, "");
    7374    caca_printf(screen_list->cv, x, y++, "");
  • neercs/trunk/src/input.c

    r4366 r4412  
    162162        break;
    163163    case 'h':
     164    case 0x08:                 // CACA_KEY_CTRL_H:
     165        dump_to_file(screen_list);
     166        break;
    164167    case '?':
    165     case 0x08:                 // CACA_KEY_CTRL_H:
    166168        screen_list->modals.help = !screen_list->modals.help;
    167169        refresh = 1;
  • neercs/trunk/src/neercs.h

    r4366 r4412  
    383383void screensaver_flying_toasters_kill(struct screen_list *screen_list);
    384384
    385 
     385/* Actions */
     386void dump_to_file(struct screen_list *screen_list);
    386387
    387388/* Recurrents */
Note: See TracChangeset for help on using the changeset viewer.