ncurses
ncurses copied to clipboard
Has this binding been tested on Mac?
I tried
require "ncurses"
NCurses.start
NCurses.print "Hello world!"
puts "test"
NCurses.end
On a Mac , but it only prints "test"
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