I've been programming on Windows for a few years, and there has been an issue that is becoming increasingly frustrating as I have really started to use various terminals in Windows for my development purposes. To login to remote machines, I use PuTTy, and I recently discovered Cygwin, which I have found to be a really great shell. I also have a MacBook Pro and I use Terminal a bit as well.
What I have noticed is that without me typing anything, 8~ will type itself into my terminal, and if I leave the computer for 10 or 15 minutes, I will regularly see something like:
In addition, when I am in emacs, I notice that numbers will randomly appear without having typed them such as 012, or 34, etc. This has happened to me on a variety of different Windows machines, and I have tried probably hundreds of different Google searches to try and ascertain why this is occuring, and I have had absolutely no luck in finding out what is causing this.
I would really appreciate any help in this. I know this isn't really a programming question per se, but I assumed Stack Overflow wouldn't appreciate this question and since you are all programmers, I figure that one of you would have some insight.
Thanks very much.
EDIT: I originally posted this on www.programmers.stackexchange.com and I got three comments asking me for clarification, so I am reposting the question with the asked clarification.
- It's almost certainly some form of keepalive, but the context isn't quite clear. You're on Windows, using PuTTy, and connecting to emacs on another machine, and getting random characters? What have you tried to isolate it? Do they show up if you just open a window and not connect? If you just open a console window?
It happens when I just use emacs/Cygwin locally, and it also happens when I use emacs via puTTy when logging into my school's linux server. I don't really know what I can do to isolate it, I don't even know the cause! It never happens on mac, either locally or when I log into the same server, so I assume the issue must be local. Since it happens when I log into my school server either through Cygwin or putty, as well as when I am just using Cygwin with emacs locally, it must be something with Windows.
- Does this happen only from Windows or also from the Mac? Does it happen only when you're logging in to a particular machine, or to others as well? If it's only to a particular machine, what OS is it running (what distribution, what version)? Is this correlated with moving the mouse? Your question is off-topic here, but if you add the information we've requested, you could repost it on Super User.
No it does not happen in the Mac locally or when I log into the school server. It happens to me with Windows 8 Pro and Windows 7 Ultimate.