Linux::Termios2(3pm)

Linux::Termios23pm

Wrap the linux-specific "struct termios2" structure and related

Usage

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 - $!";

Overview

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.

Releases

3 releases since Debian 11 (Bullseye); the text changed 2 times.

  1. 11
  2. 12
  3. 13

Author

Paul Evans <[email protected]>

From liblinux-termios2-perl 0.01-3+b2 in Debian 13 (Trixie). Parsed by carta from the page's man source.