[comp.windows.x] console message and XDM

jsparkes@bcars85.bnr.ca (Jeff Sparkes) (05/29/90)

	Are there any plans to add a console window to XDM?  At present,
when the login prompter is up on the console, all messages go directly to
the console, messing up the screen.  There isn't even any way to redraw the
screen (that I can find).
--
Jeff Sparkes		jsparkes@bnr.ca
Cat: Is that what I think it is?          Lister: What do you think it is?
Cat: A big orange whirly thing in space!

envbvs@epb2.lbl.gov (Brian V. Smith) (05/31/90)

In article <jsparkes.643985374@bcars85>, jsparkes@bcars85.bnr.ca (Jeff
Sparkes) writes:
|> 
|> 	Are there any plans to add a console window to XDM?  At present,
|> when the login prompter is up on the console, all messages go directly to
|> the console, messing up the screen.  There isn't even any way to redraw the
|> screen (that I can find).

This would be EXTREMELY useful!

On a color Vaxstation 2000 there is a bug in the server (qdss) such that if
no one is logged in and a system message goes to the screen, when someone
does log in the mouse cursor is not visible on most windows and other
strange things happen to bits (areas) on the screen outside of any windows.

The only way to fix it is to log out and log in again, which re-initializes
the server.

I have put in a key binding to the Xresources file to restart the server
if one sees that there are messages on the screen:

xlogin*login.translations: #override\
        <Key>Help: restart-session()\n\
        <Key>Return: set-session-argument() finish-field()

This is a kludge, but it works until the server bugs are fixed.
_____________________________________
Brian V. Smith    (bvsmith@lbl.gov)
Lawrence Berkeley Laboratory
I don't speak for LBL, these non-opinions are all mine.

keane@ultima.cs.uts.oz (Chris Keane) (05/31/90)

jsparkes@bcars85.bnr.ca (Jeff Sparkes) writes:


>	Are there any plans to add a console window to XDM?  At present,
>when the login prompter is up on the console, all messages go directly to
>the console, messing up the screen.  There isn't even any way to redraw the
>screen (that I can find).

Yes, I hated that for a while too and I got sick of students complaining and/or
asking me what was wrong, so I've hacked xdm to have a console window at the 
bottom of the screen. It basically starts a program that runs as a pseudotty and
displays everything the comes over the pty on a nice-even-if-I-say-so-myself 
scrolling, wrap-around window. The window doesn't recognise any input-type 
events. Xdm hijacks the console output using ioctl() and stuffs it into the
the other end of the pty. Voila! Instant console!

It's been tested and runs quite successfully on Sun3's, Sun386i's and SunSS1's
all running SunOS 4.0.3. It works for both X11r3 and X11r4.
The diffs are very small. If you're interested, I send them to you, although
I believe the ioctl() to steal the console is rather system-dependant (I don't
know that for sure though), so if you're not running suns...
regards...
                                         Chris.
+-------------------------------------------------+
| The ultimate profit-making juke-box: It plays   |  keane@ultima.cs.uts.oz
| Kylie Minogue songs until you put money in it...|  or is it
+-------------------------------------------------+keane@ultima.socs.uts.edu.au
Disclaimer: These are my own opinions, but I'm insane. What's your excuse?

envbvs@epb2.lbl.gov (Brian V. Smith) (05/31/90)

In article <17880@ultima.cs.uts.oz>, keane@ultima.cs.uts.oz (Chris
Keane) writes:
|> jsparkes@bcars85.bnr.ca (Jeff Sparkes) writes:
|> 
|> 
|> >	Are there any plans to add a console window to XDM?  At present,
|> >when the login prompter is up on the console, all messages go directly to
|> >the console, messing up the screen.  There isn't even any way to redraw the
|> >screen (that I can find).
|> 
|> Yes, I hated that for a while too and I got sick of students
complaining and/or
|> asking me what was wrong, so I've hacked xdm to have a console window
at the 
|> bottom of the screen. It basically starts a program that runs as a
pseudotty and
|> displays everything the comes over the pty on a
nice-even-if-I-say-so-myself 
|> scrolling, wrap-around window. The window doesn't recognise any input-type 
|> events. Xdm hijacks the console output using ioctl() and stuffs it into the
|> the other end of the pty. Voila! Instant console!
|> 
|> It's been tested and runs quite successfully on Sun3's, Sun386i's and
SunSS1's
|> all running SunOS 4.0.3. It works for both X11r3 and X11r4.
|> The diffs are very small. If you're interested, I send them to you, although
|> I believe the ioctl() to steal the console is rather system-dependant
(I don't
|> know that for sure though), so if you're not running suns...
|> regards...

Our mailer can't reach Chris' host so I am posting this request.
Would you mail me the diffs to xdm to do this or post them if they
aren't too large?

Thanks.
_____________________________________
Brian V. Smith    (bvsmith@lbl.gov)
Lawrence Berkeley Laboratory
I don't speak for LBL, these non-opinions are all mine.

jsparkes@bcars85.bnr.ca (Jeff Sparkes) (06/01/90)

In <17880@ultima.cs.uts.oz> keane@ultima.cs.uts.oz (Chris Keane) writes:
>asking me what was wrong, so I've hacked xdm to have a console window at the 
>bottom of the screen. It basically starts a program that runs as a pseudotty and
>displays everything the comes over the pty on a nice-even-if-I-say-so-myself 
>scrolling, wrap-around window. The window doesn't recognise any input-type 
>events. Xdm hijacks the console output using ioctl() and stuffs it into the
>the other end of the pty. Voila! Instant console!

>It's been tested and runs quite successfully on Sun3's, Sun386i's and SunSS1's
>all running SunOS 4.0.3. It works for both X11r3 and X11r4.
>The diffs are very small. If you're interested, I send them to you, although
>I believe the ioctl() to steal the console is rather system-dependant (I don't
>know that for sure though), so if you're not running suns...
>regards...

	I'm using xterm -C, which already has the various ways to grab a
console..  Still I'd like to see your changes, since mine are none to
pretty.  It's quite a pain to figure out how big an xterm will be and center
it.
--
Jeff Sparkes		jsparkes@bnr.ca
Cat: Is that what I think it is?          Lister: What do you think it is?
Cat: A big orange whirly thing in space!

roman@sparc7.hri.com (Roman Budzianowski) (06/05/90)

You may try xconsole on the contrib X11R4 tape.

keane@ultima.cs.uts.oz (Chris Keane) (06/08/90)

Wow! The response to my posting about how to implement a console under
xdm was so HUGE that I've sent my patches to the moderator of comp.sources.x.

Please note that these patches are in no way, shape or form official
patches for xdm. Use them at your own risk! They will only work on
systems that on which ioctl(tty, TIOCCONS, 0) will work. If you don't
know, check with your local system guru.

Also please note that I won't really be providing any support for 
these patches. Maybe in the future when (and if) I clean them up a 
bit :-)

Oh, the patches that I posted are for X11r4. If you're running X11r3,
drop me line and I'll send the alternate patches to you.

regards...
                                         Chris.

PS. for those of you who suggested xconsole, these patches were written
way before then :-)
+-------------------------------------------------+
| The ultimate profit-making juke-box: It plays   |  keane@ultima.cs.uts.oz
| Kylie Minogue songs until you put money in it...|  Beam me up Scotty.
+-------------------------------------------------+
Disclaimer: These are my own opinions, but I'm insane. What's your excuse?