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