lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

Cool idea, I'm sure it will come in handy.

There is one minor bug in the code as shown:

HANDLE  Console = CreateConsoleScreenBuffer( ... );

Should read:

Console = CreateConsoleScreenBuffer( ... );

IE you really wanted to use the global "Console" variable, not create
another local variable.

As for repositioning the window, you can do a FindWindow on the caption "Lua
Console" and then a SetWindowPos on the HWND you get back.  Not the most
elegant solution, but I doubt there's a better one.


> -----Original Message-----
> From: []On
> Behalf Of Kenneth Rochel de Camargo Jr.
> Sent: Sunday, August 01, 1999 4:31 PM
> To: Multiple recipients of list
> Subject: Using console I/O under windows
> Hi everyone,
> I've been researching this for a while now, and finally I've
> found a solution
> for console I/O in a GUI Windows program (32 bit). This allows
> using programas
> that call write() and read() without a FILE* argument under
> Windows in GUI mode.
:: stuff snipped::