Skip to content
Christophe Bucher edited this page Sep 4, 2015 · 1 revision

Here is what can be found in NCURSES manual.

NCURSES_CONSOLE2

   This applies only to the MinGW port of ncurses.

   The Console2 program's handling of the  Microsoft  Console
   API call CreateConsoleScreenBuffer is defective.  Applica-
   tions which use this will hang.  However, it  is  possible
   to  simulate  the  action  of this call by mapping coordi-
   nates, explicitly saving and restoring the original screen
   contents.   Setting the environment variable NCGDB has the
   same effect.

This is wrong!

ConsoleZ reads from the active console screen buffer and writes to the active console screen buffer. When a developer create a new console screen buffer, he must allow reading and writing by specifying a correct share mode!

With FILE_SHARE_READ, ConsoleZ can display console's content.

With FILE_SHARE_READ | FILE_SHARE_WRITE, ConsoleZ can display console's content and can send inputs.

(Console2 only works with FILE_SHARE_READ | FILE_SHARE_WRITE.)

Clone this wiki locally