text mode
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
- f l u c k y p o o
Ronin''s answer will only work in certain Borland compilers. If you''re using any Win32 compiler see this. Look at SetConsoleCursorPosition.
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
- fluckypoo
- f l u c k y p o o
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).
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).
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement