Skip to content

Instantly share code, notes, and snippets.

@zaucker
Created December 30, 2015 13:47
Show Gist options
  • Select an option

  • Save zaucker/0290915997b1ddc3ad53 to your computer and use it in GitHub Desktop.

Select an option

Save zaucker/0290915997b1ddc3ad53 to your computer and use it in GitHub Desktop.
NCurses with Supply (broken)
use v6;
use lib 'lib';
use NCurses;
my $win = initscr;
die "Failed to initialize ncurses\n" unless $win.defined;
my $timer = Supply.interval(1);
$timer.tap({
mvaddstr( 3, 5, "Test $_");
nc_refresh;
});
# Wait for a keypress
while getch() < 0 { };
endwin;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment