Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Perl6: Terminal-independent character screen I/O library

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 examples
Octocat-spinner-32 lib
Octocat-spinner-32 t
Octocat-spinner-32 LICENSE
Octocat-spinner-32 META.info
Octocat-spinner-32 README.md
README.md

Term::Curses

The curses library provides terminal-independent, portable manipuation of character screens. This library provides a native-call wrapper around the system ncurses library.

Synopsis

use Term::Curses;

my $win = Term::Curses.new(:start_color);
$win.x = 10;
$win.y = $win.maxy / 2;
$win.addstr("Hello, world!");
$win.refresh;
$win.getkey;
$win.DESTROY();  # RAKUDO Required, not called automatically

TODO

Most important TODO item is to not hard-code the curses library name, so it can be used on systems other than OS X. This may require changes to the NativeCall module, or there may be some way to do it in this code.

The next most important item is to create decent tests that can be run without user interaction.

Then, other items:

  • Handle UTF-8 input; currently it comes in one-key-per-octet
  • Expose much more of the library API
  • Port example programs from other curses libs
  • More docs
Something went wrong with that request. Please try again.