---
name: "ttyflags"
section: "8"
platform: "openbsd"
package: "man"
version: "8.0-current-20261101"
release: "OpenBSD 8.0-current (2026-11-01)"
platforms: ["openbsd"]
url: "https://new.carta.tech/ttyflags"
---

# ttyflags(8)

set device-specific flags for terminals

## NAME

**ttyflags** – set device-specific flags for terminals

## SYNOPSIS

**ttyflags** \[**-pv**\] \[**-a** \| *tty* *...*\]

## DESCRIPTION

**ttyflags** sets the device-specific flags for terminals, based on the flags found on the terminal's line in */etc/ttys*.

The options are as follows:

- **-a**

  Set the flags for all terminals in */etc/ttys*.

- **-p**

  Print out flag information about each terminal, instead of setting anything.

- **-v**

  Be verbose about what the terminal's flags will be set to.

The *tty* arguments are optional, but must not be specified if the **-a** flag is used. If specified, the *tty* arguments should be the base names of the ttys, as found in */etc/ttys*.

## FILES

- */etc/ttys*

  ## SEE ALSO

[getttyent(3)](/getttyent/3.md), [ttys(5)](/ttys/5.md)

## HISTORY

The **ttyflags** utility appeared in NetBSD 0.9a.

## BUGS

The conditions on which to report an error are ill-defined. **ttyflags** tries to report all significant errors, perhaps going over-board at times.
