Ignore:
Timestamp:
Nov 14, 2006, 12:42:43 AM (14 years ago)
Author:
Sam Hocevar
Message:
  • Factored terminal title setting code.
  • Do not try to set the terminal title if TERM=linux.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/caca/driver_slang.c

    r1391 r1392  
    104104 */
    105105static void slang_init_palette(void);
    106 static void slang_set_title(char const *);
    107106static void slang_write_utf32(uint32_t);
    108107
     
    126125#endif
    127126
    128     slang_set_title("caca for S-Lang");
     127    _caca_set_term_title("caca for S-Lang");
    129128
    130129    /* Initialise slang library */
     
    176175static int slang_end_graphics(caca_display_t *dp)
    177176{
    178     slang_set_title("");
     177    _caca_set_term_title("");
    179178    SLtt_set_mouse_mode(0, 0);
    180179    SLtt_set_cursor_visibility(1);
     
    187186static int slang_set_display_title(caca_display_t *dp, char const *title)
    188187{
    189     slang_set_title(title);
     188    _caca_set_term_title(title);
    190189
    191190    return 0;
     
    448447}
    449448
    450 static void slang_set_title(char const *str)
    451 {
    452     fprintf(stdout, "\x1b]0;%s\x07\n", str);
    453     fflush(stdout);
    454 }
    455 
    456449static void slang_write_utf32(uint32_t ch)
    457450{
Note: See TracChangeset for help on using the changeset viewer.