---
name: "ptywrap"
section: "1"
platform: "linux"
package: "libmodglue1v5"
version: "1.17-4"
release: "Debian 12 (Bookworm)"
platforms: ["linux"]
url: "https://new.carta.tech/ptywrap"
---

# ptywrap(1)

fool programs into thinking they are talking to a pseudo-tty

## NAME

ptywrap - fool programs into thinking they are talking to a pseudo-tty

## SYNOPSIS

**ptywrap**

## DESCRIPTION

**ptywrap** is a simple tool to wrap other programs' input/output streams in a pseudo-tty.

Many programs determine whether or not they should buffer their input/output based on whether or not these are connected to a pseudo-tty. Ptywrap can be used to fool programs into thinking that they are connected to a pseudo-tty even if they are not (e.g. even if the input/output is redirected to a file).

## SEE ALSO

**modglue**(1). [**prompt**(1)](/prompt/1.md).

See the web page at **http://www.aei.mpg.de/~peekas/modglue/** for more information.

## AUTHORS

Kasper Peeters \<kasper.peeters@aei.mpg.de\>
