Archived

This topic is now archived and is closed to further replies.

flucknugget

text mode

Recommended Posts

In text mode, how can you print a character in the bottom right corner of the screen without having the screen scroll down? printf doesn''t do it, and I looked through conio.h and couldn''t find anything that looks like it would. flucknugget

Share this post


Link to post
Share on other sites
I was using DJGPP, which isn''t a Windows compiler, and printf()ing in the bottom right scrolls down to the next line anyway. Any other ideas? I''ve never done much text mode graphics stuff before. Is there any way I can write directly to memory? That would probably be faster than printf anyway. Also, I''ve seen programs that can have light colors (8-15) be used as background colors. Is there any website or anything about this?

- fluckypoo

Share this post


Link to post
Share on other sites
Yes you''re right, DJGPP is one of the few DOS compilers that people use anymore (it''s a port of GCC to DOS). I don''t know if ncurses runs in DOS, I''ve never tried. If you use MinGW (a port of GCC to Windows; Dev C++ is a commonly used IDE for it) you can use the Win32 API functions that I posted.

Direct access to memory is a bad idea anymore. But if you really wanted to use it, I think DJGPP obscures it through some layer (I don''t remember what it''s called).

Share this post


Link to post
Share on other sites