Skip to content

The terminal library

github-actions[bot] edited this page Jul 14, 2026 · 3 revisions

Overview

The terminal library supplies functions which read from the keyboard, and write to the terminal, of the machine the hub is running on. It will not post to the terminal of a remote user: for that you use the built-in post ... to Output() method. And nothing will actively solicit input from a remote user. get ... from Keyboard() is therefore a poison pill; you can only use it for desktop apps, you can't expose it to the web.

Types

Keyboard = struct (prompt string)

A data structure wrapping a prompt to ask the user for keyboard input.

Terminal = struct

A data structure to pass to post ... to to say that the destination is the terminial.

Commands

post(x any?) to (s Terminal)

Posts the given value to the terminal.

get(x ref) from (k Keyboard)

Prompts the user for input using k[prompt] and then uses the result to populate the reference variable.

get(x ref) from masked (k Keyboard)

Prompts the user for input using k[prompt], masking the input for privacy, and then uses the result to populate the reference variable.

Notes

This page is automatically generated from the Pipefish standard library. Any edits made directly to this wiki page will be overwritten the next time the documentation is regenerated.

🧿 Pipefish

Clone this wiki locally