Can I determine at run time if I'm running in a Console or a GUI version of PDC ??
That might make it easier to get the colours & line drawing chars correct.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
PDC wise, yes, there are extended version information (as seen in cobcrun -v --info). But you should not need this information to get the colors right. As GnuCOBOL does the same for all PDC variants colors that differ between the ports would be a PDC problem and should be reported to its issue tracker.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
Anonymous
-
2021-04-17
On the Win platform, PDCurses maps the curses API to the Win Console API.
So the program is running in Console mode.
However, since Vista, the Console uses the native rendering subsystem.
So the Console is running as a GUI app.
There is a project called PDCursesMod that maps the curses API to the Win GUI API.
But for what ever reason it was never merged with official PDCurses project.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Can I determine at run time if I'm running in a Console or a GUI version of PDC ??
That might make it easier to get the colours & line drawing chars correct.
PDC wise, yes, there are extended version information (as seen in cobcrun -v --info). But you should not need this information to get the colors right. As GnuCOBOL does the same for all PDC variants colors that differ between the ports would be a PDC problem and should be reported to its issue tracker.
On the Win platform, PDCurses maps the curses API to the Win Console API.
So the program is running in Console mode.
However, since Vista, the Console uses the native rendering subsystem.
So the Console is running as a GUI app.
There is a project called PDCursesMod that maps the curses API to the Win GUI API.
But for what ever reason it was never merged with official PDCurses project.