mirror of
https://github.com/tio/tio.git
synced 2026-05-01 14:57:59 +02:00
parent
794c5202f4
commit
1cefb7b6bc
3 changed files with 0 additions and 14 deletions
|
|
@ -265,9 +265,6 @@ In addition to the Lua API tio makes the following functions available:
|
||||||
help to make the lines physically switch as simultaneously as possible.
|
help to make the lines physically switch as simultaneously as possible.
|
||||||
This may solve timing issues on some platforms.
|
This may solve timing issues on some platforms.
|
||||||
|
|
||||||
reset_buffer()
|
|
||||||
Flush the internal ring buffer.
|
|
||||||
|
|
||||||
Note: Line can be any of DTR, RTS, CTS, DSR, CD, RI
|
Note: Line can be any of DTR, RTS, CTS, DSR, CD, RI
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -401,8 +401,6 @@ Set tty line state configuration to low.
|
||||||
Apply tty line state configuration. Using the line state configuration API
|
Apply tty line state configuration. Using the line state configuration API
|
||||||
instead of high()/low() will help to make the lines physically switch as
|
instead of high()/low() will help to make the lines physically switch as
|
||||||
simultaneously as possible. This may solve timing issues on some platforms.
|
simultaneously as possible. This may solve timing issues on some platforms.
|
||||||
.IP "\fBreset_buffer()"
|
|
||||||
Flush the internal ring buffer.
|
|
||||||
|
|
||||||
.TP 0n
|
.TP 0n
|
||||||
Note: Line can be any of DTR, RTS, CTS, DSR, CD, RI
|
Note: Line can be any of DTR, RTS, CTS, DSR, CD, RI
|
||||||
|
|
|
||||||
|
|
@ -256,14 +256,6 @@ bool match_regex(regex_t *regex)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// lua: reset_buffer()
|
|
||||||
static int reset_buffer(lua_State *L)
|
|
||||||
{
|
|
||||||
(void)L;
|
|
||||||
buffer_size = 0;
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
// lua: expect(string, timeout)
|
// lua: expect(string, timeout)
|
||||||
static int expect(lua_State *L)
|
static int expect(lua_State *L)
|
||||||
{
|
{
|
||||||
|
|
@ -360,7 +352,6 @@ static const struct luaL_Reg tio_lib[] =
|
||||||
{ "modem_send", modem_send},
|
{ "modem_send", modem_send},
|
||||||
{ "send", send},
|
{ "send", send},
|
||||||
{ "expect", expect},
|
{ "expect", expect},
|
||||||
{ "reset_buffer", reset_buffer},
|
|
||||||
{ "exit", exit_},
|
{ "exit", exit_},
|
||||||
{NULL, NULL}
|
{NULL, NULL}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue