I want to create pseudo-wordstar/turboc++ like GUI... Anyone got an idea on how to do this? I can't find the right library for it.
I'n using dev c++ and can't use graphics.h
Printable View
I want to create pseudo-wordstar/turboc++ like GUI... Anyone got an idea on how to do this? I can't find the right library for it.
I'n using dev c++ and can't use graphics.h
There's no real portable way to move about the screen in DOS, so the best bet for you on Dev-C++ is most likely windows.h. I believe they have a gotoxy() implementation for you to use, otherwise, I would say conio.h, which Dev-C++ doesn't have a full version of, so you'd have to go fishing the internet for that gotoxy() implementation. If you want non console UI, then you'll have to look for a free graphics library online.
http://www.tldp.org/HOWTO/NCURSES-Programming-HOWTO/
You can get a port of curses for dev-c++
http://devpaks.org/details.php?devpak=5
You can also use Conio2. It adds to minGW's implementation of conio.
EDIT: Edited after I noticed Salem's post.
I've never used CURSES. I think I'll try it seeing as to how promoted it is.
Gotoxy:
I dug this up from a site somewhere. It should work if you don't already have gotoxy().Code:#include <windows.h>
void gotoxy(int x, int y)
{
COORD coord;
coord.X = x;
coord.Y = y;
SetConsoleCursorPosition(
GetStdHandle(STD_OUTPUT_HANDLE), coord);
}