- Timestamp:
- Jun 13, 2008, 11:40:40 PM (13 years ago)
- Location:
- neercs/trunk/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
neercs/trunk/src/main.c
r2380 r2382 78 78 return 1; 79 79 caca_set_cursor(dp, 1); 80 caca_set_display_title(dp, PACKAGE_STRING);81 80 82 81 … … 331 330 update_windows_props(cv, screen_list, pty); 332 331 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); 333 336 334 337 cucul_set_color_ansi(cv, CUCUL_DEFAULT, CUCUL_DEFAULT); … … 485 488 486 489 s->buf = NULL; 490 s->title = NULL; 487 491 s->total = 0; 488 492 s->w = w+1; … … 507 511 if(s->buf) 508 512 free(s->buf); 513 if(s->title) 514 free(s->title); 509 515 s->buf = NULL; 510 516 if(s->cv) -
neercs/trunk/src/neercs.h
r2381 r2382 41 41 int fd; 42 42 unsigned char *buf; 43 char *title; 43 44 long int total; 44 45 int bell; -
neercs/trunk/src/term.c
r2368 r2382 303 303 304 304 string = malloc(final - (semicolon + 1) + 1); 305 memcpy(string, buffer + (semicolon + 1), final - (semicolon + 1));305 memcpy(string, buffer + i + (semicolon + 1), final - (semicolon + 1)); 306 306 string[final - (semicolon + 1)] = '\0'; 307 307 debug("ansi import: got OSC command %i string '%s'", command, 308 308 string); 309 free(string); 309 if(command == 0 || command == 2) 310 { 311 if(sc->title) 312 free(sc->title); 313 sc->title = string; 314 } 315 else 316 free(string); 310 317 } 311 318
Note: See TracChangeset
for help on using the changeset viewer.