[En-Nut-Discussion] Problem with VT52 (dev/term.c)

Michael Jones Michael.e.Jones at web.de
Tue Apr 15 09:22:15 CEST 2008


There is at least one small error in the code below:

\x27 should be \x1b (hex) or \033 (octal) for ESC

This should help...

Cu,
Michael

-----Original Message-----
From: en-nut-discussion-bounces at egnite.de
[mailto:en-nut-discussion-bounces at egnite.de] On Behalf Of Thiago A. Corrêa
Sent: Tuesday, April 15, 2008 1:19 AM
To: Ethernut
Subject: [En-Nut-Discussion] Problem with VT52 (dev/term.c)

Hi,

   Is there anyone using the VT52 commands implemented in term.c? ie:

	if ((lcd = fopen("lcd", "w")) == 0)
	{
		ERROR("Error trying to open LCD device");
		NutThreadExit();
	}

	fprintf( lcd, "\x27" "E" );
	fprintf( lcd, "\x27Y%c%c", 32, 32 );
	fprintf( lcd, "abcdefh - abcd" );
	fprintf( lcd, "\x27Y%c%c", 32 + 1, 32 + 5);
	fprintf( lcd, "lalala");

    This doesn't seam to give the right output. I thought it might
have been the LcdCursor() from arch/avr/dev/lcd.c so I simplified it
porting back the arm code (which is cleaner), but still had the same
results.
    It would be nice to hear from other users success or failure stories.

Kind Regards,
    Thiago A. Correa
_______________________________________________
http://lists.egnite.de/mailman/listinfo/en-nut-discussion




More information about the En-Nut-Discussion mailing list