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

Thiago A. Corrêa thiago.correa at gmail.com
Tue Apr 15 01:18:54 CEST 2008


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



More information about the En-Nut-Discussion mailing list