mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-17 17:52:47 +01:00
sys/net/telnet: disable local echo
This commit is contained in:
parent
550d93f873
commit
2d22cc8f49
@ -195,6 +195,17 @@ static void _process_cmd(uint8_t cmd, uint8_t option)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void _send_opts(void)
|
||||||
|
{
|
||||||
|
if (IS_USED(MODULE_STDIO_TELNET)) {
|
||||||
|
/* RIOT will echo stdio, disable local echo */
|
||||||
|
const uint8_t opt_echo[] = {
|
||||||
|
TELNET_CMD_IAC, TELNET_CMD_WILL, TELNET_OPT_ECHO
|
||||||
|
};
|
||||||
|
_write_buffer(opt_echo, sizeof(opt_echo));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
static void *telnet_thread(void *arg)
|
static void *telnet_thread(void *arg)
|
||||||
{
|
{
|
||||||
(void)arg;
|
(void)arg;
|
||||||
@ -210,6 +221,7 @@ static void *telnet_thread(void *arg)
|
|||||||
|
|
||||||
DEBUG("connected\n");
|
DEBUG("connected\n");
|
||||||
_connected();
|
_connected();
|
||||||
|
_send_opts();
|
||||||
|
|
||||||
bool is_cmd = false;
|
bool is_cmd = false;
|
||||||
uint8_t is_option = 0;
|
uint8_t is_option = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user