delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2018/08/26/15:04:31

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:reply-to:reply-to:to:message-id
:subject:mime-version:content-type:content-transfer-encoding
:references; q=dns; s=default; b=Z4Yr9PfQLKQ8SlSsoELfcCLINORYkNv
K1/1NobRec3ltqgAwi4c+6/9GNiGkCsqqZnQxkHeJWGwPhJSmltqWocn5fxSaVs7
aMffbNkz73jVr5qsLtX5oz/h1f9eVnNn8huL314kgaROlVlWlPs7Aa44H1wfYJ1j
X1YTDwNhF3H0=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:reply-to:reply-to:to:message-id
:subject:mime-version:content-type:content-transfer-encoding
:references; s=default; bh=stOZkLYVE5tbuzi5LalhEe8Vt78=; b=ByM07
pO47Z29CsWB3TRBQasd3YFw8p0Rd5wm4LiOE5jF6GD6qwo6lk4JkxcRly+ZOp4ft
1Oral5fzq8PlJicvYDaq7BaBRDaTXNs8AryDb1OSI6Eo/QTlp1r1+W/I4Mr2NJjp
n656j/XT9tyinE5giYXI+b50uhFE7PqP6efhKI=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=3.4 required=5.0 tests=AWL,BAYES_50,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,FREEMAIL_REPLYTO_END_DIGIT,LIKELY_SPAM_SUBJECT,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=no version=3.3.2 spammy=lay, UD:And, screen, clue
X-HELO: sonic316-13.consmr.mail.bf2.yahoo.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1535310257; bh=iWZmvTjw/KunOAwxC91elaAjAslmABQB0bbZWoIe+LE=; h=Date:From:Reply-To:To:Subject:References:From:Subject; b=Z7HVBlkms3lR/e+GTWnaZ1YWKuiI2y13amfEEfQRuJoqWzloOigVscppR0els9gNqYZdj9KHELfeKA+o1Yre5ld1IEA4CRDgWibJp3nLI0YzAQ6nUPC/2f0EhjOyWjtqU12TB8SObwcCA29nSmoYkTNlSHIqqrso210IWznKi/4SabR6T9dmppeopyFiqqZ5qd1F5m1C8usuuX53EZJk5wcWUKuD1mF5PRCi/NEdmC46kwheUAhrAltCoqyofHaNoOWA/xtKD/N8TZPF3I78RmwGcKf7y9y+rxmdtcy/ubF4cSWm8BZsL/d61PjEVEA8ayz1iJbS85bGlhsOaR/s0w==
Date: Sun, 26 Aug 2018 19:04:16 +0000 (UTC)
From: "surendar jeyadev via cygwin" <cygwin AT cygwin DOT com>
Reply-To: surendar jeyadev <jeyadev3 AT yahoo DOT com>
Reply-To: surendar jeyadev <jeyadev3 AT yahoo DOT com>
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Message-ID: <1780126873.2852582.1535310256762@mail.yahoo.com>
Subject: Fw: failure notice
MIME-Version: 1.0
References: <1780126873 DOT 2852582 DOT 1535310256762 DOT ref AT mail DOT yahoo DOT com>




rintable




Many thanks, TW, for your hint. I have "solved" the problem, but I do not
understand why it works! I took time to test it for a few days to make
sure that things were ok. Hence the slow response. If I had only also

included my prompt in the original email, I think that you would have
caught the error at once. My oversight.

Thomas Wolff wrote:>>

Please test the following:


* Set you prompt to some basic string, e.g. PS1=%. Does that change 

anything?* Mintty 2.7.5 changed the default wraparound behaviour to become
compatible with the xterm default. With setting -o OldWrapModes=true,
does that change anything?* Can you cross-test this in xterm?


* Does it happen in a freshly-started mintty? If it only happens later,
which programs did you run in the meantime?* Make a screen log demonstrating
a minimal test case, please.

<<




Trying the minimal prompt that you suggested, I did not have any terminal
problems.And then building up the prompt, but eschewing colour, I still did
not have probelms.That convinced me that, just as the webpage I quoted in
my original email suggested, the problem lay in the (incorrect!) escape
sequences to turn the prompts green.


My prompt, that I just copied off the internet was

      PS1="\e[1;32m\]\h \! $ \[\e[0m\] "

This is the cause of the problems. After a lot of hunting, I found another:


      PS1="\[\e[1;32m\]\h \! $ \[\e[0m\] "


And this works just fine!



The real issues is that I still have no real clue on how these escape
sequences work!! I read several pages that talk about how to get various
esoteric prmpts but none parses out the individual functional pieces. For
me, it is a case of "monkey see, monkey do".


Thanks again, TW.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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