[comp.sys.hp] Console windows in X11R2

curtv@mist.CS.ORST.EDU (Curt Vandetta) (04/27/89)

 Hello,
 I'm running HP-UX 6.5 on a 9000/370, and I'm trying to get a console
 window in X11R2 (almost R3 according to my SE :-)  I notice that
 both xterm and tterm have a -C option to make the window recieve
 console output, but neither seems to be supported.  I'm also using
 the hp window manager.  Has anyone gotten this to work?  Has anyone
 got a work around?  It is really annoying to have my X-window
 environment scrolled up a couple of lines every time someone does a
 write or a talk to me at the console.

 Also, while I'm here.  Has anyone gotten the history mechanism for
 csh to work in X-windows?  It only seems to save the very last command.
 I think that is is being confused by multiple windows using the 
 same ~/.history file.  I've only noticed this behavior from HP's
 X-window product, the hp window manager, I haven't yet tried using
 uwm or awm.

 Please direct any responses to:  curt@sylvestr.oce.orst.edu
 Flames can go to: /dev/null :-)

 Thanks for your time,
 Curt

shankar@hpclscu.HP.COM (Shankar Unni) (04/28/89)

>  I'm running HP-UX 6.5 on a 9000/370, and I'm trying to get a console
>  window in X11R2 (almost R3 according to my SE :-)  I notice that
>  both xterm and tterm have a -C option to make the window recieve
>  console output, but neither seems to be supported.  I'm also using

Create a file called "/usr/lib/X11/Xconsoles" with lines of the following form

# comments, if any
0

The 0 refers to the seat number. If you have multiple seats, I'm told that "*" works, but it's usually a good idea to let only seat 0 grab the console.

>  Also, while I'm here.  Has anyone gotten the history mechanism for
>  csh to work in X-windows?  It only seems to save the very last command.

Make sure that you have a line in your .cshrc file that sets history.

E.g.


 if ($?prompt) then
    # for interactive shells only
    # ...
    
    set history = 100 # or whatever
    set savehist = 100
    
    #...
 endif

Be aware that csh does not continually update the .history file: it is written
only when csh exits. Which means that if you want to save history from session
to session, only the history of the last shell to exit is remembered. If you
simply want history for your current session, then don't set savehist.
----
Shankar.