www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/06/24/20:13:33

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,SPF_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <4A42C0F4.9030907@aim.com>
Date: Wed, 24 Jun 2009 20:12:36 -0400
From: Mark Harig <idirectscm AT aim DOT com>
User-Agent: Thunderbird 2.0.0.21 (Windows/20090302)
MIME-Version: 1.0
To: The Cygwin Mailing List <cygwin AT cygwin DOT com>
Subject: Re: Some questions about mintty
X-AOL-IP: 64.12.78.138
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

--------------030205060909040806060403
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

> > At the bash shell prompt while editing commands is one example, but
> > it is also the case for me in text editors, vim or emacs, for example.
> > From the Options menu, I set the cursor type to block and set the
> > cursor color to a light color, say, yellow, and then moved the block
> > cursor back over the text of a command at the shell prompt.
> > Because the cursor-text color remained white, when it combined
> > with the light block color, the text inside the cursor block
> > "disappeared."
>
> Could you attach your .minttyrc? Have you got any commands in your
> bash startup files that might be relevant here? And what's you PS1
> setting?

To simplify the problem, I eliminated the ~/.bashrc & ~/.bash_profile
initialization files:

   $ mintty -e /bin/bash --norc --noprofile

Please find attached a simplified ~/.minttyrc file.  I renamed my "old" 
file,
started mintty, set the color options for foreground, background, and
cursor, set the cursor type to 'block' and then accepted these
changes to generate a new ~/.minttyrc file.

PS1 is:

[~]$ echo $PS1
[\W]\$

The behavior with the block cursor's text remains: The text is light inside
the light block, making the character difficult to read.  Using the solution
that you provided (echoing an escape sequence to set the cursor text
color) fixes the problem.


--------------030205060909040806060403
Content-Type: text/plain;
 name=".minttyrc"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename=".minttyrc"

Columns=80
Rows=36
Transparency=0
OpaqueWhenFocused=1
Scrollbar=1
ScrollbackLines=10000
ConfirmExit=1
WindowShortcuts=1
EditShortcuts=1
ZoomShortcuts=1
BoldAsBright=0
AllowBlinking=0
CursorType=0
CursorBlinks=0
FontIsBold=0
FontHeight=14
FontCharset=0
FontQuality=1
BackspaceSendsDEL=1
EscapeSendsFS=0
AltSendsESC=0
ScrollMod=1
RightClickAction=0
CopyOnSelect=1
ClicksPlaceCursor=0
ClicksTargetApp=1
ClickTargetMod=1
BellType=1
BellIndication=2
Font=Lucida Sans Typewriter
Codepage=UTF-8
Printer=
ForegroundColour=0,0,0
BackgroundColour=255,255,255
CursorColour=255,255,0


--------------030205060909040806060403
Content-Type: text/plain; charset=us-ascii

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

- Raw text -


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