A little termcap reading shows that some older hadrware also has a set title 
feature (with moderately different control sequences from xterm). lynx 
couldtest hs to test for support and use ts fro instructions on how to do it.

>From the termcap man page

       hs   Has a status line
       ds   Disable status line
       ts   Move cursor to column %1 of status line

in xterm, and presumably others, sending <ts>Ritle<BEL> sets the staus line 
(aka xterm title). You could cut ts off the beginning of ds and take the rest 
as the end of the title string if you felt the need. Title setting code could 
be as simple as

void set_title(const char *t)
{
    char *ts;

    if (tgetent("hs") && (td=tgetstr("ts", NULL))!=NULL)
    {
        tputs(ts);
        fputs(t, stdout);
        fputc('\007', stdout);
    }
}

-- 
Duncan (-:
"software industry, the: unique industry where selling substandard goods is
legal and you can charge extra for fixing the problems."



; To UNSUBSCRIBE: Send "unsubscribe lynx-dev" to [EMAIL PROTECTED]

Reply via email to