project idea: grcurses
Here's the situation: I'm writing a program of which the user interface is most easily implemented in (n)curses. At the moment it's not functional yet, but I have to keep looking a few steps ahead to make sure I don't run into trouble later...
Once it becomes functional, I would like to give it a better looking user interface, probably SDL (for portability), maybe also SVGALib.
When I will write the second UI, there are two things I could do:
- write the user interface all over again
- re-implement the ncurses functions I use on top of the graphics library, changing some of them to make the result look better (eg border() could draw a nice 3d border instead of line characters). Also add some curses-like functions that can display images or gradients or whatnot behind text, and add dummies with the same names to the ncurses version of my program.
I like the second option, so that is what I probably will do. But thinking another step further... wouldn't it be nice if my program had only one version, which first tried to use SDL, and if that failed would fall back to ncurses?
I think if I would create that functionality, it might be useful for other programmers too, so I might make a full implementation of curses and separate it into a library.
Does anyone here think they would like to have a library with which:
- existing curses based apps can run on X without an xterm, and depending on the app possibly also on ms windows without cygwin?
- one can make prettier than ncurses apps that will still work but look as ugly as ncurses when only a text console is available?
Since it would be only a just for fun project I'm not asking if it would be useful to you in the near future, just asking if it would be useful for programs you might write sometime in the less near future.
If there is demand for this, I'll make sure that my code will be useful for other programs, otherwise I might be lazy and make it inflexible, incomplete, and only useful for me.