Terminal input and output.
More...
Terminal input and output.
◆ async_stop_on_enter()
Run an action until "enter" is pressed.
- Parameters
-
◆ async_tty_printf()
void async_tty_printf |
( |
const char * |
fmt, |
|
|
|
... |
|
) |
| |
Write a formatted string to the console.
- Parameters
-
fmt | The format string to write to the console. Can contain ANSI escape sequences. |
... | Format arguments. |
◆ async_tty_printf_err()
void async_tty_printf_err |
( |
const char * |
fmt, |
|
|
|
... |
|
) |
| |
Write a formatted string to the console on stderr.
- Parameters
-
fmt | The format string to write to the console. Can contain ANSI escape sequences. |
... | Format arguments. |
◆ async_tty_readline()
char* async_tty_readline |
( |
| ) |
|
Read from the console.
- Returns
- The input read. Should be freed by the callee (see using_free()).
◆ async_tty_vprintf()
void async_tty_vprintf |
( |
const char * |
fmt, |
|
|
va_list |
args |
|
) |
| |
Write a formatted string to the console.
- Parameters
-
fmt | The format string to write to the console. Can contain ANSI escape sequences. |
args | Format arguments. |
◆ async_tty_vprintf_err()
void async_tty_vprintf_err |
( |
const char * |
fmt, |
|
|
va_list |
args |
|
) |
| |
Write a formatted string to the console on stderr.
- Parameters
-
fmt | The format string to write to the console. Can contain ANSI escape sequences. |
args | Format arguments. |
◆ async_tty_write()
void async_tty_write |
( |
const char * |
s | ) |
|
Write to the console.
- Parameters
-
s | The string to write to the console. Can contain ANSI escape sequences. |
◆ async_tty_write_err()
void async_tty_write_err |
( |
const char * |
s | ) |
|
Write to the console on stderr.
- Parameters
-
s | The string to write to the console on stderr. Can contain ANSI escape sequences. |