[comp.sys.apollo] man pages

tomf@snoopy.Colorado.EDU (FREDERICKS THOMAS M) (07/24/90)

	The help key on my system used to bring up stuff out of /sys/help.
	Now it brings up man pages, what causes this?  Can it be changed 
	back to /sys/help?
		Tom...

jonathan@jarthur.Claremont.EDU (Jonathan Ball) (07/25/90)

In article <23816@boulder.Colorado.EDU> tomf@snoopy.Colorado.EDU (FREDERICKS THOMAS M) writes:

>	The help key on my system used to bring up stuff out of /sys/help.
>	Now it brings up man pages, what causes this?  Can it be changed 
>	back to /sys/help?

It's probably because the file /etc/environ (really
/sys/node_data/etc/environ) was changed.  It defines a variable called
ENVIRONMENT which can be set to `aegis', `bsd', or `sysv'.  If it is one of
the latter two, I think the help automatically assumes you want man pages.
The only way I can think of to change the help key's behaviour is to change
the ENVIRONMENT back to `aegis' and reboot the machine.

Jon
-- 
jonathan@jarthur.claremont.edu (134.173.4.42)

beierl_c@apollo.HP.COM (Christopher Beierl) (07/25/90)

In article <7913@jarthur.Claremont.EDU> jonathan@jarthur.Claremont.EDU (Jonathan Ball) writes:
>In article <23816@boulder.Colorado.EDU> tomf@snoopy.Colorado.EDU (FREDERICKS THOMAS M) writes:
>
>>	The help key on my system used to bring up stuff out of /sys/help.
>>	Now it brings up man pages, what causes this?  Can it be changed 
>>	back to /sys/help?
>
>It's probably because the file /etc/environ (really
>/sys/node_data/etc/environ) was changed.  ...

I use the following keydefs.  Shift-HELP then gives me man pages of the
correct flavor for my current context (i.e. if I'm in a BSD shell I get
BSD man pages, a SYS5 shell gives me SYS5 man pages).  Ctrl-HELP gives me
Aegis help pages.

kd r6s cpo /usr/bin/man -W @&'Show manual entry for [section] name: ' ke
kd ^r6 cv /sys/help/@&'Help on: '.hlp ke

-Chris
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Christopher T. Beierl  Internet: beierl_c@apollo.HP.COM;beierl_c@apollo.com
 Apollo Computer, Inc.      UUCP: {mit-eddie,yale,uw-beaver}!apollo!beierl_c
 A Subsidiary of Hewlett-Packard                       Phone: (508) 256-6600

betsym@apollo.HP.COM (Elizabeth Minahan) (07/25/90)

tomf@snoopy.Colorado.EDU (FREDERICKS THOMAS M) writes:

>	The help key on my system used to bring up stuff out of /sys/help.
>	Now it brings up man pages, what causes this?  Can it be changed 
>	back to /sys/help?
 
and jonathan@jarthur.Claremont.EDU (Jonathan Ball) writes:

>>      It's probably because the file /etc/environ (really
>>	/sys/node_data/etc/environ) was changed.  It defines a variable called
>>	ENVIRONMENT which can be set to `aegis', `bsd', or `sysv'.  If it is one of
>>	the latter two, I think the help automatically assumes you want man pages.
>>	The only way I can think of to change the help key's behaviour is to change
>>	the ENVIRONMENT back to `aegis' and reboot the machine.


That's true that changing the environment to a Unix environment will change the
key definition of the help key, but you shouldn't have to change back your 
environment to change the behavior of the help key.

Assuming you're using the dm, at boot time, the key definitions in 
/sys/dm/std_keys.basic get loaded.  If the machine has an Aegis environment, 
these are your default key definitions.   

Here is how the help key is defined:

  	kd r6s cv /sys/help/@&'Help on: '.hlp ke 

       
If the machine has a Unix environment, it goes on to load /sys/dm/std_keys.unix,
which defines that help key as this:

	# this keydef uses the version of man(1) appropriate
	# to the window the cursor is in when the <HELP> key is pressed
	kd r6s cpo /usr/bin/man -W @&'Show manual entry for [section] name: ' ke


You should be able to define the key to whatever you want using the dm kd
command.


Betsy Minahan
Hewlett Packard North American Response Center