mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 00:11:14 +02:00
yaft: improve newline detection
This commit is contained in:
@@ -45,7 +45,6 @@ void YaFT_p::tab(void)
|
|||||||
|
|
||||||
void YaFT_p::nl(void)
|
void YaFT_p::nl(void)
|
||||||
{
|
{
|
||||||
nlseen = true;
|
|
||||||
txt.push("");
|
txt.push("");
|
||||||
lines_available++;
|
lines_available++;
|
||||||
move_cursor(1, 0);
|
move_cursor(1, 0);
|
||||||
|
@@ -510,7 +510,8 @@ void YaFT_p::control_character(uint8_t ch)
|
|||||||
switch(ch) {
|
switch(ch) {
|
||||||
case BS: bs(); break;
|
case BS: bs(); break;
|
||||||
case HT: tab(); break;
|
case HT: tab(); break;
|
||||||
case LF: nl(); break;
|
case LF: nlseen = true;
|
||||||
|
nl(); break;
|
||||||
case VT: nl(); break;
|
case VT: nl(); break;
|
||||||
case FF: nl(); break;
|
case FF: nl(); break;
|
||||||
case CR: cr(); break;
|
case CR: cr(); break;
|
||||||
|
Reference in New Issue
Block a user