mirror of
https://github.com/troglobit/libite.git
synced 2026-10-21 11:19:38 +00:00
Add support for yorn(), safe yes-or-no prompt
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
7f053f7624
commit
b2c2d032e8
7 files changed
+136
-2
No files matched your search
@@ -308,6 +308,11 @@ Generic Functions
|
||||
**Note:** `which("/bin/ps aux")` will return `/bin/ps`, or `TRUE`,
|
||||
provided of course `/bin/ps` exists.
|
||||
|
||||
- `yorn(fmt, ...)`
|
||||
|
||||
Pose a question to user, appended with `(y/N)?`, returns `TRUE` for
|
||||
yes (both `y` and `Y` are handled) and `FALSE` for everything else.
|
||||
|
||||
|
||||
GNU Functions
|
||||
-------------
|
||||
|
||||
Reference in new issue
Block a user