Term::ReadLine::Zoid::Base - atomic routines |
Term::ReadLine::Zoid::Base - atomic routines
This module contains some atomic operations used by all Term::ReadLine::Zoid objects. It is intended as a base class.
At the very least, to child class needs to define a default()
function
to handle key bindings and a draw()
function
which in turn calls print()
. Also the attributes IN
and OUT
should contain valid filehandles.
cursor_at($x, $y)
clear_screen()
title($string)
$string
. When using for example xterm(1)
this is the window name.
print_length($string)
Methods for use in overload classes. Avoid using these methods from the application.
bell()
loop()
draw()
and do_key()
.
beat()
read_key()
do_key($key)
$key
is undefined read_key()
is called first.
press($string)
$string
like they were typed on the keyboard. Used for testing puposes
and to make macros possible.
If you give more then one argument, these are considered individual characters, use this to press named keys.
unread_key($string)
press()
.
key_name($chr)
key_binding($key, $mode)
$key
in $mode
, mode defaults to the current one.
bindchr($chr, $key)
recalc_chr_map()
%chr_names
.
print($lines, $pos)
Undefined behaviour when the buffer has more lines then the terminal.
Please mail the author if you find any other bugs.
Jaap Karssenberg || Pardus [Larus] <pardus@cpan.org>
Copyright (c) 2004 Jaap G Karssenberg. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
the Term::ReadLine::Zoid manpage
Term::ReadLine::Zoid::Base - atomic routines |