console application?

Linux specific forum
jassing
Addict
Addict
Posts: 1885
Joined: Wed Feb 17, 2010 12:00 am

console application?

Post by jassing »

I have been asked to create an "old school" style application for windows & linux. (see image below)
it looks like purebasic doesn't natively support the 'graphics mode console' .

Can this be done with linux api's? if so has anyone done any wrappers to make the transition from windows to linux a bit easier? or any tips on reading material for the linux api that will get it done?

Thanks
-josh
Image
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: console application?

Post by IdeasVacuum »

PB has this native command: EnableGraphicalConsole(#True)

http://www.purebasic.com/documentation/ ... nsole.html

Of course, you could make a windowed version quickly and easily - and make it look like your screen shot.
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
Fred
Administrator
Administrator
Posts: 18350
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: console application?

Post by Fred »

Sounds like you want to use 'ncurses': http://en.wikipedia.org/wiki/Ncurses
jassing
Addict
Addict
Posts: 1885
Joined: Wed Feb 17, 2010 12:00 am

Re: console application?

Post by jassing »

Fred wrote:Sounds like you want to use 'ncurses': http://en.wikipedia.org/wiki/Ncurses
Thanks Fred.

IdeasVacuum: Except I want to create this in linux and windows; not just windows...
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: console application?

Post by IdeasVacuum »

Well, I did say windowed rather than Windows. You could even owner-draw using the Canvas Gadget..........
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
Post Reply