Jump to content
  • Advertisement

Archived

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

flucknugget

text mode

This topic is 6093 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!