From mint-bounce@lists.fishpool.fi  Mon Apr 12 13:19:38 2010
Message-ID: <726314.937087835-sendEmail@descaro>
From: "Helmut Karlowski" <helmut.karlowski@ish.de>
To: "Peter Persson" <mint@lists.fishpool.fi>
Cc: "helmut.karlowski@ish.de" <helmut.karlowski@ish.de>
Subject: [MiNT] Vttest seems to hang?
Date: Mon, 12 Apr 2010 17:19:27 +0000
X-Mailer: sendEmail-1.55
MIME-Version: 1.0
Content-Type: multipart/related; boundary="----MIME delimiter for sendEmail-673889.50295663"
X-Antivirus: avast! (VPS 100412-1, 12.04.2010), Outbound message
X-Antivirus-Status: Clean
X-ecartis-version: Ecartis v1.0.0
Sender: mint-bounce@lists.fishpool.fi
Errors-to: mint-bounce@lists.fishpool.fi
X-original-sender: helmut.karlowski@ish.de
Precedence: bulk
List-help: <mailto:ecartis@lists.fishpool.fi?Subject=help>
List-unsubscribe: <mailto:mint-request@lists.fishpool.fi?Subject=unsubscribe>
List-Id: <mint.lists.fishpool.fi>
X-List-ID: <mint.lists.fishpool.fi>
List-subscribe: <mailto:mint-request@lists.fishpool.fi?Subject=subscribe>
List-owner: <mailto:tjhukkan@fishpool.fi>
List-post: <mailto:mint@lists.fishpool.fi>

This is a multi-part message in MIME format. To properly display this message you need a MIME-Version 1.0 compliant Email program.

------MIME delimiter for sendEmail-673889.50295663
Content-Type: text/plain;
  charset="iso-8859-1"
  Content-Transfer-Encoding: quoted-printable

>
> I can't get vttest to produce useful results.  It seems to hang in some =
> forever loop.
> I've tested it with TosWin (and my own hippie terminal emulator =
> Conholio) with the same result (or rather lack thereof).
>
> Any ideas? It would be really useful when debugging my own =
> VT102-emulator.
>

Seems there is a bug in MiNT-lib.

Try this prog:

#include <unistd.h>
#include <fcntl.h>

int main(void)
{
        int fd = open("/dev/tty", O_RDWR|O_NDELAY), ch;
        read( fd,  &ch, 1 );

        return 0;
}

It should return immediately, but it waits for a key under MiNT.

I don't know if this is all that prevents vttest from running.

-Helmut



------MIME delimiter for sendEmail-673889.50295663--


