If that was a typo, Tobias, well done. If it wasn't a typo, even more well done!tofro wrote:Of curse!Derek_Stewart wrote:Hi,
I was going to port ncurses to C68, do you think this would be of any use?

If that was a typo, Tobias, well done. If it wasn't a typo, even more well done!tofro wrote:Of curse!Derek_Stewart wrote:Hi,
I was going to port ncurses to C68, do you think this would be of any use?
Hi,Peter wrote:Of c(o)urse I know that ncurses is newer than curses, but most ncurses calls are said to be easily portable to the old curses, which exists for C68.
What is the exact point in an ncurses port?
Compiled testcur1.c without any problems like so: qcc testcur1.c -o testcur -lcursesswensont wrote:SM71,
Check out SMSQzine #7 for some working examples of curses. The source files are in the accompanying .zip file. SMSQzine can be found on my website:
http://swensont.epizy.com/
Tim
Code: Select all
REMark Set variable for terminal type
SETENV "TERM=QDOS"
:
REMark Set variable for terminal info file
SETENV "TERMINFO=terminfo"
Aha, so I must set this in my bootfile of both my real QL as well as QLAY2 ? I do all development and compiling on Linux with qcc and then I use mdvtools to create an MDV file which I then use on QL, both real and emulated.Derek_Stewart wrote:Hi,
The problem here is that you have not set the Environmental Variable for the terminal type, which uses "terminfo_qdos"
I set my VT52 terminal in the boot file with the following commands:
This allows the Curses compiled programme to load the VT52 screen emulation file.Code: Select all
REMark Set variable for terminal type SETENV "TERM=QDOS" : REMark Set variable for terminal info file SETENV "TERMINFO=terminfo"
It is detailed in the LIBcurses documentation, the terminfo_qdos file is contained in the C68 distribution runtime disk 2
Having the VT52 terminal defines all the "testcur" C files now compile correctly, giving the "-lcurses" option on the command line at the end of the command string:
ex CC;"-o testcur1_exe testcur1_c -lcurses"