Debian Codegraph @

README

raw
1 NAME
2
3 Linux::Termios2 - wrap the Linux-specific struct termios2 structure and
4 related
5
6 SYNOPSIS
7
8 This module is primarily intended as a helper for IO::Termios, but it
9 could also be used directly.
10
11 use Linux::Termios2;
12 use POSIX qw( TCSANOW );
13
14 my $termios = Linux::Termios2->new;
15 $termios->getattr( 0 );
16
17 $termios->setospeed( 123456 );
18
19 $termios->setattr( 0, TCSANOW ) or
20 die "Cannot TCSETS2 - $!";
21
22 DESCRIPTION
23
24 This class provides an API equivalent to the POSIX::Termios class,
25 except backed by the Linux-specific struct termios2 structure instead.
26
27 It uses the TCGETS2 and TCSETS2 family of ioctl() calls, meaning it has
28 access to the arbitrary baud rate ability of the c_ispeed and c_ospeed
29 fields with the BOTHER baud setting. These are accessed transparently,
30 by simply calling setispeed and setospeed with baud rates in bits per
31 second.
32
33 AUTHOR
34
35 Paul Evans <[email protected]>
36