dynamo-browse/_site/data/scriptmods/ui.yaml
Leon Mika bf879a8a78
Some checks failed
ci / Build (push) Successful in 4m9s
Release / Build (push) Successful in 4m14s
Release / Release MacOS (push) Failing after 25s
Release / Site (push) Successful in 1m30s
Fixed MacOS release (#3)
- Fixed MacOS release and moved UCL site into repository

Reviewed-on: #3
Co-authored-by: Leon Mika <lmika@lmika.org>
Co-committed-by: Leon Mika <lmika@lmika.org>
2025-10-26 00:41:24 +00:00

18 lines
545 B
YAML

module: ui
docs: |
Provides control over the user interface.
symbols:
- name: print
syntax: ui.print(args...)
docs: |
Displays a message in the status bar.
- name: prompt
syntax: ui.prompt(message)
docs: |
Request a line of input from the user, using _message_ as the prompt.
This function will return the user's input as a string, or `nil` if the user cancels
the prompt by pressing <kbd>Esc</kbd>
example: |
line := ui.prompt("What is your name? ")
ui.print("Hello, ", line)