Changeset 4080 for neercs


Ignore:
Timestamp:
Nov 30, 2009, 5:07:52 PM (10 years ago)
Author:
Jean-Yves Lamoureux
Message:
  • do not use tabs in caca output (it breaks boxes) (courtesy of Romain Bignon)
Location:
neercs/trunk/src
Files:
2 edited

Legend:

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

    r4075 r4080  
    1 /* 
     1/*
    22 *  neercs        console-based window manager
    33 *  Copyright (c) 2006 Sam Hocevar <sam@zoy.org>
     
    220220    caca_draw_cp437_box(screen_list->cv, 0, 0, w, h);
    221221
    222     caca_printf(screen_list->cv, 2, 1, "Num \tName");
     222    caca_printf(screen_list->cv, 2, 1, "Num         Name");
    223223    for (i = 0; i < screen_list->count; i++)
    224224    {
     
    228228        else
    229229            caca_set_color_ansi(screen_list->cv, CACA_DEFAULT, CACA_DEFAULT);
    230         sprintf(line, "%d \t%s", i + 1, screen_list->screen[i]->title);
     230        sprintf(line, "%d           %s", i + 1, screen_list->screen[i]->title);
    231231
    232232        caca_printf(screen_list->cv, 2, i + 3, line);
  • neercs/trunk/src/help.c

    r4075 r4080  
    1 /* 
     1/*
    22 *  neercs        console-based window manager
    33 *  Copyright (c) 2006 Sam Hocevar <sam@zoy.org>
     
    4545    int x = (caca_get_canvas_width(screen_list->cv) - w) / 2;
    4646    int y = (caca_get_canvas_height(screen_list->cv) - h) / 2;
    47    
    48    
     47
     48
    4949    caca_set_color_ansi(screen_list->cv, CACA_BLUE, CACA_BLUE);
    5050    caca_fill_box(screen_list->cv, x, y, w, h, '#');
    5151    caca_set_color_ansi(screen_list->cv, CACA_DEFAULT, CACA_BLUE);
    5252    caca_draw_cp437_box(screen_list->cv, x, y, w, h);
    53    
     53
    5454    x += 2;
    5555    y++;
     
    6464    caca_printf(screen_list->cv, x, y++, "");
    6565    caca_printf(screen_list->cv, x, y++, "All shortcuts are in format 'ctrl-a-X' where X is :");
    66     caca_printf(screen_list->cv, x, y++, "n:\t Next window");
    67     caca_printf(screen_list->cv, x, y++, "p:\t Previous window");
    68     caca_printf(screen_list->cv, x, y++, "w:\t Switch window manager");
    69     caca_printf(screen_list->cv, x, y++, "c:\t Create new window");
    70     caca_printf(screen_list->cv, x, y++, "m:\t Thumbnails");
    71     caca_printf(screen_list->cv, x, y++, "d:\t Detach");
    72     caca_printf(screen_list->cv, x, y++, "k:\t Close window and kill associated process");
    73     caca_printf(screen_list->cv, x, y++, "h:\t This help");
     66    caca_printf(screen_list->cv, x, y++, "n:        Next window");
     67    caca_printf(screen_list->cv, x, y++, "p:        Previous window");
     68    caca_printf(screen_list->cv, x, y++, "w:        Switch window manager");
     69    caca_printf(screen_list->cv, x, y++, "c:        Create new window");
     70    caca_printf(screen_list->cv, x, y++, "m:        Thumbnails");
     71    caca_printf(screen_list->cv, x, y++, "d:        Detach");
     72    caca_printf(screen_list->cv, x, y++, "k:        Close window and kill associated process");
     73    caca_printf(screen_list->cv, x, y++, "h:        This help");
    7474    caca_printf(screen_list->cv, x, y++, "");
    7575    caca_printf(screen_list->cv, x, y++, "");
Note: See TracChangeset for help on using the changeset viewer.