Nessesarius / mintty

Automatically exported from code.google.com/p/mintty
GNU General Public License v3.0
0 stars 0 forks source link

mintty and PDCurses #240

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hello,

I'm not sure if this problem is related to mintty itself or libPDCurses (curses 
for Windows) but I can't use this library on mintty (it works like a charm on 
cmd.exe).
Basically this issue occurs when PDCurses uses function like GetFileType or 
GetConsoleScreenBufferInfo.

I wrote a simple program which displays HANDLE information.
http://pastie.org/private/tbvnc9yykj7embco7wuyiq

On cmd.exe I got
STD_OUTPUT_HANDLE:
FileType FILE_TYPE_CHAR
dwSize(80, 300)
dwCursorPosition(0, 299)
wAttributes: 00000007
srWindow(0, 275, 79, 299)
dwMaximumWindowSize(80, 82)
STD_INPUT_HANDLE:
FileType FILE_TYPE_CHAR
GetConsoleScreenBufferInfo failed = 00000006

On mintty I got
STD_OUTPUT_HANDLE:
FileType FILE_TYPE_PIPE
GetConsoleScreenBufferInfo failed = 00000006
STD_INPUT_HANDLE:
FileType FILE_TYPE_PIPE
GetConsoleScreenBufferInfo failed = 00000006

Is there a way for mintty to execute applications which use PDCurses ?

I'm using mintty 0.9.5 with cygwin 1.7.1 on Windows 7 (x64).

BTW Happy new year :)

Original issue reported on code.google.com by szkud...@gmail.com on 3 Jan 2011 at 9:07

GoogleCodeExporter commented 8 years ago
I'm afraid you're out of luck there, unless PDcurses can be told to use 
terminal control sequences instead of Windows console functions. Mintty isn't a 
replacement for the Windows console. See issue 56 for far too much to read 
about this.

Original comment by andy.koppe on 3 Jan 2011 at 10:03