check if we can set the title of the terminal
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix Shell > check if we can set the title of the terminal




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    check if we can set the title of the terminal  
Laurent Schneider


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-30-04 01:09 AM

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





[ Post a follow-up to this message ]



    Re: check if we can set the title of the terminal  
Thomas Dickey


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-30-04 01:09 AM

Dana French <dfrench@mtxia.com> wrote:
> laurentschneider@yahoo.com (Laurent Schneider) wrote in message news:<fe0e
47b1.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





[ Post a follow-up to this message ]



    Re: check if we can set the title of the terminal  
Laurent Schneider


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-03-04 02:12 AM

> >> 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





[ Post a follow-up to this message ]



    Re: check if we can set the title of the terminal  
Thomas Dickey


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-03-04 02:12 AM

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





[ Post a follow-up to this message ]



    Re: check if we can set the title of the terminal  
Thomas Dickey


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-03-04 02:12 AM

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





[ Post a follow-up to this message ]



    Re: check if we can set the title of the terminal  
Thomas Dickey


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-03-04 02:13 AM

Dana French <dfrench@mtxia.com> wrote:
> laurentschneider@yahoo.com (Laurent Schneider) wrote in message news:<fe0e
47b1.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





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 12:14 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register