1Term::Completion::_POSIUXs(e3r)Contributed Perl DocumentTaetrimo:n:Completion::_POSIX(3)
2
3
4

NAME

6       Term::Completion::_POSIX - utility package for Term::Completion using
7       POSIX termios
8

DESCRIPTION

10       This utility package contains few methods that are required for
11       Term::Completion to put the terminal in "raw" mode and back.  This
12       package uses POSIX termios to accomplish this, which should be portable
13       across many UNIX-like systems. It was successfully tested on Solaris
14       and Linux.
15
16   Methods
17       set_raw_tty()
18           Uses "POSIX::Termios" in POSIX and related methods to set the
19           terminal into "raw" mode, i.e. switch off the meaning of any
20           control characters like CRTL-C etc. Also the echo of characters is
21           switched off, so that the program has full control of what is typed
22           and displayed.
23
24           Uses the "in" field of the Term::Completion object to get the input
25           file handle. Won't do anything if this is not a TTY. See also "-X"
26           in perlfunc.
27
28       reset_tty()
29           Resets the terminal to its previous state, which was saved in the
30           object's fields ("_tty_XXX").
31
32       get_key()
33           Reads one byte from the input handle. Internally uses "getc" in
34           perlfunc.
35

AUTHOR

37       Marek Rouchal <marekr@cpan.org>
38
39       Some ideas were borrowed from IO::Stty by Austin Schutz
40
42       Copyright (c) 2009, Marek Rouchal. All Rights Reserved.  This module is
43       free software. It may be used, redistributed and/or modified under the
44       same terms as Perl itself.
45

SEE ALSO

47       POSIX, IO::Stty
48
49
50
51perl v5.32.0                      2020-07-28       Term::Completion::_POSIX(3)
Impressum