home *** CD-ROM | disk | FTP | other *** search
-
-
- Here are the diffs to xdm to put a console window up (so console messages
- don't destroy the screen). Please note that these are in no way official
- patches to xdm! Use them at your own risk! These diffs should be unpacked
- in ...mit/clients/xdm and applied with:
-
- make Makefile
- make
-
- These diffs have been tested on Sun3, Sun386i and sunSS1 workstations all
- running SunOS 4.0.x. The diffs have been tested under X11r3 and X11r4, although
- only the diffs for X11r4 are included here. If you need the X11r3 stuff, I
- spose I can hack a copy out, but the diffs are so small you should be able to do
- it yourself.
-
- This new version creates an application called xdmconsole. All it really
- does it display any text that it reads from stdin. This window is created
- when the xdm Login widget appears. The window persists throughout a user's
- session (unless the silly fool kills it :-). The window is destroyed at the
- end of a user's session and is re-created when the Login widget re-appears.
- There is a tiny period between the xdm-reset and the arrival of the Login
- widget in which messages to the console will actually appear on the console...
- I thought about it and can't think of any nice ways of fixing it, the
- problem isn't major (I've never seen it happen), so I didn't worry.
-
- The patch to xdm basically allows for the creation of the tty/pty pair
- that becomes the new console (this happens in dm.c), the hijack of the
- console output (using ioctl with TIOCCONS, the console is re-assigned to
- the tty of the tty/pty pair), the re-assignment of stdin to the pty side
- of the pair and the creation of the xdmconsole process (that, suprise,
- suprise, reads from stdin which just now happens to be the pty) (all this
- happens in makeconsole.c, get_pty.c and is called from session.c)
-
- The code to get a pty/tty pair was lifted wholesale from xterm.
-
- Be warned! The code for this (esp. the X stuff) is exceedingly bad. Rather
- shameful might be more accurate (c'mon, it was my 2nd attempt at XLib
- programming). I hadn't even heard of the X toolkit when I first wrote this
- code, and don't expect to be able to set any resources either.
- Also, be careful of changing anything! The text printing in the window
- relies on the text being a certain size (puke :-), and, in fact, the
- window being a certain size as well. The current setting places the
- window in the horizontal middle of your screen, with about a 30 pixel gap
- between the bottom of the window and the bottom of the screen.
-
- Also, you will have to set
-
- DisplayManager*grabServer: false
-
- in .../xdm/xdm-config, otherwise the window simply won't be able to appear
- until the user actually logs in, which rather defeats the purpose :-)
-
- All in all, though, it doesn't look TOO bad. One day I may even get around
- to making it really nice, but please be aware that I'll only provide
- minimal support for it.
-
- regards...
- Chris Keane.
- Glorified Laboratory Attendant,
- University of Technology, Sydney.
- keane@ultima.cs.uts.oz.au
- or is it keane@ultima.socs.uts.edu.au?
- I can never remember.
-
-