A makefile for PDCurses was on my todo list, I just have not gotten to it yet.

BTW, orxcurses is very much a work in progress. I am adding new tests almost every day and fixing bugs as I find them (and there have been some!). But, with some minor exceptions, it does seem workable and usable.

I just found a bug yesterday that causes test11-1.rex (not commited yet) not to work. It has to do with the prefresh() API. I cannot seem to get it to work on my system. Right now I am working around the bug by implementing the method as a copywin() and refresh() combination. I must be missing something obvious but I am sure not seeing it.

And yes, I would like to see your make file for PDcruses. Go ahead and commit it to the incubator and we can all take a look at it.

David Ashley

On 01/30/2010 03:11 PM, Jean-Louis Faucher wrote:
David,

I was curious to see orxcurses in action under Windows, so I wrote a makefile.win which depends on PDCurses.

Looks good and working well !
All the tests are ok (positions, colors, scrolling...) except the following points :

The tilde is echoed ^@ and I must hit another key to see it : it's because it's a combining letter on my french keyboard. Normally, I shouldn't see the ^@, but otherwise the test is ok : the input is stopped as expected by the tests.
3-5 remains in highlighted color (colors are ok, but brighter)
7-5 is KO : nothing displayed
7-8 and 7-8a is KO : arrow keys have no effect
8-2 and 8-2a : the '+' of numeric keyboard is not detected

I had to bring a few changes to orxncurses.cpp because of char buf[n + 1] which is not supported by MSVC. And I had to create the file ncurses.h (created in the directory of PDCurses) which contains

----------[begin]
#define NCURSES_MOUSE_VERSION 1
#include <curses.h>
#define NCURSES_VERSION curses_version()
#define NCURSES_CAST(type,value) (type)(value)
#define NCURSES_ACS(c)    (acs_map[NCURSES_CAST(unsigned char,c)])
// returns the attribute used for the soft keys.
inline int slk_attr() { return 0; } // To investigate !
----------[end]

NCURSES_MOUSE_VERSION must be defined otherwise getmouse does not compile. But by doing that, the PDCurses' traditional mouse API is not used... Maybe to rework. For slk_attr(), I did not find something equivalent in PDCurses, so I return 0 but that's probably wrong. And something to watch : I replaced char buf[n + 1] by a call to NewBufferString(n...) --> maybe (n+1) is needed.


Let me know if you are interested by a commit or a patch (orxncurses.cpp and makefile.win).

Jean-Louis


------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com


_______________________________________________
Oorexx-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oorexx-devel

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Oorexx-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oorexx-devel

Reply via email to