Term::Completion::_POSIX - utility package for Term::Completion using POSIX termios


Term-Completion documentation  | view source Contained in the Term-Completion distribution.

Index


NAME

Top

Term::Completion::_POSIX - utility package for Term::Completion using POSIX termios

DESCRIPTION

Top

This utility package contains few methods that are required for Term::Completion to put the terminal in "raw" mode and back. This package uses POSIX termios to accomplish this, which should be portable across many UNIX-like systems. It was successfully tested on Solaris and Linux.

Methods

set_raw_tty()

Uses "POSIX::Termios" in POSIX and related methods to set the terminal into "raw" mode, i.e. switch off the meaning of any control characters like CRTL-C etc. Also the echo of characters is switched off, so that the program has full control of what is typed and displayed.

Uses the "in" field of the Term::Completion object to get the input file handle. Won't do anything if this is not a TTY. See also -X in perlfunc.

reset_tty()

Resets the terminal to its previous state, which was saved in the object's fields (_tty_XXX).

get_key()

Reads one byte from the input handle. Internally uses getc in perlfunc.

AUTHOR

Top

Marek Rouchal <marekr@cpan.org>

Some ideas were borrowed from IO::Stty by Austin Schutz

COPYRIGHT

Top

SEE ALSO

Top

POSIX, IO::Stty


Term-Completion documentation  | view source Contained in the Term-Completion distribution.