I update this thread because I experienced the same problem, and I couldn't find the problem discussed elsewhere on the Internet, let alone a confirmed solution. (Except that this one looks very similar:
https://www.winehq.org/pipermail/wine-b ... 06161.html but seems unsolved).
For me the problem was solved after installing wine-1.7.51.
In my case I was trying to make a C program which reads from stdin. Once getc() is used, the console status after leaving 'wine' is corrupted with -echo:
Code: Select all
$ stty
lflags: -icanon -iexten -echo echoe echok echoke echoctl
iflags: -icrnl -ixon -ixany iutf8 -brkint ignpar
oflags: onocr onlret
cflags: cs8 -parenb
$
If getc() is not used, the terminal restores ok. Normally stty looks like this:
Code: Select all
$ stty
speed 9600 baud;
lflags: echoe echoke echoctl pendin
iflags: iutf8
oflags: -oxtabs
cflags: cs8 -parenb
$
Interestingly, a quite similar win32 exe, of which I must assume was compiled natively, didn't exhibit this issue. So it must use a somewhat different input method and trigger another sequence through wine. But I don't have the source of that program, so I couldn't investigate the difference.
For reference:
System: MacOS (10.10.5)
Cross-compiler: MinGW (from gcc-4.8.0-qt-4.8.4-for-mingw32.dmg)
Wine version: 1.6.2 (installed through homebrew)
I experienced the same problem with another 1.6.2 as installed from MacPorts.
Solved, for me, by installing wine 1.7.51.