Open GoogleCodeExporter opened 9 years ago
Issue 191?
Original comment by andy.koppe
on 14 Mar 2013 at 1:00
I'm not exactly sure right now if my problem and the ones reported in issue 191
(and those that were merged into it) are related, but I'll look into it and
report back with my findings. (I hope this is the problem, because it's driving
me crazy.)
Anyway, here's my Bash-prompt-thingy that I use.
export PS1="\w \\$ "
That's it. I'm not if I have to use \[ or \] to escape anything here, but I
guess not (I'm never fiddle with the prompt too much, so I don't know jack
about it).
Original comment by kohanyi....@gmail.com
on 14 Mar 2013 at 1:23
I've tried the following.
1. I've run setup.exe and updated cygwin.
2. I've opened up mitty. Entered 'history -c'.
3. I've entered the following long command and executed it.
find /usr/share/texmf -type f -print0 | xargs -0 -I {} echo "What's this heh?
{} $(date)" | grep -iP "^.*?2013.*$" | sed -n 's,2013,THE CURRENT YEAR
WOOOHOOO!,p'
4. I've pressed the up arrow in the terminal. The following command appeared.
5. I've navigated to the start of the line, added some stuff, then navigated to
the end and added some more stuff so that I got the following command (I've
nagivated using the arrow keys and Ctrl-F/B).
echo "START" && find /usr/share/texmf -type f -print0 | xargs -0 -I {} echo
"What's this heh? {} $(date)" | grep -iP "^.*?2013.*$" | sed -n 's,2013,THE
CURRENT YEAR WOOOHOOO!,p' && echo "END
Then I've executed the command.
6. After this I've recalled the command in the first command using Ctrl-R. I've
deleted the 'echo "START"' part and ran it.
Nothing out of the ordinary happened. I've tried doing the same, but inside a
directory, so that my prompt would show a long
/directory_this/subdirectory_that/whatever_here/something_else_inside_this path.
I didn't resize the terminal. I've tried *not resizing* the terminal, because I
thought maybe if I resize it mintty will get confused or something, but even
though I leaved the terminal as is, the problem I've described occurred again.
I'm not saying that issue 191 isn't at work *here*, but to me it seems to be a
different problem. (The problems maybe different but of course the same
mintty/bash/readline/etc. module/piece of code/whatever could cause both of
them.)
By the way, my whole cygwin configuration is here:
https://github.com/kohanyirobert/cygwin, I use the exact same thing at
home/work.
I'm keeping my eyes open to hunt down the of cause of the problem and I'll try
to get back with more information.
Original comment by kohanyi....@gmail.com
on 14 Mar 2013 at 3:36
I agree, the prompt setting looks fine. Another quick question: what's the
output of 'stty' when the issue occurs?
Original comment by andy.koppe
on 14 Mar 2013 at 3:57
During last week the problem didn't occur at all - until now. Here's the output
stty.
speed 38400 baud; line = 0;
ixany
If it helps I was running mintty in a maximized window (not full screen).
What I noticed is that after executing the stty command the problem went away.
(At least that's what I like to believe.) I have no clue what is ssty at this
point, but next time I encounter the problem I'll try and see if running this
command fixes my issue or not.
Original comment by kohanyi....@gmail.com
on 27 Mar 2013 at 10:11
I have this same issue. My output from stty is the same as kohanyi...'s.
It takes absolutely no special anything in order to reproduce this. Using
mintty on Win 8 w/ default prompt, start typing; when you get to the end of the
line, we wrap, but we wrap into the same line, not a new line.
http://screencast.com/t/7u5e1j3YjIsE
Original comment by JesseAtE...@gmail.com
on 22 Jul 2013 at 8:41
When I encountered this bug, this helped:
export TERM=cygwin
Original comment by jeremysh...@gmail.com
on 19 Dec 2014 at 9:02
#7 fixed it immediately for me as well. (I'd tried 'stty sane', ^L, mintty
reset, all sort of tricks, none worked.)
For some reason $TERM defaults to "xterm". It should really default to "cygwin"
-- unless of course you are actually using xterm.
Try putting export TERM=cygwin in your .bashrc or .profile and see if it makes
it go away permanently.
Original comment by keithdty...@gmail.com
on 20 Feb 2015 at 6:36
Original issue reported on code.google.com by
kohanyi....@gmail.com
on 14 Mar 2013 at 12:44Attachments: