How do I write ncurses chtype data to an external file?
by jlt1 from LinuxQuestions.org on (#5C3SY)
I'm trying to learn to program with ncurses, and I have read several times through Dan Gookin's Programmer's Guide to nCurses; but there seems to be very little in there about getting data into and out of a program, especially getting it out.
Chapter 11, which deals with Pads, shows and example of how to read the contents of an external file, but there is no corresponding example for converting chtype data to regular strings to be written to a file.
This seems like it ought to be straightforward, but so far I haven't been able to find information about this.
To further confuse things, the above book is rather outdated, and does not deal with UTF-8 or wide-character data at all.


Chapter 11, which deals with Pads, shows and example of how to read the contents of an external file, but there is no corresponding example for converting chtype data to regular strings to be written to a file.
This seems like it ought to be straightforward, but so far I haven't been able to find information about this.
To further confuse things, the above book is rather outdated, and does not deal with UTF-8 or wide-character data at all.