mirror of
https://github.com/oliverschmidt/contiki.git
synced 2025-01-17 11:30:16 +00:00
Added missing charset abstraction.
This commit is contained in:
parent
f348f4feb2
commit
ab6d6498fe
@ -173,6 +173,8 @@ shell_prompt(char *str)
|
|||||||
void
|
void
|
||||||
shell_default_output(const char *str1, int len1, const char *str2, int len2)
|
shell_default_output(const char *str1, int len1, const char *str2, int len2)
|
||||||
{
|
{
|
||||||
|
static const char crnl[2] = {ISO_cr, ISO_nl};
|
||||||
|
|
||||||
if(len1 > 0 && str1[len1 - 1] == '\n') {
|
if(len1 > 0 && str1[len1 - 1] == '\n') {
|
||||||
--len1;
|
--len1;
|
||||||
}
|
}
|
||||||
@ -187,7 +189,7 @@ shell_default_output(const char *str1, int len1, const char *str2, int len2)
|
|||||||
#endif /* TELNETD_CONF_GUI */
|
#endif /* TELNETD_CONF_GUI */
|
||||||
buf_append(&buf, str1, len1);
|
buf_append(&buf, str1, len1);
|
||||||
buf_append(&buf, str2, len2);
|
buf_append(&buf, str2, len2);
|
||||||
buf_append(&buf, "\r\n", 2);
|
buf_append(&buf, crnl, sizeof(crnl));
|
||||||
}
|
}
|
||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
void
|
void
|
||||||
|
Loading…
x
Reference in New Issue
Block a user