| Crates.io | telnet_wrapper |
| lib.rs | telnet_wrapper |
| version | 0.1.0 |
| created_at | 2026-01-25 22:58:56.52749+00 |
| updated_at | 2026-01-25 22:58:56.52749+00 |
| description | A telnet server that wraps terminal applications, exposing them to telnet clients with proper protocol support including window size negotiation (NAWS) |
| homepage | |
| repository | https://github.com/justpresident/telnet_wrapper |
| max_upload_size | |
| id | 2069761 |
| size | 38,263 |
A telnet server that wraps any terminal application, exposing it to telnet clients with proper protocol support.
cargo install telnet_wrapper
git clone https://github.com/justpresident/telnet_wrapper
cd telnet_wrapper
cargo build --release
telnet_wrapper [OPTIONS] <APP_COMMAND> [APP_ARGS]...
| Argument | Description |
|---|---|
<APP_COMMAND> |
The application command to run within the PTY |
[APP_ARGS]... |
Arguments to pass to the application command |
| Option | Default | Description |
|---|---|---|
--port <PORT> |
23 | Port to listen on |
--rows <ROWS> |
24 | Initial number of rows for the PTY |
--cols <COLS> |
80 | Initial number of columns for the PTY |
-h, --help |
Print help | |
-V, --version |
Print version |
telnet_wrapper --port 2323 /usr/bin/htop
Then connect:
telnet localhost 2323
telnet_wrapper --port 2323 /bin/bash
telnet_wrapper --port 2323 /usr/bin/vim /tmp/test.txt
telnet_wrapper --port 2323 --rows 40 --cols 120 /usr/bin/htop
This wrapper implements the following telnet options:
| Option | Description |
|---|---|
| ECHO | Server-side echo (enables character mode) |
| SGA | Suppress Go Ahead (required for character mode) |
| NAWS | Negotiate About Window Size (dynamic terminal resizing) |
| LINEMODE | Disabled to ensure character-by-character input |
Ctrl+] and then type q or press Ctrl+DTERM environment variable is set to xterm-256color for the wrapped applicationMIT License - see LICENSE for details.