How could one more easily transform a (huge) C program that uses the 'curses' library for keyboard and screen management into a GUI program without changing the program itself but just the calls to the curses routines?
The final program is intended to have a GUI look&feel, and ideally accept mouse input.
Would it be conceivably possible to write some sort of wrapper or middleware that mimics curses?
All calls to curses were nicely encapsulated into other functions so that the original program does not make any direct access to curses itself.
Since the original C program is server based, I presume the transformed version would also be server based which naturally lead to a web interface.
On the other hand, curses allows capturing keyboard input character by character, which resembles a client type language.
I appreciate the comments.