Ncurses deprecated "~master" issue

Paul via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Feb 10 12:50:27 PST 2015


On Tuesday, 10 February 2015 at 19:49:26 UTC, ketmar wrote:
> On Tue, 10 Feb 2015 19:37:59 +0000, Meta wrote:
>
>> I can't answer your question, but if you're just prototyping 
>> you could
>> use Adam Ruppe's terminal.d until you get ncurses working.
>> https://github.com/adamdruppe/arsd/blob/master/terminal.d
>
> and i daresay that with 'terminal.d' there is no need in 
> ncurses at all
> (except if someone needs ncurses panels, but i can't imagine 
> why).

Thanks both for the replies. Terminal.d looks as though it will 
do what I want but I'm familiar with using ncurses and could do 
without learning to use yet another api at the minute. 
Nevertheless, I had a quick look, but trying to create an 
instance of the Terminal struct like so:

Terminal myTerm = Terminal(ConsoleOutputType.cellular, 0, 1, 
null);

(which I think is the corrct way to do it!) gives me this error:

test.o: In function `_Dmain':
test.d:(.text._Dmain+0x13): undefined reference to 
`_D8terminal8Terminal6__initZ'
test.d:(.text._Dmain+0x3c): undefined reference to 
`_D8terminal8Terminal6__ctorMFNcE8terminal17ConsoleOutputTypeiiDFZAiZS8terminal8Terminal'
test.d:(.text._Dmain+0x6a): undefined reference to 
`_D8terminal8Terminal6__dtorMFZv'
collect2: error: ld returned 1 exit status
--- errorlevel 1

I have no idea how to fix that. Any suggestions please?



More information about the Digitalmars-d-learn mailing list