[Top][All Lists]

[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:


The offending line is here:


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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]