Question

I'm writing a quick server app for something so don't really want to write a full GUI. However the problem is that the main part of the server, however the console window will only allow input or output at a time.

Many games ive played that have a console in them (usually needs activating in some way or another) they solved this problem by separating the input and output, such that the bottom line is dedicated to entering input commands, while the rest is used for output like a normal console window.

Is it possible to do something like that with a minimal amount of work (ie without having to write my own console window from scratch), and in a cross platform way? Ideally id like to still use the normal command prompt somehow for the case where the server is running on a system without all the GUI stuff installed, although I guess a simple GUI client that could connect with the server would be fine as well.

By cross platform I mean Windows and Linux support is required. Although if I went the client GUI route id also require Mac on top of that.

Was it helpful?

Solution

Sounds like you should have a look at curses

ncurses

pdcurses

OTHER TIPS

GUI builders these days are very easy. You might find that clicking together a gui is easier than solving this the way you want.

I'm a bit uncertain about the cross-platform part. Could you narrow it down a bit and specify which platforms you have in mind?

If you are considering Linux (which in itself is cross-platform, at least to some extent), then I'd take a look at ncurses.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top