View Full Version: console functions in linux

C++ Learning Community > C++ for Linux > console functions in linux


Title: console functions in linux
Description: how?


tiptep - December 31, 2005 10:34 PM (GMT)
I kinda' broke my windows install yesterday, so until I fix it, I'm using knoppix, but the program I was working on uses alot of console functions from <windows.h>, like SetConsoleTextAttribute, and SetConsoleCursorPosition. How can I use these in knoppix?

Bonus question!- Is there a site somewhere like msdn, but for linux?

Thanks! ^_^

C00L - January 19, 2006 02:07 AM (GMT)
i know this topic is kinda old, but i haven't checked this section in a while.

from my understanding the only acces you have to the kernel is through the c library, and through asm interrupts. but since interrupts arent guaranteed to stay the same from each version then you are kind of stuck with the c library.

but this is what i think, not to sure. i'm probably way off ;)

C-Man - January 19, 2006 10:07 AM (GMT)
ioctl :badboy:

Incubator - January 23, 2006 08:57 AM (GMT)
for basic console things I redirect you to the GNU C Library http://www.gnu.org/software/libc/manual/

and ncurses
http://dickey.his.com/ncurses/man/index.html
thats what I know , maybe there's more

tiptep - January 23, 2006 03:21 PM (GMT)
woah, after a couple of days with no reply I forgot about this topic, lol :P . I've fixed my computer since then, but I'm gonna definately take a look at those links. Nothing wrong with learning something new ;)




Hosted for free by InvisionFree