public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: "surendar jeyadev via cygwin" <cygwin@cygwin.com>
To: "cygwin@cygwin.com" <cygwin@cygwin.com>
Subject: Fw: When scrolling through history in cygwin terminal window line gets garbled
Date: Fri, 17 Aug 2018 15:20:00 -0000	[thread overview]
Message-ID: <1179039299.9023936.1534512963906@mail.yahoo.com> (raw)
In-Reply-To: <1372072396.8455798.1534430210374@mail.yahoo.com>

[-- Attachment #1: Type: text/plain, Size: 3147 bytes --]




I am having a similar issue to that pictorially shown here:

    
https://unix.stackexchange.com/questions/344502/when-scrolling-through-history-in-cygwin-terminal-window-line-gets-garbled


This is new to me as I have been using Cygwin on a Windows 7

machine for several years without encountering this problem. 

(Of course, that Cygwin build was from 5 or 6 years back.)
I just moved to a Windows 10 machine and installed Cygwin from 
scratch a couple of days back and ran into the issue.

Using the UP arrow to go up the history list, I have no problem till I
hit a long command (in the case shown below the problematic 
command was about 50 characters long). When going one step
further up the history list, the leading characters of the long
command stay on the command line. I cannot backspace/delete
them.

I am using mintty from the standard distribution. 

Specific example. I issue a 'history' command to show the 

history and then use the UP arrow key to scroll upwards. After 6
Ups, I reach command no. 33 as shown below.

================================
sita 41 $  history
    2  vi .bash_profile
    3  quit
    4  eixt
    5  exit
    6  histoyr
    7  history
    8  vi .bash_profile
    9  vi .bash_profile
   10  exit
   11  history
   12  cd /usr/share
   13  ls
   14  cd
   15  history
   16  exit
   17  history
   18  history
   19  exit
   20  sdafasfas
   21  history
   22  cp /usr/share/vim/vim*/vimrc_example.vim ~/.vimrc
   23  history
   24  cp /usr/share/vim/vim*/vimrc_example.vim ~/.vimrc
   25  history
   26  ls
   27  cd
   28  vi .bash_profile
   29  exit
   30  history
   31  exit
   32  cygcheck -s -v -r > cygcheck.out
   33  history
   34  history
   35  ls
   36  cd
   37  pwd
   38  ls
   39  history
   40  exit
   41  history
sita 42 $  history
================================

Now I move up one more step an get 

================================
....
....
30  history
   31  exit
   32  cygcheck -s -v -r > cygcheck.out
   33  history
   34  history
   35  ls
   36  cd
   37  pwd
   38  ls
   39  history
   40  exit
   41  history
sita 42 $  cygcheck -s -v -r > cygcheck.out
================================

which is just what is expected. One more and we get

================================
   31  exit
   32  cygcheck -s -v -r > cygcheck.out
   33  history
   34  history
   35  ls
   36  cd
   37  pwd
   38  ls
   39  history
   40  exit
   41  history
sita 42 $  cygcheckexit
================================

Command 31 (exit) now has the extra characters
pre-pending the entry on the history list.

Hitting a return here executes the 'exit', though.
This seems to work for other commands. It appears
as though the characters have no effect. But,
they do cause a bit of confusion!

Also I noticed that if I input a really long string for a command, the characters
that should be in a new line over write the leading characters of the command --
that is, there is no line feed when the text wraps around.

Would greatly appreciate any help in fixing this.

The 'cygcheck' output is attached.

If you need any further information about the 
mintty set up, please let me know.

tia.

[-- Attachment #2: cygcheck.out --]
[-- Type: application/octet-stream, Size: 13720 bytes --]


Cygwin Configuration Diagnostics
Current System Time: Wed Aug 15 00:21:31 2018

Windows 10 Professional Ver 10.0 Build 17134 

Path:	C:\cygwin64\usr\local\bin
	C:\cygwin64\bin
	C:\Windows\system32
	C:\Windows
	C:\Windows\System32\Wbem
	C:\Windows\System32\WindowsPowerShell\v1.0
	C:\Windows\System32\OpenSSH
	C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static
	C:\Program Files (x86)\Windows Live\Shared
	C:\Users\user\AppData\Local\Microsoft\WindowsApps

Output from C:\cygwin64\bin\id.exe
UID: 197609(user)              GID: 197121(None)
197121(None)                   545(Users)
4(INTERACTIVE)                 66049(CONSOLE LOGON)
11(Authenticated Users)        15(This Organization)
113(Local account)             66048(LOCAL)
262154(NTLM Authentication)    401408(Medium Mandatory Level)

SysDir: C:\Windows\system32
WinDir: C:\Windows

USER = 'user'
PWD = '/home/user'
HOME = '/home/user'

USERDOMAIN = 'SITA'
OS = 'Windows_NT'
COMMONPROGRAMFILES = 'C:\Program Files\Common Files'
PROCESSOR_LEVEL = '6'
PSModulePath = 'C:\Program Files\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules'
CommonProgramW6432 = 'C:\Program Files\Common Files'
CommonProgramFiles(x86) = 'C:\Program Files (x86)\Common Files'
LANG = 'en_US.UTF-8'
TZ = 'America/New_York'
HOSTNAME = 'sita'
PUBLIC = 'C:\Users\Public'
OLDPWD = '/cygdrive/c/Users/user/Desktop'
USERNAME = 'user'
LOGONSERVER = '\\SITA'
PROCESSOR_ARCHITECTURE = 'AMD64'
LOCALAPPDATA = 'C:\Users\user\AppData\Local'
COMPUTERNAME = 'SITA'
FPS_BROWSER_APP_PROFILE_STRING = 'Internet Explorer'
!:: = '::\'
SYSTEMDRIVE = 'C:'
USERPROFILE = 'C:\Users\user'
PATHEXT = '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC'
SYSTEMROOT = 'C:\Windows'
USERDOMAIN_ROAMINGPROFILE = 'SITA'
PROCESSOR_IDENTIFIER = 'Intel64 Family 6 Model 158 Stepping 10, GenuineIntel'
TMP = '/tmp'
OneDrive = 'C:\Users\user\OneDrive'
PROCESSOR_REVISION = '9e0a'
FPS_BROWSER_USER_PROFILE_STRING = 'Default'
PROFILEREAD = 'true'
NUMBER_OF_PROCESSORS = '6'
ProgramW6432 = 'C:\Program Files'
COMSPEC = 'C:\Windows\system32\cmd.exe'
APPDATA = 'C:\Users\user\AppData\Roaming'
SHELL = '/bin/bash'
TERM = 'xterm'
WINDIR = 'C:\Windows'
ProgramData = 'C:\ProgramData'
SHLVL = '1'
PRINTER = 'LBP7110Cw'
PROGRAMFILES = 'C:\Program Files'
ALLUSERSPROFILE = 'C:\ProgramData'
TEMP = '/tmp'
DriverData = 'C:\Windows\System32\Drivers\DriverData'
SESSIONNAME = 'Console'
ProgramFiles(x86) = 'C:\Program Files (x86)'
PS1 = '\e[0;32m\]\h \! $ \[\e[0m\] '
HOMEDRIVE = 'C:'
INFOPATH = '/usr/local/info:/usr/share/info:/usr/info'
HOMEPATH = '\Users\user'
ORIGINAL_PATH = '/cygdrive/c/Windows/system32:/cygdrive/c/Windows:/cygdrive/c/Windows/System32/Wbem:/cygdrive/c/Windows/System32/WindowsPowerShell/v1.0:/cygdrive/c/Windows/System32/OpenSSH:/cygdrive/c/Program Files (x86)/ATI Technologies/ATI.ACE/Core-Static:/cygdrive/c/Program Files (x86)/Windows Live/Shared:/cygdrive/c/Users/user/AppData/Local/Microsoft/WindowsApps'
EXECIGNORE = '*.dll'
_ = '/usr/bin/cygcheck'

HKEY_CURRENT_USER\Software\Cygwin
HKEY_CURRENT_USER\Software\Cygwin\Installations
  (default) = '\??\C:\cygwin64'
HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin
HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin\Installations
  (default) = '\??\C:\cygwin64'
HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin\setup
  (default) = 'C:\cygwin64'

obcaseinsensitive set to 1

Cygwin installations found in the registry:
  System: Key: e022582115c10879 Path: C:\cygwin64
  User:   Key: e022582115c10879 Path: C:\cygwin64

c:  hd  NTFS    953141Mb  10% CP CS UN PA FC     EN
d:  fd             N/A    N/A                      
e:  cd             N/A    N/A                      
f:  fd             N/A    N/A                      
g:  fd             N/A    N/A                      
h:  fd             N/A    N/A                      
i:  hd  NTFS    114470Mb  64% CP CS UN PA FC     EN

C:\cygwin64      /          system  binary,auto
C:\cygwin64\bin  /usr/bin   system  binary,auto
C:\cygwin64\lib  /usr/lib   system  binary,auto
cygdrive prefix  /cygdrive  user    binary,posix=0,auto

Found: C:\cygwin64\bin\awk
 -> C:\cygwin64\bin\gawk.exe
Found: C:\cygwin64\bin\bash.exe
Found: C:\cygwin64\bin\cat.exe
Found: C:\cygwin64\bin\cp.exe
Not Found: cpp (good!)
Not Found: crontab
Found: C:\cygwin64\bin\find.exe
Found: C:\Windows\system32\find.exe
Warning: C:\cygwin64\bin\find.exe hides C:\Windows\system32\find.exe
Not Found: gcc
Not Found: gdb
Found: C:\cygwin64\bin\grep.exe
Found: C:\cygwin64\bin\kill.exe
Not Found: ld
Found: C:\cygwin64\bin\ls.exe
Not Found: make
Found: C:\cygwin64\bin\mv.exe
Not Found: patch
Not Found: perl
Found: C:\cygwin64\bin\rm.exe
Found: C:\cygwin64\bin\sed.exe
Found: C:\Windows\System32\OpenSSH\ssh.exe
Found: C:\cygwin64\bin\sh.exe
Found: C:\cygwin64\bin\tar.exe
Found: C:\Windows\system32\tar.exe
Warning: C:\cygwin64\bin\tar.exe hides C:\Windows\system32\tar.exe
Found: C:\cygwin64\bin\test.exe
Found: C:\cygwin64\bin\vi.exe
Not Found: vim

   39k 2016/09/19 C:\cygwin64\bin\cygargp-0.dll - os=4.0 img=0.0 sys=5.2
                  "cygargp-0.dll" v0.0 ts=2016-09-19 02:13
   16k 2013/03/26 C:\cygwin64\bin\cygattr-1.dll - os=4.0 img=0.0 sys=5.2
                  "cygattr-1.dll" v0.0 ts=2013-03-26 18:26
  180k 2015/03/23 C:\cygwin64\bin\cygblkid-1.dll - os=4.0 img=0.0 sys=5.2
                  "cygblkid-1.dll" v0.0 ts=2015-03-23 09:46
   64k 2017/02/22 C:\cygwin64\bin\cygbz2-1.dll - os=4.0 img=0.0 sys=5.2
                  "cygbz2-1.dll" v0.0 ts=2017-02-22 07:22
 2273k 2018/04/03 C:\cygwin64\bin\cygcrypto-1.0.0.dll - os=4.0 img=0.0 sys=5.2
                  "cygcrypto-1.0.0.dll" v0.0 ts=2018-04-03 11:56
   27k 2015/11/17 C:\cygwin64\bin\cygffi-6.dll - os=4.0 img=0.0 sys=5.2
                  "cygffi-6.dll" v0.0 ts=2015-11-17 22:14
   65k 2017/12/05 C:\cygwin64\bin\cygformw-10.dll - os=4.0 img=0.0 sys=5.2
                  "cygformw-10.dll" v0.0 ts=2017-12-05 08:15
   70k 2018/06/26 C:\cygwin64\bin\cyggcc_s-seh-1.dll - os=4.0 img=0.0 sys=5.2
                  "cyggcc_s-seh-1.dll" v0.0 ts=2018-06-26 17:17
   39k 2016/10/10 C:\cygwin64\bin\cyggdbm-4.dll - os=4.0 img=0.0 sys=5.2
                  "cyggdbm-4.dll" v0.0 ts=2016-10-10 09:26
   13k 2016/10/10 C:\cygwin64\bin\cyggdbm_compat-4.dll - os=4.0 img=0.0 sys=5.2
                  "cyggdbm_compat-4.dll" v0.0 ts=2016-10-10 09:26
  527k 2017/01/21 C:\cygwin64\bin\cyggmp-10.dll - os=4.0 img=0.0 sys=5.2
                  "cyggmp-10.dll" v0.0 ts=2017-01-21 18:25
   33k 2017/02/13 C:\cygwin64\bin\cyghistory7.dll - os=4.0 img=0.0 sys=5.2
                  "cyghistory7.dll" v0.0 ts=2017-02-11 22:39
 1009k 2015/02/20 C:\cygwin64\bin\cygiconv-2.dll - os=4.0 img=0.0 sys=5.2
                  "cygiconv-2.dll" v0.0 ts=2015-02-20 17:07
   42k 2016/10/23 C:\cygwin64\bin\cygintl-8.dll - os=4.0 img=0.0 sys=5.2
                  "cygintl-8.dll" v0.0 ts=2016-10-23 07:17
    6k 2018/02/02 C:\cygwin64\bin\cyglsa64.dll - os=4.0 img=0.0 sys=5.2
                  "cyglsa64.dll" v0.0 ts=2018-02-02 14:16
  139k 2017/05/10 C:\cygwin64\bin\cyglzma-5.dll - os=4.0 img=0.0 sys=5.2
                  "cyglzma-5.dll" v0.0 ts=2017-05-10 01:17
  125k 2018/03/18 C:\cygwin64\bin\cygmagic-1.dll - os=4.0 img=0.0 sys=5.2
                  "cygmagic-1.dll" v0.0 ts=2018-03-18 15:17
  168k 2018/01/23 C:\cygwin64\bin\cygman-2-7-6-1.dll - os=4.0 img=0.0 sys=5.2
                  "cygman-2-7-6-1.dll" v0.0 ts=2018-01-23 20:22
   22k 2018/01/23 C:\cygwin64\bin\cygmandb-2-7-6-1.dll - os=4.0 img=0.0 sys=5.2
                  "cygmandb-2-7-6-1.dll" v0.0 ts=2018-01-23 20:22
   33k 2017/12/05 C:\cygwin64\bin\cygmenuw-10.dll - os=4.0 img=0.0 sys=5.2
                  "cygmenuw-10.dll" v0.0 ts=2017-12-05 08:15
  432k 2018/07/28 C:\cygwin64\bin\cygmpfr-6.dll - os=4.0 img=0.0 sys=5.2
                  "cygmpfr-6.dll" v0.0 ts=2018-07-28 20:18
  317k 2017/12/05 C:\cygwin64\bin\cygncursesw-10.dll - os=4.0 img=0.0 sys=5.2
                  "cygncursesw-10.dll" v0.0 ts=2017-12-05 08:13
 1019k 2018/04/09 C:\cygwin64\bin\cygp11-kit-0.dll - os=4.0 img=0.0 sys=5.2
                  "cygp11-kit-0.dll" v0.0 ts=2018-04-09 01:55
   15k 2017/12/05 C:\cygwin64\bin\cygpanelw-10.dll - os=4.0 img=0.0 sys=5.2
                  "cygpanelw-10.dll" v0.0 ts=2017-12-05 08:14
  475k 2017/04/23 C:\cygwin64\bin\cygpcre-1.dll - os=4.0 img=0.0 sys=5.2
                  "cygpcre-1.dll" v0.0 ts=2017-04-24 00:50
   39k 2015/04/09 C:\cygwin64\bin\cygpipeline-1.dll - os=4.0 img=0.0 sys=5.2
                  "cygpipeline-1.dll" v0.0 ts=2015-04-09 21:04
   41k 2016/07/13 C:\cygwin64\bin\cygpopt-0.dll - os=4.0 img=0.0 sys=5.2
                  "cygpopt-0.dll" v0.0 ts=2016-07-13 06:16
  219k 2017/02/13 C:\cygwin64\bin\cygreadline7.dll - os=4.0 img=0.0 sys=5.2
                  "cygreadline7.dll" v0.0 ts=2017-02-11 22:39
   11k 2015/07/17 C:\cygwin64\bin\cygsigsegv-2.dll - os=4.0 img=0.0 sys=5.2
                  "cygsigsegv-2.dll" v0.0 ts=2015-07-17 22:35
   89k 2015/03/23 C:\cygwin64\bin\cygsmartcols-1.dll - os=4.0 img=0.0 sys=5.2
                  "cygsmartcols-1.dll" v0.0 ts=2015-03-23 09:46
  403k 2018/04/03 C:\cygwin64\bin\cygssl-1.0.0.dll - os=4.0 img=0.0 sys=5.2
                  "cygssl-1.0.0.dll" v0.0 ts=2018-04-03 11:56
 1394k 2018/06/26 C:\cygwin64\bin\cygstdc++-6.dll - os=4.0 img=0.0 sys=5.2
                  "cygstdc++-6.dll" v0.0 ts=2018-06-26 17:34
   67k 2018/03/19 C:\cygwin64\bin\cygtasn1-6.dll - os=4.0 img=0.0 sys=5.2
                  "cygtasn1-6.dll" v0.0 ts=2018-03-19 21:41
   58k 2017/12/05 C:\cygwin64\bin\cygticw-10.dll - os=4.0 img=0.0 sys=5.2
                  "cygticw-10.dll" v0.0 ts=2017-12-05 08:13
   15k 2015/03/23 C:\cygwin64\bin\cyguuid-1.dll - os=4.0 img=0.0 sys=5.2
                  "cyguuid-1.dll" v0.0 ts=2015-03-23 09:46
   83k 2017/03/03 C:\cygwin64\bin\cygz.dll - os=4.0 img=0.0 sys=5.2
                  "cygz.dll" v0.0 ts=2017-03-03 21:42
 3121k 2018/02/02 C:\cygwin64\bin\cygwin1.dll - os=4.0 img=0.0 sys=5.2
                  "cygwin1.dll" v0.0 ts=2018-02-02 14:16
    Cygwin DLL version info:
        DLL version: 2.10.0
        DLL epoch: 19
        DLL old termios: 5
        DLL malloc env: 28
        Cygwin conv: 181
        API major: 0
        API minor: 325
        Shared data: 5
        DLL identifier: cygwin1
        Mount registry: 3
        Cygwin registry name: Cygwin
        Installations name: Installations
        Cygdrive default prefix: 
        Build date: 
        Shared id: cygwin1S5


Can't find the cygrunsrv utility, skipping services check.


Cygwin Package Information
Last downloaded files to: C:\Users\user\Desktop\Software\Cygwin
Last downloaded files from: http://mirror.rit.edu/cygwin/

Package              Version             Status
_autorebase          001007-1            OK
alternatives         1.3.30c-10          OK
base-cygwin          3.8-1               OK
base-files           4.2-4               OK
bash                 4.4.12-3            OK
bzip2                1.0.6-3             OK
ca-certificates      2.22-1              OK
coreutils            8.26-2              OK
cygutils             1.4.16-2            OK
cygwin               2.10.0-1            OK
dash                 0.5.9.1-1           OK
diffutils            3.5-2               OK
editrights           1.03-1              OK
file                 5.32-1              OK
findutils            4.6.0-1             OK
gawk                 4.2.1-1             OK
getent               2.18.90-4           OK
grep                 3.0-2               OK
groff                1.22.3-1            OK
gzip                 1.8-1               OK
hostname             3.13-1              OK
info                 6.5-2               OK
ipc-utils            1.0-2               OK
less                 530-1               OK
libargp              20110921-3          OK
libattr1             2.4.46-1            OK
libblkid1            2.25.2-2            OK
libbz2_1             1.0.6-3             OK
libffi6              3.2.1-2             OK
libgcc1              7.3.0-3             OK
libgdbm4             1.12-1              OK
libgmp10             6.1.2-1             OK
libiconv             1.14-3              OK
libiconv2            1.14-3              OK
libintl8             0.19.8.1-2          OK
liblzma5             5.2.3-1             OK
libmpfr6             4.0.1-4p11          OK
libncursesw10        6.0-12.20171125     OK
libopenssl100        1.0.2o-1            OK
libp11-kit0          0.23.10-1           OK
libpcre1             8.40-3              OK
libpipeline1         1.4.0-1             OK
libpopt-common       1.16-2              OK
libpopt0             1.16-2              OK
libreadline7         7.0.3-3             OK
libsigsegv2          2.10-2              OK
libsmartcols1        2.25.2-2            OK
libstdc++6           7.3.0-3             OK
libtasn1_6           4.13-1              OK
libuuid1             2.25.2-2            OK
login                1.12-1              OK
man-db               2.7.6.1-1           OK
mintty               2.9.0-0             OK
ncurses              6.0-12.20171125     OK
openssl              1.0.2o-1            OK
p11-kit              0.23.10-1           OK
p11-kit-trust        0.23.10-1           OK
rebase               4.4.4-1             OK
run                  1.3.4-2             OK
sed                  4.4-1               OK
tar                  1.29-1              OK
terminfo             6.0-12.20171125     OK
tzcode               2018e-1             OK
tzdata               2018e-1             OK
util-linux           2.25.2-2            OK
vim-minimal          8.0.1567-1          OK
which                2.20-2              OK
xz                   5.2.3-1             OK
zlib0                1.2.11-1            OK
Use -h to see help about each section

[-- Attachment #3: Type: text/plain, Size: 219 bytes --]


--
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	other threads:[~2018-08-17 13:36 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1372072396.8455798.1534430210374.ref@mail.yahoo.com>
     [not found] ` <1372072396.8455798.1534430210374@mail.yahoo.com>
2018-08-17 15:20   ` surendar jeyadev via cygwin [this message]
2018-08-17 16:26     ` Thomas Wolff
2018-08-18 12:36       ` Steven Penny
2018-08-18 14:17         ` cyg Simple
2018-08-18 22:20           ` Steven Penny
2018-08-19  1:27             ` cyg Simple
2018-08-19  9:50               ` Steven Penny
2018-08-19 10:19                 ` cyg Simple
2018-08-19 14:33                   ` Steven Penny
2018-08-20 14:40                     ` cyg Simple
2018-08-19 15:41                 ` Thomas Wolff
2018-08-19 21:04                   ` Steven Penny
2018-08-19 21:45                 ` Jeffrey Walton
2018-08-19 15:17     ` Fw: When " Andrey Repin
2018-08-19 16:35       ` Thomas Wolff
2018-08-20  6:23         ` Andrey Repin
2018-08-20 16:47           ` Csaba Raduly
2018-08-20 17:11             ` Marco Atzeri

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1179039299.9023936.1534512963906@mail.yahoo.com \
    --to=cygwin@cygwin.com \
    --cc=jeyadev3@yahoo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).