Sha256: af65788967bfd94f6f1d9aba139cab15a31830fd110a0c104d240f406e08a724

Contents?: true

Size: 491 Bytes

Versions: 1

Compression:

Stored size: 491 Bytes

Contents

# ruby-ttyname

ruby-ttyname is a small library that lets get the name of a tty device.

ruby-ttyname adds one method (`ttyname`) for use with any `IO` instance for a
TTY device.

## Installing

### Recommended

```
gem install ttyname
```

### Edge

```
git clone https://github.com/samuelkadolph/ruby-ttyname
cd ruby-ttyname && rake install
```

## Usage

To get the ttyname of the `$stdout` terminal.

```ruby
require "ttyname"

name = $stdout.ttyname
puts "Your terminal is #{name}"
```

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ttyname-1.0.0 README.md