Term::ReadLine::Zoid::Base(3) atomic routines


ANSI stuff

"cursor_at($x, $y)"
Positions the cursor on screen, dimensions are 1-based.
Clear screen.
Set terminal title to $string. When using for example xterm(1) this is the window name.
Returns the printable length of $string, not counting (some) ansi sequences.

Private api

Methods for use in overload classes. Avoid using these methods from the application.

Notify the user of an error or limit.
Low level function used by readline. Calls "draw()" and "do_key()".
Method called by intervals while waiting for input, to be overloaded.
Returns one key read from input (this is the named key, not the char when mapped).
Execute a key, calls subroutine for a key binding or the default binding. If $key is undefined "read_key()" is called first.
Do chars in $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.

Unshifts characters on the read buffer, arguments the same as "press()".
Returns a name for a character or character sequence.
"key_binding($key, $mode)"
Returns the keybinding for $key in $mode, mode defaults to the current one.
"bindchr($chr, $key)"
Bind a key name to a character, or a character sequence. All bindings of this kind are global (you're using only one keyboard, right ?).
Recalculates the chr map, you need to call this after deleting from %chr_names.
"print($lines, $pos)"
Low level function used by draw. Both arguments need to be array references.