[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: setting xterm-title in a clean way
From: |
Thomas Dickey |
Subject: |
Re: setting xterm-title in a clean way |
Date: |
Sun, 4 Apr 2004 13:25:20 -0400 (EDT) |
On Sun, 4 Apr 2004, Folkert van Heusden wrote:
> Hi,
>
> I was wondering: is there a clean way to set the xterm title? I guess I
> could use printf("\033]0;%s\007", mytext) to bypass (n)curses but isn't
> there a clean way of doing things? Or can I safely use the printf-trick
> without confusing the terminal/(n)curses?
There's no 100% clean way to do this, since you're writing text that
ncurses doesn't have to know about. putp() would write to whatever
stream ncurses is using, so that might be preferable to printf (except
that you'd need something to format the string).
--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net