delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/10/31/11:14:39

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Date: Wed, 31 Oct 2001 11:14:36 -0500
From: Christopher Faylor <cgf AT redhat DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Anyone using cygwin=title ?
Message-ID: <20011031111436.B6446@redhat.com>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <F8268126BF427A409936A83B6B86338703F0ED2F AT red-msg-01 DOT redmond DOT corp DOT microsoft DOT com> <18047030826 DOT 20011031100919 AT logos-m DOT ru>
Mime-Version: 1.0
In-Reply-To: <18047030826.20011031100919@logos-m.ru>
User-Agent: Mutt/1.3.21i

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019