diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-09-04 14:55:00 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-09-04 14:55:00 -0400 |
| commit | 05bc754679ca5b136b2f3a70b791db71e9260234 (patch) | |
| tree | 359ed3458c2f116e122e9b7b1f1a215d4f40e4a7 /builtins/functions.h | |
| parent | 570c4c63caa6ea4341339b3925a0d823c4ff8d15 (diff) | |
Add ask() as a way to get user input
Diffstat (limited to 'builtins/functions.h')
| -rw-r--r-- | builtins/functions.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/builtins/functions.h b/builtins/functions.h index 263255f4..c9db6ea8 100644 --- a/builtins/functions.h +++ b/builtins/functions.h @@ -22,6 +22,7 @@ void end_test(const void *expr, const TypeInfo *type, const char *expected, cons start_test(__SOURCE_FILE__, start, end); \ end_test((__typeof__(expr)[1]){expr}, typeinfo, expected, __SOURCE_FILE__, start, end); } void say(Text_t text, bool newline); +Text_t ask(Text_t prompt, bool bold, bool force_tty); uint64_t generic_hash(const void *obj, const TypeInfo *type); int32_t generic_compare(const void *x, const void *y, const TypeInfo *type); |
