Mail Archives: cygwin/2001/10/31/11:14:39
On Wed, Oct 31, 2001 at 10:09:19AM +0300, egor duda wrote:
>Hi!
>
>Wednesday, 31 October, 2001 Stephan Mueller smueller AT microsoft DOT com wrote:
>
>SM> Um, maybe I haven't played enough, but I don't believe that the title
>SM> kludge can be implemented using the escape sequences. For one thing,
>SM> the prompt string is just a prompt string, and hence gets printed before
>SM> you type anything, and not reprinted until the current command finishes.
>SM> So, during the execution of a command, the title cannot be made to
>SM> reflect the running command name, which is what it appears the
>SM> title-kludge-in-CYGWIN-variable does.
>
>i had a patch which adds xterm-like title escape sequences to cygwin
>console. i'll try to rework it to match current cvs tree and will post
>it asap.
Huh? I added this some time ago. Am I missing something?
cgf
case gettitle:
{
int n = strlen (my_title_buf);
if (*src < ' ' || *src >= '\177')
{
if (*src == '\007' && state_ == gettitle)
{
if (old_title)
strcpy (old_title, my_title_buf);
set_console_title (my_title_buf);
}
state_ = normal;
}
else if (n < TITLESIZE)
{
my_title_buf[n++] = *src;
my_title_buf[n] = '\0';
}
src++;
break;
}
--
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/
- Raw text -