Changeset 1391
- Timestamp:
- Nov 14, 2006, 12:33:49 AM (17 years ago)
- Location:
- libcaca/trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
libcaca/trunk/caca/driver_ncurses.c
r1333 r1391 60 60 static void ncurses_check_terminal(void); 61 61 #endif 62 static void ncurses_set_title(char const *); 62 63 static void ncurses_write_utf32(uint32_t); 63 64 … … 110 111 #endif 111 112 113 ncurses_set_title("caca for ncurses"); 114 112 115 initscr(); 113 116 keypad(stdscr, TRUE); … … 167 170 static int ncurses_end_graphics(caca_display_t *dp) 168 171 { 172 ncurses_set_title(""); 169 173 mousemask(dp->drv.p->oldmask, NULL); 170 174 curs_set(1); … … 179 183 static int ncurses_set_display_title(caca_display_t *dp, char const *title) 180 184 { 181 return -1; 185 ncurses_set_title(title); 186 187 return 0; 182 188 } 183 189 … … 430 436 #endif 431 437 438 static void ncurses_set_title(char const *str) 439 { 440 fprintf(stdout, "\x1b]0;%s\x07\n", str); 441 fflush(stdout); 442 } 443 432 444 static void ncurses_write_utf32(uint32_t ch) 433 445 { -
libcaca/trunk/caca/driver_slang.c
r1333 r1391 104 104 */ 105 105 static void slang_init_palette(void); 106 static void slang_set_title(char const *); 106 107 static void slang_write_utf32(uint32_t); 107 108 … … 124 125 signal(SIGWINCH, sigwinch_handler); 125 126 #endif 127 128 slang_set_title("caca for S-Lang"); 126 129 127 130 /* Initialise slang library */ … … 173 176 static int slang_end_graphics(caca_display_t *dp) 174 177 { 178 slang_set_title(""); 175 179 SLtt_set_mouse_mode(0, 0); 176 180 SLtt_set_cursor_visibility(1); … … 183 187 static int slang_set_display_title(caca_display_t *dp, char const *title) 184 188 { 185 /* FIXME */ 186 return -1; 189 slang_set_title(title); 190 191 return 0; 187 192 } 188 193 … … 443 448 } 444 449 450 static void slang_set_title(char const *str) 451 { 452 fprintf(stdout, "\x1b]0;%s\x07\n", str); 453 fflush(stdout); 454 } 455 445 456 static void slang_write_utf32(uint32_t ch) 446 457 { -
libcaca/trunk/caca/graphics.c
r1362 r1391 27 27 * 28 28 * If libcaca runs in a window, try to change its title. This works with 29 * the OpenGL, X11 and Win32 drivers.29 * the ncurses, S-Lang, OpenGL, X11 and Win32 drivers. 30 30 * 31 31 * If an error occurs, -1 is returned and \b errno is set accordingly: -
libcaca/trunk/doc/migrating.dox
r1369 r1391 188 188 189 189 - \b caca_load_sprite(): use cucul_import_file(). 190 - \b caca_get_sprite_frames(): use cucul_get_ canvas_frame_count().190 - \b caca_get_sprite_frames(): use cucul_get_frame_count(). 191 191 - \b caca_get_sprite_width(): use cucul_get_canvas_width(). 192 192 - \b caca_get_sprite_height(): use cucul_get_canvas_height(). 193 193 - \b caca_get_sprite_dx(): use cucul_get_canvas_handle_x(). 194 194 - \b caca_get_sprite_dy(): use cucul_get_canvas_handle_y(). 195 - \b caca_draw_sprite(): use cucul_set_ canvas_frame() and cucul_blit().195 - \b caca_draw_sprite(): use cucul_set_frame() and cucul_blit(). 196 196 - \b caca_free_sprite(): use cucul_free_canvas(). 197 197
Note: See TracChangeset
for help on using the changeset viewer.