Hi Jean-Louis,
just tried to compile for Windows, using your makefile.win against
PDCurses "pdc34dlls.zip". Had to change the following line from
RX_PATH = "C:\Program Files\ooRexx"
to
RX_PATH = %REXX_HOME%
Compilation went o.k. then (on my machine ooRexx is installed someplace
else, REXX_HOME pointing to it correctly), however, when trying to run
any of the scripts I get the following error:
F:\work\svn\oorexx\incubator\orxcurses>test10-1.rex
312 *-* ::METHOD setbase public class EXTERNAL "LIBRARY orxncurses
OrxCurSetBase"
78 *-* ::requires 'ncurses.cls'
Error 98 running F:\work\svn\oorexx\incubator\orxcurses\ncurses.cls line
312: Execution error
Error 98.903: Unable to load library "orxncurses"
There could be many reasons, why the library could not get loaded, of
course.
The following DLLs are in the same directory (and PATH points to it):
03.02.2010 11:33 98.304 orxncurses.dll
09.09.2008 05:14 107.316 pdcurses.dll
So it seems that ooRexx should be able to locate orxncurses.dll and that
should be able to locate pdcurses.dll.
Not sure what the error could be, would you have any ideas, pointers?
Regards,
---rony
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