new xterm: support for colors, utmp entry ("who")

new xterm: support for colors, utmp entry ("who")

Post by Charles Hedri » Sat, 08 Aug 1992 16:16:02



I've been doing some work on xterm.  My original goal was to let me
see some color on the screen.  (I think it's silly that we spend
hundreds of dollars on neat color monitors, and the software we use
most often -- xterm and emacs -- doesn't make much use of color.
The next step is for emacs to do the mode line in color.)  In the
process I also fixed xterm so it makes entries in /etc/utmp.

This is a new port of xterm, done from the working sources that
Rutgers uses on our Suns, with two changes:

(1) A few changes were needed to main.c in order to get it to work
with Linux.  I believe these changes have been made cleanly, so that
the resulting source will still work on other systems.  I did not look
at the original port of xterm.  However this one seems more complete,
since "who" will now show your xterm sessions, as long as xterm is
installed setuid (as it should be).  This did not work in the original
code.  There's no overtly Linux-specific code in this port -- it's
just a matter of having the right combination of POSIX and BSD
features.  (I suspect the Linux setup would actually work on a Sun,
and might even be a preferable configuration.)

(2) Various resources were added to allow text to be displayed in
color.  To find the new features, I suggest diff'ing xterm.man.RU and
xterm.man.  Briefly, you can now specify foreground and background
colors for the following:

  color2 and color2Back:  user defined colors, display using ESC [ 2 m
  color3 and color3Back:  user defined colors, display using ESC [ 3 m
  boldColor and boldBack:  boldface text is displayed with these colors
  standColor and standBack:  if one of these is defined,  "standout"
        (ESC [ 7 m) is done using these colors instead of reverse video
  ulColor and ulBack: if one of these is defined, these colors are used
        instead of underlining

The files *.RU are the original versions of files changed during the
process.

While the original code was X11R5, Rutgers appears to have made a
couple of bug fixes since the initial release of X11R5.  My changes
were made on top of the current Rutgers working sources.

The binary is "xterm".  It is loaded with sharable libraries, but
has not been stripped.

All of this stuff is on cs.rutgers.edu, in /pub/linux/xterm.tar.Z.
Once I've used it a bit more, I'll upload it to the normal archive
sites.

Does anybody know how to send changes back to MIT?  I think the color
support would be generally useful.

 
 
 

new xterm: support for colors, utmp entry ("who")

Post by Paul Naka » Mon, 10 Aug 1992 18:46:24



   I've been doing some work on xterm.  My original goal was to let me
   see some color on the screen.  (I think it's silly that we spend
   hundreds of dollars on neat color monitors, and the software we use
   most often -- xterm and emacs -- doesn't make much use of color.

agreed.

   The next step is for emacs to do the mode line in color.)  In the
   process I also fixed xterm so it makes entries in /etc/utmp.

you should really get ahold of epoch 4.0 patchlevel2 + linux patches.
it contains support for arbitrary attributes in emacs buffers (like
size, face, color).  I've got a hilit package which will hilit epoch
buffers using mode based rules. (i.e. c comments in red, function
decls in blue, etc)  

let me know if you need more info..  

Thanks.

-Paul
--



 
 
 

new xterm: support for colors, utmp entry ("who")

Post by Peter Erikss » Tue, 11 Aug 1992 02:13:54




>   I've been doing some work on xterm.  My original goal was to let me
>   see some color on the screen.  (I think it's silly that we spend
>   hundreds of dollars on neat color monitors, and the software we use
>   most often -- xterm and emacs -- doesn't make much use of color.
>agreed.

Check out Finxterm (a modified X11R4 xterm that adds support for 16 colors
in text mode and 16 colors i graphics mode, emulates the printer control
escape sequences, handles native 7-bit character sets (if one selects an
ISO 8859-1 font) and a number of other features. It also adds a number of
VT220 escape sequences and other nice things (like making it possible to
disable the cursor and other stuff).

I have been working on Finxterm on and of for the last year with the intention
of making it more or less fully VT220 compatible. Unfortunately a lot of stuff
has come inbetween which has lead to me not having to to do much work on it
lately.

I haven't tested it on Linux though. (Only on Suns).

It is available for anonymous FTP from ftp.lysator.liu.se in pub/X11/finxterm.

(The reason I choose the name "finxterm" is that the company I worked/work for
had a proprietary terminal emulator for IBM PC's called "finterm" (for
customers to interface to their mainframe. I would rather use a colour Sun
so I hacked xterm some..:-)

/Peter
--

Lysator Academic Computer Society                 ...!uunet!lysator.liu.se!pen
University of Linkoping, Sweden                           I'm bored. Flame me.

 
 
 

1. Type "(", ")" and "{", "}" in X...

Hi,

When i start a shell under X, i can type all characters on my keyboard,
the same when i start the simple editor, but when i start Forte (Java
IDE) written in Java i cant use the "(", ")", "{", "}" and allmost none
of the characters that are located on the same key as a number...

Does anybody have an idea what i can do about that... could it be
something with programs written in Java..?

Mvg,
Erwin

Sent via Deja.com http://www.deja.com/
Before you buy.

2. MKLinux on Jazz?

3. ncurse says "this terminal does not support color", I am using color xterm!

4. Dialer failed on line tty1A: Timer expired (error 62)

5. " No CDDB Entry" "Error Getting CDDB Entry" ???

6. Add a PV to an existing VG

7. awk '{gsub("old","\n"); print}' adds additional new line

8. Strange DNS behaviour

9. GETSERVBYNAME()????????????????????"""""""""""""

10. """"""""My SoundBlast 16 pnp isn't up yet""""""""""""

11. where can I ftp "metaconfig" (generator of "Configure")?

12. Definition of "word" in zsh (e.g., "backward-kill-word")

13. deleting "zombi-entries" from the utmp[x] - file