aboutsummaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorMarshall Lochbaum <mwlochbaum@gmail.com>2022-03-08 19:32:46 -0500
committerMarshall Lochbaum <mwlochbaum@gmail.com>2022-03-08 19:32:46 -0500
commit43462da01c44e0f5ab1a292c8ac0237480e287db (patch)
treee4e6b820920aab85f048e0775c3c8911a9bd91a9 /spec
parent5e9b31f06bb601a01ed99f8e1c9986cbe78e1dfa (diff)
Specify some of •term
Diffstat (limited to 'spec')
-rw-r--r--spec/system.md11
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/system.md b/spec/system.md
index 1d0d18d2..395464a7 100644
--- a/spec/system.md
+++ b/spec/system.md
@@ -152,6 +152,17 @@ The following short names can also be provided for file access. They can be prov
`•Repr` attempts to return a string so that `•BQN •Repr 𝕩` matches `𝕩`. If `𝕩` contains any mutable values (operations or namespaces), this is not possible. However, if such a values is stateless, in the sense that they don't access variables outside of their own scopes, it is permissible for `•Repr` to return source code that would create a value with identical behavior.
+### Terminal I/O
+
+The system namespace `•term` gives fine-grained control of input and output when running in a terminal emulator or similar text-based interface.
+
+| Name | Summary
+|-----------|----------------------
+| `Flush` | Flush output buffer
+| `RawMode` | Set raw mode (no input processing) if `1`, unset if `0`
+| `CharB` | Read a character, blocking until one is available
+| `CharN` | Read a character if available but return `0` if not
+
## Interface
| Name | Summary