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

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

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

Reply via email to