troubleshooting Question

C/curses to GUI rejuvenation

Avatar of HHFBF
HHFBF asked on
CScripting Languages
5 Comments1 Solution283 ViewsLast Modified:
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.
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 5 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros