[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
AllocConsole in win_driver.c
From: |
顔無し |
Subject: |
AllocConsole in win_driver.c |
Date: |
Sat, 21 Feb 2015 01:21:12 +0900 |
User-agent: |
Mutt/1.5.23 (2014-03-12) |
Hello, all.
An intrepid user by the name of avih has brought to the attention of
freenode#ncurses a bug in ncurses's Windows driver. In short, ncurses's
Windows driver statically initializes a terminal emulator instance when linked
to a GUI application. The recipe for this bug involves little more than
linking to the ncurses library. More information can be found here:
https://github.com/mxe/mxe/pull/636#issuecomment-75236009
The offending line is here:
https://github.com/mirror/ncurses/blob/master/ncurses/win32con/win_driver.c#L2195
The obvious workaround involves foregoing AllocConsole() altogether, instead
relying on AttachConsole(), but nobody in #ncurses was able to figure out the
reason why AllocConsole() was initialized statically in the first place.
Thank you, and take care.
Grady Martin
- AllocConsole in win_driver.c,
顔無し <=