ncurses icon indicating copy to clipboard operation
ncurses copied to clipboard

Has this binding been tested on Mac?

Open serge-hulne opened this issue 4 years ago • 1 comments

I tried

require "ncurses"

NCurses.start

NCurses.print "Hello world!"
puts "test"

NCurses.end

On a Mac , but it only prints "test"

serge-hulne avatar Nov 26 '21 14:11 serge-hulne

I know it's been over 3 years now, but on MacOS(not sure how it is on other platforms) will have kind of a separate terminal window which will close after NCurses.end and restore it's original content. So to see results You would need something like this:

require "ncurses"

NCurses.start
NCurses.print "Hello world!"
NCurses.refresh
sleep(Time::Span.new(seconds: 10))
NCurses.end

In this example it will show Hello World for 10 seconds and close

LolsonX avatar Jan 31 '25 13:01 LolsonX