nanogui: VT100 terminal emulation


Previous by date: 25 Apr 2007 05:55:05 +0100 Re: Problem compiling Pixil / ViewML, Yan Seiner
Next by date: 25 Apr 2007 05:55:05 +0100 Re: Problem compiling Pixil / ViewML, emaroto.fr.abx.fr
Previous in thread: 25 Apr 2007 05:55:05 +0100 Re: VT100 terminal emulation, Dave Stuart
Next in thread: 25 Apr 2007 05:55:05 +0100 Re: VT100 terminal emulation, Yan Seiner

Subject: Re: [nanogui] VT100 terminal emulation
From: Yan Seiner ####@####.####
Date: 25 Apr 2007 05:55:05 +0100
Message-Id: <462EDE8F.5070408@seiner.com>

OK, I've got a somewhat working emulator.  Lots of stuff is still
stubbed out, but it recognizes most of the basic VT100 codes.

Best of all all the sequences have been taken out of the code.  This
allows easy modification of the sequences.  The sequences are in a
termcap-like format in the vt100.h file.  The first two letters of the
sequence must match the functions lookup table so ysterm knows which
function to invoke for each command sequence.

The sequences must be atomic - one command per line.  This is NOT the
way termcap does it, so be careful.  Termcap goes capability ->
sequence; we go sequence -> function.  So while the vt100.h file looks
similar to the termcap entry, it serves a different role.

I think the detection engine is pretty good, but probably not infallible
- it will fail for example if a code begins and ends with the same
character, but it should work for all of the vt100 sequences.  It's also
not the fastest thing in the world; it really needs some performance
tweaks, but taking the sequences out of the code really necessiates a
lot of roundabout testing to identify the proper sequence.

I need some help with testing, completion, and fonts.

Q:

How do I get the charmap for the various fonts included with nano-X?  I
need a line-draw font to use as the G1 font to get line draw to work.

I am attaching the code for the terminal.  Drop it into
microwin/src/demos/nanox directory and change the Makefile to build
ysterm instead of nxterm.

Comments/suggestions/improvements welcome.

--Yan


!DSPAM:1,462e995e227845312211103!


[Content type application/x-gzip not shown. Download]

Previous by date: 25 Apr 2007 05:55:05 +0100 Re: Problem compiling Pixil / ViewML, Yan Seiner
Next by date: 25 Apr 2007 05:55:05 +0100 Re: Problem compiling Pixil / ViewML, emaroto.fr.abx.fr
Previous in thread: 25 Apr 2007 05:55:05 +0100 Re: VT100 terminal emulation, Dave Stuart
Next in thread: 25 Apr 2007 05:55:05 +0100 Re: VT100 terminal emulation, Yan Seiner


Powered by ezmlm-browse 0.20.