aboutsummaryrefslogtreecommitdiff
path: root/tecparse.c
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2025-04-21 19:31:39 +0300
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2025-04-23 06:51:22 +0300
commit21a986f52bd2fb1e6522503cc9796adf71b29a37 (patch)
treeab118acbb028a59ffb927a52c3f8903874f6c6a8 /tecparse.c
parent92f964701d55ae3a7c2060da3a78fe6d3b665bcb (diff)
downloadvideoteco-fork-21a986f52bd2fb1e6522503cc9796adf71b29a37.tar.gz
DOS: Enter inserts LF
Linefeeds are normalized to LF in the buffer.
Diffstat (limited to 'tecparse.c')
-rw-r--r--tecparse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tecparse.c b/tecparse.c
index a1426fa..a2ee4da 100644
--- a/tecparse.c
+++ b/tecparse.c
@@ -1013,7 +1013,7 @@ char inbuf[4];
intr_flag = 0;
if(i != EOF){
- inbuf[0] = i;
+ inbuf[0] = i == '\r' ? '\n' : i;
break;
}
#endif