Add Lua API twrite

The twrite Lua API is a variation of the write API, with the output
character mapping and output-delay / output-line-delay features enabled.
Since it processes each character internally, writing speed is slower
than the write API.

~~~~~~~~~~~~~~~~~~~~~~~
twrite(string)
    Translate string with output character mapping and write the
    translated string to serial device with output-delay /
    output-line-delay.
This commit is contained in:
yabu76 2025-09-23 19:15:30 +09:00
parent 6a590bd598
commit 9e51d2e4ee
2 changed files with 20 additions and 0 deletions

View file

@ -84,3 +84,5 @@ void tty_input_thread_wait_ready(void);
void tty_line_set(int fd, tty_line_config_t line_config[]);
void tty_search(void);
GList *tty_search_for_serial_devices(void);
void forward_to_tty(int fd, char output_char);
void tty_sync(int fd);