Menu

Console or GUI version of PDC ??

David Wall
2021-04-16
2021-04-17
  • David Wall

    David Wall - 2021-04-16

    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.

     
    • Simon Sobisch

      Simon Sobisch - 2021-04-16

      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.

       
  • 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.

     

Anonymous
Anonymous

Add attachments
Cancel