PDCursesMOD does provide a Windows graphic version called WINGUI. With this you should be able to access individual pixels using the setpixel function. There are some serious considerations How to Access Pixels in WinGUI To draw or manipulate individual pixels, you must bypass the curses abstraction and use the underlying Windows API: Get the Device Context (HDC): You need a handle to the window's device context to perform graphical operations. In the WinGUI port, you can often obtain the relevant...
I believe that you will be required to use the pdcurses-wingui.dll and copy it to pdcurses.dll Chuck Haatvedt
Assuming that the terminal / console is using a UTF-8 locale.... The currency symbol for the de_DE.UTF-8 (German/Germany) locale is the Euro sign (€). In UTF-8 encoding, which is standard for this locale, the € sign is represented by a 3-byte sequence. Its binary value is 0xE2 0x82 0xAC in the function to move numeric data to an edited numeric field where the PIC string contains the currency symbol $, what currency symbol would we use a the output is a single byte character string ? The de_de.UTF-8...
I am thinking about how to move numeric to a edited numeric field which is using the euro symbol as the currency symbol as it is a 3 byte length field which means the following is a variable length field in COBOL 05 SALES-AMT PIC $999.99-. The SALES-AMT field could be 8 to 11 bytes long depending on the size of the currency symbol or would we use 4 bytes for the currency symbol as UTF-8 characters can be 1 to 4 bytes in size ? Chuck Haatvedt the NUM-VAL functions would need to handle wide character...
Welcome Preston, I'm a retired mainframe COBOL programmer so I am not familiar with UTF-8. I assume that we would support all 3 variants on PIC U(n), fixed length, dynamic and byte-length. The following link provides some information about how this is handled in IBM Enterprise COBOL. https://www.ibm.com/docs/en/cobol-zos/6.3.0?topic=cobol-defining-utf-8-data-items Would edited numeric fields be required to use wide characters when the locale is UTF-8 as some currency symbols are multi-byte. This...
I think it would be better to adhere to the COBOL standard, which GnuCOBOL and MF COBOL are not doing now. However I would defer to Simon on this. From a more pragmatic view, it is possible to accomplish what you want to do now, it does require more work by the programmer... On the other hand, the CBL_GC_WINDOW function does allow the programmer to create multiple windows each with its own default foreground and background colors. Personally my goal was and remains to provide more functionality to...
Eugenio, do you have access to the Visual COBOL Personal Edition ? https://www.rocketsoftware.com/en-us/products/cobol/visual-cobol-personal-edition/free-download This is the current version of the Micro Focus COBOL compiler. It generates the same results as my build of GnuCOBOL. That being the case, I do not see any compelling reason to modify the compiler. Chuck H.
As to the use of "extended colors", remember that these are treated differently depending upon the COBOL compiler.