mirror of
https://github.com/tio/tio.git
synced 2026-05-01 23:07:58 +02:00
+ Add system timestamps to lua read() and new lua read_line() per global options
+ Add missing timestamp-format epoch + Update send_ to use fsync and tcdrain like normal tty_sync does + Rework read_line to save partial line at timeout + Simplified read_line to reduce cyclomatic complexity + renamed example files read.lua and read_line.lua + moved #define READ_LINE_SIZE to top of file + renamed g_linebuf to linebuf, and moved it into read_line as a static variable
This commit is contained in:
parent
db3f109c7d
commit
afd82f7ac4
12 changed files with 171 additions and 24 deletions
|
|
@ -29,8 +29,6 @@
|
|||
#include "options.h"
|
||||
#include "timestamp.h"
|
||||
|
||||
#define TIME_STRING_SIZE_MAX 24
|
||||
|
||||
char *timestamp_current_time(void)
|
||||
{
|
||||
static char time_string[TIME_STRING_SIZE_MAX];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue