1Term::Completion::_sttyU(s3e)r Contributed Perl DocumentaTteiromn::Completion::_stty(3)
2
3
4
6 Term::Completion::_stty - utility package for Term::Completion using
7 stty
8
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 the "stty" utility, which however is probably only
13 available on UNIX.
14
15 This is basically a copy from the original Term::Complete and provided
16 for compatibility reasons. Instead of this, the
17 Term::Completion::_POSIX implementation should be used.
18
19 Methods
20 set_raw_tty()
21 Uses "stty raw -echo" to set the terminal into "raw" mode, i.e.
22 switch off the meaning of any control characters like CRTL-C etc.
23 Also the echo of characters is switched off, so that the program
24 has full control of what is typed and displayed.
25
26 Before doing that, tries to capture the terminal's current state
27 with "stty -g" and stores that for later use.
28
29 Will work on STDIN and ignore what was set as the input handle in
30 Term::Completion.
31
32 reset_tty()
33 Resets the terminal to its previous state, using the saved state.
34 If that's unavailable, fall back to "stty -raw echo".
35
36 get_key()
37 Reads one byte from the input handle. Uses standard getc(), see
38 also "getc" in perlfunc.
39
41 Marek Rouchal <marekr@cpan.org>
42
43 Reused code from Term::Complete which is part of the Perl core
44 distribution.
45
47 Copyright (c) 2009, Marek Rouchal. All Rights Reserved. This module is
48 free software. It may be used, redistributed and/or modified under the
49 same terms as Perl itself.
50
52 Term::Complete
53
54
55
56perl v5.30.0 2019-07-26 Term::Completion::_stty(3)