Thread overview
what dmc library is similar to ncurses?
Mar 30, 2007
Howard
Mar 30, 2007
Bertel Brander
Apr 02, 2007
Howard
Mar 30, 2007
Walter Bright
March 30, 2007
Hi,
I am still learning basics of C.
I have learned some usage of the linux ncurses library.

I would like to know what dmc libraries to start into to get similar screen manipulation effects on the msdos screen.

Thanks, Howard
March 30, 2007
Howard skrev:
> Hi,
> I am still learning basics of C.
> I have learned some usage of the linux ncurses library.
> 
> I would like to know what dmc libraries to start into to get similar screen manipulation effects on the msdos screen.

Is it real DOS or is it a console window under Windows?

I the latter case use the console funktions:
http://msdn2.microsoft.com/en-us/library/ms682073.aspx

Start by getting a HANDLE for the console output with
GetStdHandle.

-- 
Just another homepage:
http://damb.dk
But it's mine - Bertel
March 30, 2007
Howard wrote:
> I have learned some usage of the linux ncurses library.
> 
> I would like to know what dmc libraries to start into to get similar screen manipulation effects on the msdos screen.

http://www.digitalmars.com/rtl/disp.html
April 02, 2007
> Is it real DOS or is it a console window under Windows?
> 
> I the latter case use the console funktions:
> http://msdn2.microsoft.com/en-us/library/ms682073.aspx
> 
> Start by getting a HANDLE for the console output with
> GetStdHandle.
> 
So there will be a difference between booting to dos and
 a console window. noted...

Ok I'm getting a handle now and am up to drawring a box!
Gotta love that "Knowledge Base".
I am now following a nice console tutorial which sticks to
using only windows.h:
http://www.adrianxw.dk/SoftwareSite/Consoles/Consoles1.html

Already I feel the urge to write functions to reduce those
commands but I've peeked and see that they're already in disp.h!

Thanks for the direction!

I have a question though: I usually compile with these options:
dmc -A -r myprog.c

When I #include <windows.h>  the -A (ansi) finds these problems
way out in winnt.h:
==========
D:\C\dos_screen\adrian_tut>   dmc -A -r  adriantut_1.c
typedef wchar_t WCHAR;    // wc,   16-bit UNICODE character
                    ^
D:\C\DMARS\DM\BIN\..\include\win32\WINNT.H(82) : Error: missing ',' between decl
aration of 'wchar_t' and 'WCHAR'
typedef WCHAR *PWCHAR;
              ^
D:\C\DMARS\DM\BIN\..\include\win32\WINNT.H(84) : Error: '=', ';' or ',' expected

_inline PVOID GetFiberData( void ) { __asm {
            ^
D:\C\DMARS\DM\BIN\..\include\win32\WINNT.H(1267) : Error: missing ',' between de
claration of '_inline' and 'PVOID'
} FLOATING_SAVE_AREA;
^
D:\C\DMARS\DM\BIN\..\include\win32\WINNT.H(1319) : Error: identifier or '( decla
rator )' expected
typedef FLOATING_SAVE_AREA *PFLOATING_SAVE_AREA;
                           ^
D:\C\DMARS\DM\BIN\..\include\win32\WINNT.H(1321) : Error: '=', ';' or ',' expect
ed
Fatal error: too many errors
--- errorlevel 1
==========

I was wondering if you might like to know about them.
Presently, I'm just not using the -A but would rather.

I am using v849  from the dm849c.zip on an  AMD k6-2 running win98.

Thanks for the great suggestions on where to start,
Howard