[4740] in testers

home help back first fref pref prev next nref lref last post

xlogin updates

daemon@ATHENA.MIT.EDU (Mitchell E Berger)
Sat Jun 9 21:53:55 2001

Message-Id: <200106100153.VAA27059@byte-me.mit.edu>
To: testers@MIT.EDU
Date: Sat, 09 Jun 2001 21:53:51 -0400
From: Mitchell E Berger <mitchb@MIT.EDU>

Instead of just complaining about xlogin, I've tried to fix some non-ideal
things about it.  Of course, pieces of this can be considered separately.
The changes here consist of:

- The error dialog is now gray to match the new color scheme
- The shade of red used for the owl and is logos isn't too bright
- Both the up and down buttons now do the right thing
- Tab now does the right thing from both input fields (and so does shift-tab)
- An option has been added to hide the console (to complement the show option)
- The keys to show/hide the console are listed as "Page Up" and "Page Dn"
  instead of the old "Prev", which isn't on any modern keyboards.  That
  involves two new bitmaps, and I haven't made a patch to the Makefile to
  deal with installing them and/or leaving out the old Prev bitmap.
- The console is now gray.  This completely matches the color scheme for the
  login screen, but as a side effect, the console is still gray once you're
  logged in.  I think it actually looks nice that way, but others might not
  love it - I guess you can decide for yourself.

There are also things I found that aren't currently working.  The failure
mode for both of these is a restart of the X server:
- Library access (at least on a Sun).  The reason this option doesn't work
  is that the appropriate sysname link hasn't been made under
  /mit/library/arch.
- Account registration.  I'm not sure why this isn't working.

Here are the patches and new files I've come up with.

Mitch

*** /srvd/etc/athena/login/Xlogin	Wed May 16 04:47:38 2001
--- /etc/athena/login/Xlogin	Sat Jun  9 20:33:05 2001
***************
*** 239,244 ****
--- 239,249 ----
  			setfocus(*pword_input) \n\
  	<Key>Prior:	signalConsoleACT(show) \n\
  	<Key>Next:	signalConsoleACT(hide) \n\
+ 	<Key>Down:	WcSetValueACT(this.displayCaret: FALSE) \
+ 			WcSetValueACT(this.borderColor: gray) \
+ 			WcSetValueACT(*pword_input.borderColor: black) \
+ 			idleReset() \
+ 			setfocus(*pword_input) \n\
  	<Key>:		insert-char() \
  			idleReset()
  
***************
*** 319,325 ****
  			WcSetValueACT(*name_input.borderColor: black) \
  			idleReset() \
  			setfocus(*name_input) \n\
! 	Shift<Key>Tab:	WcSetValueACT(this.displayCaret: FALSE) \
  			WcSetValueACT(this.borderColor: gray) \
  			WcSetValueACT(*name_input.displayCaret: TRUE) \
  			WcSetValueACT(*name_input.borderColor: black) \
--- 324,330 ----
  			WcSetValueACT(*name_input.borderColor: black) \
  			idleReset() \
  			setfocus(*name_input) \n\
! 	<Key>Tab:	WcSetValueACT(this.displayCaret: FALSE) \
  			WcSetValueACT(this.borderColor: gray) \
  			WcSetValueACT(*name_input.displayCaret: TRUE) \
  			WcSetValueACT(*name_input.borderColor: black) \
***************
*** 454,460 ****
  				omenuEntry6, menuLine, \
  				omenuEntry7, omenuEntry8, omenuEntry9, \
  				omenuEntry10, omenuEntry11, omenuEntry12, \
! 				omenuEntry13, omenuEntry14, omenuEntry15
  
  *menuLine.wcClassName:		SmeLine
  *omenuEntry1.wcClassName:	SmeBSB
--- 459,466 ----
  				omenuEntry6, menuLine, \
  				omenuEntry7, omenuEntry8, omenuEntry9, \
  				omenuEntry10, omenuEntry11, omenuEntry12, \
! 				omenuEntry13, omenuEntry14, omenuEntry15, \
! 				omenuEntry16
  
  *menuLine.wcClassName:		SmeLine
  *omenuEntry1.wcClassName:	SmeBSB
***************
*** 470,475 ****
--- 476,482 ----
  *omenuEntry13.wcClassName:	SmeBSB
  *omenuEntry14.wcClassName:	SmeBSB
  *omenuEntry15.wcClassName:	SmeBSB
+ *omenuEntry16.wcClassName:	SmeBSB
  
  *omenuEntry1.label:		Information
  *omenuEntry1.justify:		center
***************
*** 489,513 ****
  *omenuEntry9.callback:		attachAndRunCB(moira,xterm -geometry 80x34+60+25 +ut -fn -adobe-courier-medium-r-normal--18-180-75-75-\*-\*-\*-\* -display :0.0 -e timeout 120 /mit/moira/namespace)
  *omenuEntry10.label:		Display Console Window
  *omenuEntry10.callback:		signalConsoleCB(show)
