@types/termios-fixedv12
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

Installation

npm install --save @types/termios-fixedv12

Summary

This package contains type definitions for termios-fixedv12 (https://github.com/TKasperczyk/node-termios).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/termios-fixedv12.

index.d.ts

export type iflags =
    | "IGNBRK"
    | "BRKINT"
    | "IGNPAR"
    | "PARMRK"
    | "INPCK"
    | "ISTRIP"
    | "INLCR"
    | "IGNCR"
    | "ICRNL"
    | "IXON"
    | "IXOFF"
    | "IXANY"
    | "IMAXBEL";
export type oflags = "OPOST" | "ONLCR" | "OCRNL" | "ONOCR" | "ONLRET";
export type cflags =
    | "CSIZE"
    | "CS5"
    | "CS6"
    | "CS7"
    | "CS8"
    | "CSTOPB"
    | "CREAD"
    | "PARENB"
    | "PARODD"
    | "HUPCL"
    | "CLOCAL";
export type lflags =
    | "ECHOKE"
    | "ECHOE"
    | "ECHOK"
    | "ECHO"
    | "ECHONL"
    | "ECHOPRT"
    | "ECHOCTL"
    | "ISIG"
    | "ICANON"
    | "IEXTEN"
    | "EXTPROC"
    | "TOSTOP"
    | "FLUSHO"
    | "PENDIN"
    | "NOFLSH";
export interface termios {
    iflag: { [K in iflags]: boolean };
    oflag: { [K in oflags]: boolean };
    cflag: { [K in cflags]: boolean };
    lflag: { [K in lflags]: K extends "EXTPROC" ? boolean | undefined : boolean };
    cbaud?:
        | 0
        | 50
        | 75
        | 110
        | 134
        | 150
        | 200
        | 300
        | 600
        | 1200
        | 1800
        | 2400
        | 4800
        | 9600
        | 19200
        | 38400
        | 57600
        | 115200
        | 230400
        | 460800
        | 500000
        | 576000
        | 921600
        | 1000000
        | 1152000
        | 1500000
        | 2000000
        | 2500000
        | 3000000
        | 3500000
        | 4000000;
}
export function setattr(
    fd: number,
    attr: { [K in keyof termios]?: K extends "cbaud" ? termios[K] : Partial<termios[K]> },
): void;
export function getattr(fd: number): termios;

Additional Details

  • Last updated: Wed, 22 Nov 2023 00:24:48 GMT
  • Dependencies: none

Credits

These definitions were written by 8128-33550336.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/termios-fixedv12

Weekly Downloads

1

Version

0.1.0

License

MIT

Unpacked Size

5.85 kB

Total Files

5

Last publish

Collaborators

  • types