[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [MiNT] vttest
I've just managed to get vttest to run on conholio as well as toswin
(using Vincent's gdb ;) ).
It was mostly ok in the kernel already, vttest was hanging when it
expected a newline (\n) but received a carriage-return (\r) in the
vt100-tests (all except vt52 (7.)).
I then patched unix_io.c of vttest to also accept carriage-returns and
with one exeption now it runs ok. I did not chose all tests.
I'm not sure who's right: MiNT or vttest - it sets (and resets) the
sg_flag CRMOD, so some parts worked right away without change (the vt52-test), some
after the patch.
This is the patch:
--- unix_io.c Thu Dec 31 22:29:00 2009
+++ ../unix_io.c Tue Jul 27 21:50:54 2010
@@ -209,7 +209,7 @@
reading = TRUE;
do {
read(0, &ch, 1);
- } while (ch != '\n' && !brkrd);
+ } while ( !(ch == '\n' || ch == '\r') && !brkrd);
if (brkrd)
give_up(SIGTERM);
reading = FALSE;
-Helmut