! *omenuEntry11.label:		Shut Down Window System
! *omenuEntry11.callback:		windowShutdownCB()
! *omenuEntry12.label:		Restart X in 8-bit Mode
! *omenuEntry12.callback:		commandCB(touch /var/athena/x-8-bit), \
  				restartCB()
! *omenuEntry13.label:		Eject Floppy (if present)
! *omenuEntry13.callback:		commandCB(eject floppy)
! *omenuEntry14.label:		Eject Zip Disk (if present)
! *omenuEntry14.callback:		commandCB(attachandrun mtools mzip mzip -e z:)
! *omenuEntry15.label:		Eject CD-ROM (if present)
! *omenuEntry15.callback:		commandCB(eject cdrom)
  
  *omenuEntry3.rightBitmap:	Shift-F2
  *omenuEntry5.rightBitmap:	Shift-F4
  *omenuEntry6.rightBitmap:	Shift-F6
  *omenuEntry8.rightBitmap:	Shift-F7
  *omenuEntry9.rightBitmap:	Shift-F8
! *omenuEntry10.rightBitmap:	Prev
! *omenuEntry11.rightBitmap:	Ctrl-P
  
  *register.wcClassName:		Command
  *register.vertDistance:		10
--- 496,523 ----
  *omenuEntry9.callback:		attachAndRunCB(moira,xterm -geometry 80x34+60+25 +ut -fn -adobe-courier-medium-r-normal--18-180-75-75-\*-\*-\*-\* -display :0.0 -e timeout 120 /mit/moira/namespace)
  *omenuEntry10.label:		Display Console Window
  *omenuEntry10.callback:		signalConsoleCB(show)
! *omenuEntry11.label:		Hide Console Window
! *omenuEntry11.callback:		signalConsoleCB(hide)
! *omenuEntry12.label:		Shut Down Window System
! *omenuEntry12.callback:		windowShutdownCB()
! *omenuEntry13.label:		Restart X in 8-bit Mode
! *omenuEntry13.callback:		commandCB(touch /var/athena/x-8-bit), \
  				restartCB()
! *omenuEntry14.label:		Eject Floppy (if present)
! *omenuEntry14.callback:		commandCB(eject floppy)
! *omenuEntry15.label:		Eject Zip Disk (if present)
! *omenuEntry15.callback:		commandCB(attachandrun mtools mzip mzip -e z:)
! *omenuEntry16.label:		Eject CD-ROM (if present)
! *omenuEntry16.callback:		commandCB(eject cdrom)
  
  *omenuEntry3.rightBitmap:	Shift-F2
  *omenuEntry5.rightBitmap:	Shift-F4
  *omenuEntry6.rightBitmap:	Shift-F6
  *omenuEntry8.rightBitmap:	Shift-F7
  *omenuEntry9.rightBitmap:	Shift-F8
! *omenuEntry10.rightBitmap:	Page-Up
! *omenuEntry11.rightBitmap:	Page-Dn
! *omenuEntry12.rightBitmap:	Ctrl-P
  
  *register.wcClassName:		Command
  *register.vertDistance:		10
***************
*** 633,648 ****
--- 643,663 ----
  *warningShell.borderWidth:	3
  
  *warning.wcClassName:		Dialog
+ *warning.background:		gray
  *warning.icon:			warning
+ *warning.icon.background:	gray
  *warning.label:			Login Failed
+ *warning.label.background:	gray
  *warning.label.font:		-adobe-new century schoolbook-bold-r-*-240-75-*
  *warning.label.width:		200
  *warning.value:			this will be replaced before it is used
+ *warning.value*background:	gray
  *warning.wcChildren:		continue
  
  *warning*value.width:		380
  *warning*value.height:		160
  *warning*value.borderWidth:	0
+ *warning*value.background:	gray
  *warning*value.autoFill:	True
  *warning*value.resize:		False
  *warning*value.displayCaret:	False
***************
*** 656,661 ****
--- 671,677 ----
  			reset()
  
  *continue.wcClassName:		Command
+ *continue.background:		gray
  *continue.callback:		WcPopdownCB(*warningShell), \
  				resetCB()
  
***************
*** 681,690 ****
  *login*background:		gray
  *login*foreground:		black,gray55,black
  
! *login.logo.foreground:		black,gray15,red
! *login.eyes.foreground:		black,gray15,red
! *login.version.foreground:	black,gray15,red
! *login.logo2.foreground:	black,gray15,red
  
  ! savershell is the big black window that covers the screen when the xlogin
  ! "screensaver" kicks in.
--- 697,706 ----
  *login*background:		gray
  *login*foreground:		black,gray55,black
  
! *login.logo.foreground:		black,gray15,red3
! *login.eyes.foreground:		black,gray15,red3
! *login.version.foreground:	black,gray15,red3
! *login.logo2.foreground:	black,gray15,red3
  
  ! savershell is the big black window that covers the screen when the xlogin
  ! "screensaver" kicks in.



