https://github.com/dabigblob/cotty
Control a TTY from another TTY
https://github.com/dabigblob/cotty
bsd linux linux-shell ssh terminal tty
Last synced: 2 months ago
JSON representation
Control a TTY from another TTY
- Host: GitHub
- URL: https://github.com/dabigblob/cotty
- Owner: DaBigBlob
- License: bsd-3-clause
- Created: 2023-07-09T21:18:57.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-14T20:54:18.000Z (almost 3 years ago)
- Last Synced: 2025-09-04T01:38:28.979Z (10 months ago)
- Topics: bsd, linux, linux-shell, ssh, terminal, tty
- Language: C
- Homepage:
- Size: 80.1 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# COTTY
Control inputs to another TTY from one TTY. \
It automatically enters interactive mode if -d is not passed.
### SYNOPSIS
cotty -T path/to/tty [-v] [-d] [-c] [-b backspace-count] [-s string-to-send] [-n] [-h]
### OPTIONS
-T Path to the (slave) tty you want to control.
-v Verbose output.
-d Disable interactive mode.
-c Clear Screen.
-b Number of backspaces to send to the tty. Used as the BACKSPACE/DELETE(Mac) key.
-s String to send.
-n Send newline. Used as the ENTER/RETURN(Mac) key.
-C Send Ctrl+c to slave tty.
-h Show this help text block and exit.
## Installation
```bash
curl -s https://raw.githubusercontent.com/DaBigBlob/cotty/main/install.sh | sh
```
## Run
```bash
./cotty -T path/to/slave/tty
```
**or**
```bash
cotty -T path/to/slave/tty
```
if it was added to your $PATH
### BUGS
Does not work on MacOS due to restrictions on input buffer of another terminal.