File: README

package info (click to toggle)
liblinux-termios2-perl 0.01-2
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 116 kB
  • sloc: perl: 18; makefile: 2
file content (36 lines) | stat: -rw-r--r-- 988 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
NAME

    Linux::Termios2 - wrap the Linux-specific struct termios2 structure and
    related

SYNOPSIS

    This module is primarily intended as a helper for IO::Termios, but it
    could also be used directly.

     use Linux::Termios2;
     use POSIX qw( TCSANOW );
    
     my $termios = Linux::Termios2->new;
     $termios->getattr( 0 );
    
     $termios->setospeed( 123456 );
    
     $termios->setattr( 0, TCSANOW ) or
        die "Cannot TCSETS2 - $!";

DESCRIPTION

    This class provides an API equivalent to the POSIX::Termios class,
    except backed by the Linux-specific struct termios2 structure instead.

    It uses the TCGETS2 and TCSETS2 family of ioctl() calls, meaning it has
    access to the arbitrary baud rate ability of the c_ispeed and c_ospeed
    fields with the BOTHER baud setting. These are accessed transparently,
    by simply calling setispeed and setospeed with baud rates in bits per
    second.

AUTHOR

    Paul Evans <leonerd@leonerd.org.uk>