Package-level declarations

Types

Link copied to clipboard
typealias Direction = Int

-1 - to the left from cursor 0 - the entire line 1 - to the right from cursor

Link copied to clipboard
open external class ReadStream : Socket

Represents the readable side of a TTY. In normal circumstances process.stdin will be the only tty.ReadStream instance in a Node.js process and there should be no reason to create additional instances.

Link copied to clipboard
open external class WriteStream : Socket

Represents the writable side of a TTY. In normal circumstances, process.stdout and process.stderr will be the onlytty.WriteStream instances created for a Node.js process and there should be no reason to create additional instances.

Link copied to clipboard
sealed external interface WriteStreamEvent

Functions

Link copied to clipboard
external fun isatty(fd: Number): Boolean

The tty.isatty() method returns true if the given fd is associated with a TTY and false if it is not, including whenever fd is not a non-negative integer.