Created
December 30, 2015 13:47
-
-
Save zaucker/0290915997b1ddc3ad53 to your computer and use it in GitHub Desktop.
NCurses with Supply (broken)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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