mizchi/js_node/tty does not have a README file

    ReadStream

    #external
    pub type ReadStream

    TTY ReadStream - represents the readable side of a terminal https://nodejs.org/api/tty.html#class-ttyreadstream

    ReadStream::as_any

    ReadStream::as_event_target

    ReadStream::is_raw

    fn ReadStream::is_raw(self : ReadStream) -> Bool

    Check if ReadStream is in raw mode

    ReadStream::is_tty

    fn ReadStream::is_tty(self : ReadStream) -> Bool

    Check if ReadStream is a TTY

    ReadStream::set_raw_mode

    fn ReadStream::set_raw_mode(self : ReadStream, mode : Bool) -> Unit

    Set raw mode for the ReadStream In raw mode, input is available character-by-character

    ReadStream::to_any

    WriteStream

    #external
    pub type WriteStream

    TTY WriteStream - represents the writable side of a terminal https://nodejs.org/api/tty.html#class-ttywritestream Extends net.Socket which extends stream.Duplex

    WriteStream::as_any

    WriteStream::as_event_target

    WriteStream::clear_line

    fn WriteStream::clear_line(self : WriteStream, dir : Int, callback : () -> Unit) -> Unit

    Clear the current line dir: -1 (left), 0 (entire line), 1 (right)

    WriteStream::clear_screen_down

    fn WriteStream::clear_screen_down(self : WriteStream, callback : () -> Unit) -> Unit

    Clear the screen from cursor position downward

    WriteStream::columns

    fn WriteStream::columns(self : WriteStream) -> Int

    Get the number of columns in the terminal

    WriteStream::cursor_to

    fn WriteStream::cursor_to(self : WriteStream, x : Int, y : Int, callback : () -> Unit) -> Unit

    Move cursor to absolute position

    WriteStream::end

    fn WriteStream::end(self : WriteStream, chunk? :
    Any
    , encoding? : String, callback? :
    Any
    ) -> WriteStream

    End the stream (inherited from stream.Writable)

    WriteStream::get_color_depth

    fn WriteStream::get_color_depth(self : WriteStream) -> Int

    Get the color depth supported by the terminal Returns 1, 4, 8, or 24 bits

    WriteStream::get_window_size

    fn WriteStream::get_window_size(self : WriteStream) -> (Int, Int)

    Get window size as [columns, rows]

    WriteStream::has_colors

    fn WriteStream::has_colors(self : WriteStream, count : Int) -> Bool

    Check if terminal supports the requested color count

    WriteStream::is_tty

    fn WriteStream::is_tty(self : WriteStream) -> Bool

    Check if WriteStream is a TTY

    WriteStream::move_cursor

    fn WriteStream::move_cursor(self : WriteStream, dx : Int, dy : Int, callback : () -> Unit) -> Unit

    Move cursor relatively

    WriteStream::on_resize

    fn WriteStream::on_resize(self : WriteStream, callback : () -> Unit) -> WriteStream

    Register resize event handler

    WriteStream::rows

    fn WriteStream::rows(self : WriteStream) -> Int

    Get the number of rows in the terminal

    WriteStream::to_any

    WriteStream::write

    fn WriteStream::write(self : WriteStream, chunk :
    Any
    , encoding? : String, callback? :
    Any
    ) -> Bool

    Write data to the stream (inherited from stream.Writable)

    isatty

    fn isatty(fd : Int) -> Bool

    Check if a file descriptor is associated with a TTY

    Source Files

    Powered by MoonBit

    Site sourceReport issuePackagesBuild queueSkillsStatistics

    © 2026 mooncakes.io