From 43462da01c44e0f5ab1a292c8ac0237480e287db Mon Sep 17 00:00:00 2001 From: Marshall Lochbaum Date: Tue, 8 Mar 2022 19:32:46 -0500 Subject: =?UTF-8?q?Specify=20some=20of=20=E2=80=A2term?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/spec/system.html | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'docs/spec/system.html') diff --git a/docs/spec/system.html b/docs/spec/system.html index be185367..17159837 100644 --- a/docs/spec/system.html +++ b/docs/spec/system.html @@ -317,6 +317,34 @@

•Out prints a string to stdout, with a trailing newline. •Show displays a BQN value to the programmer (the representation is not specified, and does not need to be plain text). •Fmt returns a string (not a character table: lines are separated by linefeeds) indicating how 𝕩 would be printed by the interactive environment. Both •Show and •Fmt may take a left argument configuring how the value should be formatted.

•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.

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameSummary
FlushFlush output buffer
RawModeSet raw mode (no input processing) if 1, unset if 0
CharBRead a character, blocking until one is available
CharNRead a character if available but return 0 if not

Interface

-- cgit v1.2.3