Ignore:
Timestamp:
Jun 13, 2008, 11:40:40 PM (14 years ago)
Author:
Pascal Terjan
Message:
  • Handle the title set in each screen
File:
1 edited

Legend:

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

    r2380 r2382  
    7878        return 1;
    7979    caca_set_cursor(dp, 1);
    80     caca_set_display_title(dp, PACKAGE_STRING);
    8180
    8281
     
    331330            update_windows_props(cv, screen_list, pty);
    332331
     332            if(screen_list->screen[pty]->title)
     333                caca_set_display_title(dp, screen_list->screen[pty]->title);
     334            else
     335                caca_set_display_title(dp, PACKAGE_STRING);
    333336
    334337            cucul_set_color_ansi(cv, CUCUL_DEFAULT, CUCUL_DEFAULT);
     
    485488
    486489    s->buf = NULL;
     490    s->title = NULL;
    487491    s->total = 0;
    488492    s->w = w+1;
     
    507511    if(s->buf)
    508512        free(s->buf);
     513    if(s->title)
     514        free(s->title);
    509515    s->buf = NULL;
    510516    if(s->cv)
Note: See TracChangeset for help on using the changeset viewer.