Ticket #3011: gpm-more-x-terms.patch

File gpm-more-x-terms.patch, 650 bytes (added by acobar, 11 years ago)

gpm counterpart patch

  • src/lib/liblow.c

    old new  
    201201 
    202202   /*....................................... First of all, check xterm */ 
    203203 
    204    if ((term=(char *)getenv("TERM")) && !strncmp(term,"xterm",5)) { 
     204   if ((term = (char *) getenv ("TERM")) != NULL && 
     205       (! strncmp (term, "xterm", 5) || ! strncmp (term, "rxvt", 4) || 
     206        (! strncmp (term, "screen", 6) && 
     207         (term = (char *) getenv ("DISPLAY")) != NULL && *term != '\0' 
     208        ) 
     209       ) 
     210      ) { 
    205211      if(gpm_tried) return gpm_fd; /* no stack */ 
    206212      gpm_fd=-2; 
    207213      GPM_XTERM_ON;