Desktop App Productivity ★ 2,122 stars on GitHub

pty

This tool allows software creators to interact with terminal-based programs programmatically.

Visit Official Site

Guide and Overview

What it does in plain English

This tool acts as a bridge that lets software programs talk to terminal-based applications as if a human were typing at a keyboard. It allows developers to start, stop, and send commands to terminal software automatically. By simulating a real user session, it makes it possible to automate tasks that usually require manual input.

Who it’s for

  • Software developers building automation tools or testing suites for command-line software.
  • System administrators looking to script complex interactions with legacy terminal applications.

Key features

  • Enables programmatic control over terminal input and output streams.
  • Handles terminal resizing events so the software stays responsive.
  • Supports raw mode for precise control over keystrokes and data flow.
  • Simplifies the process of connecting custom scripts to standard terminal shells.

How to install (Download)

This is a library for the Go programming language. To include it in your project, use the standard Go package manager by running the following command in your project folder: go get github.com/creack/pty

For more information and documentation, visit the Official Documentation Page.

Pros and Cons

  • Pros: Lightweight, efficient, and widely used in the Go ecosystem for terminal automation.
  • Cons: Requires knowledge of the Go programming language to implement and use effectively.

Optional commercial services unrelated to the open-source developer. Clicking an #ad link helps fund HubHum at no extra cost to you.

  • ★ Top Recommended — Systeme.io: Free-forever all-in-one platform to build landing pages, newsletters, and automated workflows with zero monthly fees — Activate Systeme.io → (#ad)
  • AdGuard: Block intrusive ads, tracking scripts, and phishing domains system-wide across all browsers and desktop apps — AdGuard (#ad)
  • InterServer: Launch and host self-hosted web apps 24/7 on managed Linux cloud VPS servers starting at $3/month — InterServer (#ad)

Official Source & Credits: Official Source / Credits

Affiliate transparency (#ad): Some links on this page are affiliate links. If you choose to activate a service through them, we may earn a commission at no extra cost to you.

Your Saved Favorites

Your favorite apps are saved right here in this browser.


Sign in with one click to link your GitHub profile and sync favorites.