ppelisset/termios

Port of Unix Termios API with PHP FFI

Maintainers

Package info

github.com/ppelisset/php-termios

pkg:composer/ppelisset/termios

Statistics

Installs: 632

Dependents: 1

Suggesters: 0

Stars: 2

Open Issues: 0

v0.1.2 2022-08-15 13:28 UTC

This package is auto-updated.

Last update: 2026-02-15 20:47:33 UTC


README

This package is a basic port of Termios Unix API for PHP using FFI. It append some wrapper to Termios API functions and provides API constants for Linux and Darwin (MacOS).

Installation

php-termios require PHP8.1 and php-ffi enabled. To install this package, use composer to require package ppelisset/termios.

Documentation

Termios\Termios::tcgetattr - Get the parameters associated with the terminal

Termios\Termios::tcsetattr - Set the parameters associated with the terminal

Termios\Termios::tcflush - Flushes input or output on a terminal