|
Home > Archive > Unix Shell > October 2004 > check if we can set the title of the terminal
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
check if we can set the title of the terminal
|
|
| Laurent Schneider 2004-09-29, 8:09 pm |
| Hi there,
My problem is very common, I have this question in mind since a
decade...
I want to set my terminal title/name: echo '<esc>]2;TITLE<CTRL-G>'
But only for the supported terminal. Instead of doing
case $TERM in aixterm|xterm|dtterm...
I am doing
if `tput >/dev/null 2>&1 kf12`; then echo '<esc>]2;TITLE<CTRL-G>'; fi
Apparently, most Terminal supporting KF12 also support Title.
Could you please give me your opinion ? I would be please to discover
something better !
Kindest Regards
Laurent
| |
| Thomas Dickey 2004-09-29, 8:09 pm |
| Dana French <dfrench@mtxia.com> wrote:
> laurentschneider@yahoo.com (Laurent Schneider) wrote in message news:<fe0e47b1.0409290235.55bc8287@posting.google.com>...
better
case $TERM in *xterm*|rxvt*|dtterm*...
[vbcol=seagreen]
kf12 is unrelated, unfortunately.
None of the terminfo capabilities deal with this (sorry).
[vbcol=seagreen]
> You may want to look at "shell curses" which is a shell function
> library based on the C language "curses" library:
He wasn't asking any question relevant to your answer.
--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net
| |
| Laurent Schneider 2004-10-02, 9:12 pm |
| > >> laurentschneider@yahoo.com (Laurent Schneider) wrote
>
> Thomas Dickey <dickey@saltmine.radix.net> wrote
> kf12 is unrelated, unfortunately.
> None of the terminfo capabilities deal with this (sorry).
>
kf12 is function key F12, and vt100 and ansi does not support it, but
aixterm, xterm and dtterm do support it on my machine (AIX). I also
tried briefly on linux, and konsole and gnome do support kf12.
I admit kf12 is not related to title of terminal.
Thank you for your feedback
Laurent
| |
| Thomas Dickey 2004-10-02, 9:12 pm |
| Laurent Schneider <laurentschneider@yahoo.com> wrote:
[vbcol=seagreen]
> kf12 is function key F12, and vt100 and ansi does not support it, but
I know that - but many terminals have function keys and do not
support titlebars. But termcap/terminfo predate windowing systems
where titlebars would be used. A few terminal descriptions use the
status-line capabilities for this purpose, but that is done inconsistently,
so it's not useful in this case.
--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net
| |
| Thomas Dickey 2004-10-02, 9:12 pm |
| Laurent Schneider <laurentschneider@yahoo.com> wrote:
[vbcol=seagreen]
> kf12 is function key F12, and vt100 and ansi does not support it, but
I know that - but many terminals have function keys and do not
support titlebars. But termcap/terminfo predate windowing systems
where titlebars would be used. A few terminal descriptions use the
status-line capabilities for this purpose, but that is done inconsistently,
so it's not useful in this case.
--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net
| |
| Thomas Dickey 2004-10-02, 9:13 pm |
| Dana French <dfrench@mtxia.com> wrote:
> laurentschneider@yahoo.com (Laurent Schneider) wrote in message news:<fe0e47b1.0409290235.55bc8287@posting.google.com>...
better
case $TERM in *xterm*|rxvt*|dtterm*...
[vbcol=seagreen]
kf12 is unrelated, unfortunately.
None of the terminfo capabilities deal with this (sorry).
[vbcol=seagreen]
> You may want to look at "shell curses" which is a shell function
> library based on the C language "curses" library:
He wasn't asking any question relevant to your answer.
--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net
|
|
|
|
|