Subject: tput problem and fix with li#XX
To: None <current-users@sun-lamp.cs.berkeley.edu>
From: Eric J. Haug <ejh@slueas.slu.edu>
List: current-users
Date: 03/17/1994 14:13:35
The distributed tput program fails to properly deal with the li#XX
option.
The following diff is one possible fix.
eric
*** tput.c.distr Fri Feb 18 15:37:50 1994
--- tput.c.slu Fri Feb 18 15:47:50 1994
***************
*** 97,105 ****
p = "is";
break;
case 'l':
! if (!strcmp(p, "longname"))
prlongname(tbuf);
! continue;
case 'r':
if (!strcmp(p, "reset"))
p = "rs";
--- 97,110 ----
p = "is";
break;
case 'l':
! if (!strcmp(p, "longname")) {
prlongname(tbuf);
! continue;
! } else {
! if (!strcmp(p, "lines"))
! p = "li";
! break;
! }
case 'r':
if (!strcmp(p, "reset"))
p = "rs";
------------------------------------------------------------------------------