========================================================



*** /srvd/etc/athena/login/Console	Tue May 22 12:40:58 2001
--- /etc/athena/login/Console	Sat Jun  9 19:55:57 2001
***************
*** 17,22 ****
--- 17,23 ----
  *window.mapNotifyProc:		mapnotify()
  *window.mapped:			False
  *window.cursorCode:		132
+ *window.background:		gray
  
  !
  ! console is specified here because we really only want this resource
***************
*** 29,34 ****
--- 30,36 ----
  *scrollBarWindow.backgroundPixmap: /etc/athena/login/bitmaps/gray
  
  *scrollBar.changeProc:		newvalue()
+ *scrollBar*background:		light gray
  
  *Button.highlightOnEnter:	false
  *Button.repeatDelay:		25
***************
*** 36,41 ****
--- 38,44 ----
  *Button.borderThickness:	0
  *Button.borderWidth:		0
  *Button*padding:		1
+ *Button*background:		gray
  
  *hideButton.highlightOnEnter:	true
  *hideButton.Interval:		0
***************
*** 43,58 ****
--- 46,65 ----
  *hideButton.borderWidth:	1
  *hideButton*padding:		5
  *hide.borderWidth:		0
+ *hide.background:		gray
  
  *Arrow.width:			13
  *Arrow.height:			13
  *scrolldownArrow.direction:	south
  
  *scrollup.borderWidth:		1
+ *scrollup.background:		gray
  *scrolldown.borderWidth:	1
+ *scrolldown.background:		gray
  *scrollupButton.activateProc:	scroll(-1)
  *scrolldownButton.activateProc:	scroll(1)
  
+ *textDisplayWindow.background:	gray
  *textDisplayWindow.cursorCode:	152
  
  *textDisplay.font:		fixed



==============================================================



*** /dev/null	Sat Jun  9 21:45:15 2001
--- /etc/athena/login/bitmaps/Page-Up	Sat Jun  9 19:14:50 2001
***************
*** 0 ****
--- 1,12 ----
+ #define Page-Up_width 62
+ #define Page-Up_height 13
+ static unsigned char Page-Up_bits[] = {
+   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xe8, 0x07, 0x00, 0x00,
+   0xde, 0x01, 0x02, 0x00, 0xc4, 0x0c, 0x00, 0x00, 0x8c, 0x00, 0x04, 0x00,
+   0xc6, 0x0c, 0x40, 0x00, 0x8c, 0x00, 0x0c, 0x00, 0xc3, 0xec, 0x38, 0x0e,
+   0x8c, 0x6c, 0x18, 0x00, 0xc3, 0x87, 0x6d, 0x1b, 0x8c, 0xdc, 0x18, 0x00,
+   0xc3, 0xc0, 0x6d, 0x1f, 0x8c, 0xcc, 0x18, 0x00, 0xc3, 0xa0, 0x39, 0x03,
+   0x8c, 0xcc, 0x18, 0x00, 0xe6, 0xe1, 0xf9, 0x1e, 0x78, 0x7c, 0x0c, 0x00,
+   0x04, 0x00, 0xc4, 0x00, 0x00, 0x0c, 0x04, 0x00, 0x08, 0x00, 0x7c, 0x00,
+   0x00, 0x1c, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, };



===============================================================



*** /dev/null	Sat Jun  9 21:45:15 2001
--- /etc/athena/login/bitmaps/Page-Dn	Sat Jun  9 19:16:20 2001
***************
*** 0 ****
--- 1,12 ----
+ #define Page-Dn_width 62
+ #define Page-Dn_height 13
+ static unsigned char Page-Dn_bits[] = {
+   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xe8, 0x07, 0x00, 0x00,
+   0x7e, 0x00, 0x02, 0x00, 0xc4, 0x0c, 0x00, 0x00, 0x8c, 0x00, 0x04, 0x00,
+   0xc6, 0x0c, 0x40, 0x00, 0x8c, 0x01, 0x0c, 0x00, 0xc3, 0xec, 0x38, 0x0e,
+   0x8c, 0x6d, 0x18, 0x00, 0xc3, 0x87, 0x6d, 0x1b, 0x8c, 0xdd, 0x18, 0x00,
+   0xc3, 0xc0, 0x6d, 0x1f, 0x8c, 0xcd, 0x18, 0x00, 0xc3, 0xa0, 0x39, 0x03,
+   0x8c, 0xcc, 0x18, 0x00, 0xe6, 0xe1, 0xf9, 0x1e, 0x7e, 0xcc, 0x0c, 0x00,
+   0x04, 0x00, 0xc4, 0x00, 0x00, 0x00, 0x04, 0x00, 0x08, 0x00, 0x7c, 0x00,
+   0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, };


home help back first fref pref prev next nref lref last post