public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Re: command prompt window title
       [not found] <5.2.0.9.2.20030331152805.02b537d0@pop3.cris.com>
@ 2003-04-01  1:02 ` Igor Pechtchanski
       [not found] ` <Pine.GSO.4.44.0303311959110.21921-100000@slinky.cs.nyu.edu >
  1 sibling, 0 replies; 8+ messages in thread
From: Igor Pechtchanski @ 2003-04-01  1:02 UTC (permalink / raw)
  To: Randall R Schulz; +Cc: cygwin

On Mon, 31 Mar 2003, Randall R Schulz wrote:

> At 15:19 2003-03-31, you wrote:
> >On Mon, 31 Mar 2003, Randall R Schulz wrote:
> >
> > > Anoop,
> > >
> > > At 11:38 2003-03-31, you wrote:
> > >
> > > >...
> > > >
> > > >Anyway, after I run vi, the window title changes
> > > >to "vi <fname>" where <fname> is the file that
> > > >I'm editing.  When I quit vi, the title of the
> > > >window remains that way until I quit the window,
> > > >or I use vi again with another file, in which
> > > >case it changes to "vi <newfilename>".
> > >
> > > It sounds to me like there's a script or other intervening command
> > > definition handling your invocation of "vi."
> > >
> > > Please show us the output of "where vi" (assuming, as you state above,
> > > that you're using tcsh). If you're using BASH, then show us the output
> > > of "type -a vi".
> > >
> > > ...
> > >
> > > >Thanks,
> > > >-Anoop
> > >
> > > Randall Schulz
> >
> >Randall,
> >
> >Most likely there is no wrapper script.  This is an option of "vim"
> >itself.  In vim, "help title".
> >     Igor
>
> Igor,
>
> That explains why I could not find documentation for the "title /
> notitle" command when Thorsten mentioned it: I looked in the man and
> info documentation.
>
> However, in my Cygwin Vim I cannot get a title to show even when I
> ":set titlestring=something" and ":set title". I tried suspending and
> resuming Vim, too, but still no title. Vim --version" does indicate
> that it was configured for "+title," so I'm uncertain what I'm doing
> wrong that keeps me from getting a title. Maybe it's being displaced
> through time and space to Anoop's system.
>
> Randall Schulz

Randall,

I believe the title/notitle Thorsten meant was the option in the CYGWIN
environment variable, and had nothing to do with vim.

As for vim, when TERM=cygwin, the title of the Cygwin console is not
changed, but I think this is related to the incomplete terminfo entry for
cygwin.  If you set TERM=xterm (in the Cygwin console), vim *will* set the
title (I used the example in "help title").
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Knowledge is an unending adventure at the edge of uncertainty.
  -- Leto II


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: command prompt window title
       [not found] ` <Pine.GSO.4.44.0303311959110.21921-100000@slinky.cs.nyu.edu >
@ 2003-04-01  1:29   ` Randall R Schulz
  2003-04-01 15:05     ` Igor Pechtchanski
  0 siblings, 1 reply; 8+ messages in thread
From: Randall R Schulz @ 2003-04-01  1:29 UTC (permalink / raw)
  To: cygwin

At 17:02 2003-03-31, you wrote:
> > >Randall,
> > >
> > >Most likely there is no wrapper script.  This is an option of "vim"
> > >itself.  In vim, "help title".
> > >     Igor
> >
> > Igor,
> >
> > That explains why I could not find documentation for the "title /
> > notitle" command when Thorsten mentioned it: I looked in the man and
> > info documentation.
> >
> > However, in my Cygwin Vim I cannot get a title to show even when I
> > ":set titlestring=something" and ":set title". I tried suspending and
> > resuming Vim, too, but still no title. Vim --version" does indicate
> > that it was configured for "+title," so I'm uncertain what I'm doing
> > wrong that keeps me from getting a title. Maybe it's being displaced
> > through time and space to Anoop's system.
> >
> > Randall Schulz
>
>Randall,
>
>I believe the title/notitle Thorsten meant was the option in the CYGWIN
>environment variable, and had nothing to do with vim.
>
>As for vim, when TERM=cygwin, the title of the Cygwin console is not
>changed, but I think this is related to the incomplete terminfo entry for
>cygwin.  If you set TERM=xterm (in the Cygwin console), vim *will* set the
>title (I used the example in "help title").
>     Igor


Igor,

OK, but then why did you tell me this:

>This is an option of "vim" itself.  In vim, "help title".


Really, it's of little consequence to me, but here's an excerpt from 
the Vim on-line help text:

Only works if the terminal supports setting window titles
(currently Amiga console, Win32 console, all GUI versions and
terminals with a non- empty 't_ts' option - these are Unix xterm and
iris-ansi by default, where 't_ts' is taken from the builtin termcap).


I know very little about termcap or terminfo (nor which of them Vim 
uses), but if I cared enough about why this appears not to work for me, 
I'm sure I could figure it out.

Here's a clue. Vim's ":set title" and ":set notitle" work if I invoke 
Vim thusly:

% TERM=xterm vi

The title string is restored to it's initial value and reset to Vim's 
titlestring setting when Vim is suspended and resumed (resp.), too.

So it seems the termcap and / or terminfo descriptions for TERM=cygwin 
could have the necessary capabilities added (apparently identical to 
those used by xterm) so Vim could control the window title under the 
Cygwin console.

Randall Schulz 


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: command prompt window title
  2003-04-01  1:29   ` Randall R Schulz
@ 2003-04-01 15:05     ` Igor Pechtchanski
  0 siblings, 0 replies; 8+ messages in thread
From: Igor Pechtchanski @ 2003-04-01 15:05 UTC (permalink / raw)
  To: Randall R Schulz; +Cc: cygwin

On Mon, 31 Mar 2003, Randall R Schulz wrote:

> At 17:02 2003-03-31, you wrote:
> > > >Randall,
> > > >
> > > >Most likely there is no wrapper script.  This is an option of "vim"
> > > >itself.  In vim, "help title".
> > > >     Igor
> > >
> > > Igor,
> > >
> > > That explains why I could not find documentation for the "title /
> > > notitle" command when Thorsten mentioned it: I looked in the man and
> > > info documentation.
> > > [snip]
> > > Randall Schulz
> >
> >Randall,
> >
> >I believe the title/notitle Thorsten meant was the option in the CYGWIN
> >environment variable, and had nothing to do with vim.
> >
> >As for vim, when TERM=cygwin, the title of the Cygwin console is not
> >changed, but I think this is related to the incomplete terminfo entry for
> >cygwin.  If you set TERM=xterm (in the Cygwin console), vim *will* set the
> >title (I used the example in "help title").
> >     Igor
>
> Igor,
>
> OK, but then why did you tell me this:
>
> >This is an option of "vim" itself.  In vim, "help title".
> [snip]

Randall,

I was responding to your comment below:

> >On Mon, 31 Mar 2003, Randall R Schulz wrote:
> >
> > > It sounds to me like there's a script or other intervening command
> > > definition handling your invocation of "vi."

> [snip]
> Here's a clue. Vim's ":set title" and ":set notitle" work if I invoke
> Vim thusly:
>
> % TERM=xterm vi
>
> The title string is restored to it's initial value and reset to Vim's
> titlestring setting when Vim is suspended and resumed (resp.), too.

Isn't that what I said above? ;-)

> So it seems the termcap and / or terminfo descriptions for TERM=cygwin
> could have the necessary capabilities added (apparently identical to
> those used by xterm) so Vim could control the window title under the
> Cygwin console.
>
> Randall Schulz

Yep.  That's what I meant by "an incomplete terminfo entry for cygwin".
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Knowledge is an unending adventure at the edge of uncertainty.
  -- Leto II



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: command prompt window title
@ 2003-04-05 19:56 Anoop Ghanwani
  0 siblings, 0 replies; 8+ messages in thread
From: Anoop Ghanwani @ 2003-04-05 19:56 UTC (permalink / raw)
  To: 'cygwin@cygwin.com'


Randall,

You were right.  My path was setup so that instead
of picking up /usr/bin/vi, it was picking up my
DOS version of vi.  Once I corrected that, the
window title always shows "Cygwin" and never
changes regardless of what I'm running.

Thanks,
-Anoop

PS: Thanks to all who replied.  I'm not subscribed
to the Cygwin list to it took me a while to check
the responses in the archives and get back.

===========
At 11:38 2003-03-31, you wrote:
> I'm running cygwin's latest version 1.3.22-1.
> When I run cygwin from my desktop, it brings
> up a command prompt window with a title "Cygwin".
> I modified cygwin.bat to make my default shell
> tcsh.

> Anyway, after I run vi, the window title changes
> to "vi <fname>" where <fname> is the file that
> I'm editing.  When I quit vi, the title of the
> window remains that way until I quit the window,
> or I use vi again with another file, in which
> case it changes to "vi <newfilename>".

It sounds to me like there's a script or other intervening command
definition handling your invocation of "vi."

Please show us the output of "where vi" (assuming, as you state above, that
you're using tcsh). If you're using BASH, then show us the output of "type
-a vi".




--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: command prompt window title
  2003-03-31 20:32 Anoop Ghanwani
  2003-03-31 22:05 ` Andrew Markebo
  2003-03-31 23:12 ` Thorsten Kampe
@ 2003-03-31 23:36 ` Randall R Schulz
  2 siblings, 0 replies; 8+ messages in thread
From: Randall R Schulz @ 2003-03-31 23:36 UTC (permalink / raw)
  To: cygwin

Anoop,

At 11:38 2003-03-31, you wrote:

>I'm running cygwin's latest version 1.3.22-1.
>When I run cygwin from my desktop, it brings
>up a command prompt window with a title "Cygwin".
>I modified cygwin.bat to make my default shell
>tcsh.
>
>Anyway, after I run vi, the window title changes
>to "vi <fname>" where <fname> is the file that
>I'm editing.  When I quit vi, the title of the
>window remains that way until I quit the window,
>or I use vi again with another file, in which
>case it changes to "vi <newfilename>".

It sounds to me like there's a script or other intervening command 
definition handling your invocation of "vi."

Please show us the output of "where vi" (assuming, as you state above, 
that you're using tcsh). If you're using BASH, then show us the output 
of "type -a vi".


>When running things like gcc or make the window
>title doesn't get affected at all...it continues
>to show "Cygwin", unless I had previously run
>vi in that window.
>
>Is there a way to fix this?  Is this a know
>issue?
>
>I have the screen shots at:
>http://www.ee.duke.edu/~ag/cygerrs.pdf
>
>Thanks,
>-Anoop
>--
>Anoop Ghanwani


Randall Schulz 


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: command prompt window title
  2003-03-31 20:32 Anoop Ghanwani
  2003-03-31 22:05 ` Andrew Markebo
@ 2003-03-31 23:12 ` Thorsten Kampe
  2003-03-31 23:36 ` Randall R Schulz
  2 siblings, 0 replies; 8+ messages in thread
From: Thorsten Kampe @ 2003-03-31 23:12 UTC (permalink / raw)
  To: cygwin

* Anoop Ghanwani (03-03-31 21:38 +0100)
> I'm running cygwin's latest version 1.3.22-1.  
> When I run cygwin from my desktop, it brings
> up a command prompt window with a title "Cygwin".
> I modified cygwin.bat to make my default shell
> tcsh.
> 
> Anyway, after I run vi, the window title changes
> to "vi <fname>" where <fname> is the file that
> I'm editing.  When I quit vi, the title of the
> window remains that way until I quit the window,
> or I use vi again with another file, in which
> case it changes to "vi <newfilename>".
> 
> When running things like gcc or make the window
> title doesn't get affected at all...it continues
> to show "Cygwin", unless I had previously run
> vi in that window.

Try title/notitle[1] and another shell (bash/zsh) and see what's 
happening.


Thorsten

[1] http://cygwin.com/cygwin-ug-net/using-cygwinenv.html
-- 
 Content-Type: text/explicit; charset=ISO-8859-666 (Parental Advisory)
 Content-Transfer-Warning: message contains innuendos not suited for
 children under the age of 18


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: command prompt window title
  2003-03-31 20:32 Anoop Ghanwani
@ 2003-03-31 22:05 ` Andrew Markebo
  2003-03-31 23:12 ` Thorsten Kampe
  2003-03-31 23:36 ` Randall R Schulz
  2 siblings, 0 replies; 8+ messages in thread
From: Andrew Markebo @ 2003-03-31 22:05 UTC (permalink / raw)
  To: cygwin

| When running things like gcc or make the window
| title doesn't get affected at all...it continues
| to show "Cygwin", unless I had previously run
| vi in that window.
|
| Is there a way to fix this?  Is this a know 
| issue?

Bash sets the window-title through its prompt, set in /etc/profile (if
my memory doesn't serve me tooo wrong.. So if you want your tcsh to do
the same, is to modify its prompt.

     /Andy


-- 
 The eye of the beholder rests on the beauty!


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 8+ messages in thread

* command prompt window title
@ 2003-03-31 20:32 Anoop Ghanwani
  2003-03-31 22:05 ` Andrew Markebo
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Anoop Ghanwani @ 2003-03-31 20:32 UTC (permalink / raw)
  To: 'cygwin@cygwin.com'


I'm running cygwin's latest version 1.3.22-1.  
When I run cygwin from my desktop, it brings
up a command prompt window with a title "Cygwin".
I modified cygwin.bat to make my default shell
tcsh.

Anyway, after I run vi, the window title changes
to "vi <fname>" where <fname> is the file that
I'm editing.  When I quit vi, the title of the
window remains that way until I quit the window,
or I use vi again with another file, in which
case it changes to "vi <newfilename>".

When running things like gcc or make the window
title doesn't get affected at all...it continues
to show "Cygwin", unless I had previously run
vi in that window.

Is there a way to fix this?  Is this a know 
issue?

I have the screen shots at:
http://www.ee.duke.edu/~ag/cygerrs.pdf

Thanks,
-Anoop
--
Anoop Ghanwani - Lantern Communications - 408-521-6707


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2003-04-05 18:26 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <5.2.0.9.2.20030331152805.02b537d0@pop3.cris.com>
2003-04-01  1:02 ` command prompt window title Igor Pechtchanski
     [not found] ` <Pine.GSO.4.44.0303311959110.21921-100000@slinky.cs.nyu.edu >
2003-04-01  1:29   ` Randall R Schulz
2003-04-01 15:05     ` Igor Pechtchanski
2003-04-05 19:56 Anoop Ghanwani
  -- strict thread matches above, loose matches on Subject: below --
2003-03-31 20:32 Anoop Ghanwani
2003-03-31 22:05 ` Andrew Markebo
2003-03-31 23:12 ` Thorsten Kampe
2003-03-31 23:36 ` Randall R Schulz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).