Ignore:
Timestamp:
May 26, 2006, 9:00:04 AM (14 years ago)
Author:
Sam Hocevar
Message:
  • UTF-8 input support for ncurses.
  • Hack for 16-color support in xfce4-terminal for both ncurses and slang.
File:
1 edited

Legend:

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

    r982 r986  
    468468    colorterm = getenv("COLORTERM");
    469469
    470     if(term && !strcmp(term, "xterm"))
    471     {
    472         /* If we are using gnome-terminal, it's really a 16 colour terminal */
    473         if(colorterm && !strcmp(colorterm, "gnome-terminal"))
    474         {
    475             (void)putenv("TERM=xterm-16color");
    476             return;
    477         }
    478 
    479         /* Ditto if we are using Konsole */
    480         other = getenv("KONSOLE_DCOP_SESSION");
    481         if(other)
    482         {
    483             (void)putenv("TERM=xterm-16color");
    484             return;
    485         }
     470    if(!term || strcmp(term, "xterm"))
     471        return;
     472
     473    /* If we are using gnome-terminal, it's really a 16 colour terminal.
     474     * Ditto if we are using xfce4-terminal, or Konsole. */
     475    if((colorterm && (!strcmp(colorterm, "gnome-terminal")
     476                       || !strcmp(colorterm, "Terminal")))
     477         || getenv("KONSOLE_DCOP_SESSION"))
     478    {
     479        (void)putenv("TERM=xterm-16color");
     480        return;
    486481    }
    487482}
Note: See TracChangeset for help on using the changeset viewer.