问题
So, sometimes when I am programming in C through putty connected to a linux server, after executing my C file for testing, the command line will fill with the word "PuTTY" repeatedly 30 to 40 times. Sometimes it will display the word multiple times inside of my program.
Anyone else have a similar problem? I am also doing file I/O if that has anything to do with it.
回答1:
When PuTTY receives a Ctrl-E (character code 5), it outputs "PuTTY" (unless you've configured it to answer with something else). Sounds like your program's outputting some binary stuff. Whether that's intentional, i don't know.
来源:https://stackoverflow.com/questions/12876699/putty-likes-to-print-itself-sometimes-in-my-command-line