From: Robert Nation (nation@snoopy.sanders.lockheed.com)
Date: 04/15/93


From: nation@snoopy.sanders.lockheed.com (Robert Nation)
Subject: Re: xvt for Linux???
Date: 15 Apr 1993 14:30:50

I have ported xvt to linux, but I make a bunch of changes along the
way, so you may or may not be interested. Here's a summary of the
changes:

Just to port xvt:
Only a few minor mods:
1. DON'T compile using optimization. In the Makefile, remove -O 2 from
   cflags.
2. there is one instance of the constant FNDELAY which should be
   changed to O_NDELAY.
3. One of the include file names, I think <termio.h> needs to be
   changed to <termios.h>. The error will become obvious when you
   compile.
The sources can be found on ftp.uu.net.
This leaves the bug that if, in one terminal window, you type
xvt<ret>, then cntrl-z, then bg, it croaks. The problem is that Linux
returns an error if a select() call is interrupted, but sunos doesn't.

My modifications:
1. Stripped out debugging sub-routines to make the code smaller.
2. Cleaned up some code to make it a bit more compact, and a little
   easier to follow.
3. Removed support for some fairly useless vt-100 commands, like the
   one that fills your screen with capital E's/
4. Added partial support for the graphics character sets (enough to
   run all of my applications), which is a fair amount, but not all
   graphics character commands.
5. Forced the scroll-bar to always show. Also modified the appearance
   of the scrollbar (I like it better).
6. removed support for getting default info from the .Xresources
   files, since I don't use these, and find it annoying to have to
   look in 29 different config files all over the system to find out
   why I' getting purple text, or something.
7. Added support for more of the function keys. The original xvt
  didn't respond to any of F1-F20, or most of the home, pg up, etc
keys.

Anyway, after doing all that, the final executable has a text size of
about 41 Kbytes, and data size of 8 kbytes, about 40% smaller than
stock xvt. If one xvt is used instead of 1 xterm, it saves 368 Kbytes
of memory. I didn't check into saving on subsequent instances.

If you want my source code, I will email it to you.