Openwin query

Openwin query

Post by Paul Dalt » Thu, 13 Jun 1996 04:00:00



Hi,
   I saw on recently someones system where they had the path displayed at
the top of the window.As one changed directory/file the path changed at
the top of the window too. This would be really handy for me as I'm doing
some development type stuff and typically have three or four windows going
at any one time, and of course I keep forgetting which file is in which
window. Can any one help?

Regards,
Paul.
Pinnacle Internet Services Ltd.

 
 
 

Openwin query

Post by Hugh McInty » Thu, 13 Jun 1996 04:00:00



|>Hi,
|>   I saw on recently someones system where they had the path displayed at
|>the top of the window.As one changed directory/file the path changed at
|>the top of the window too. This would be really handy for me as I'm doing
|>some development type stuff and typically have three or four windows going
|>at any one time, and of course I keep forgetting which file is in which
|>window. Can any one help?

Try the following (in ".cshrc") assuming you are using csh/tcsh:

if ($?DISPLAY && $?TERM) then
  switch ($TERM)
  case sun-cmd:

    alias IHeader '/bin/echo "\033]L.../$cwd:t\033\\\c"'
    alias cd     'cd     \!*; Header ; IHeader'
    alias pushd  'pushd  \!*; Header ; IHeader'
    alias popd   'popd   \!*; Header ; IHeader'
    alias pwd    'dirs      ; Header ; IHeader'     # can be used as a "refresh"
    alias su     'su     \!*; Header ; IHeader'
    alias rlogin 'rlogin \!*; Header ; IHeader'
    Header ; IHeader                                # initialize
    breaksw
  case sun:
    #
    #  "sun" normally applies to the *console*.  Don't do anything special
    #  in this case or there'll be trouble.  Really, we should check the tty
    #  name for this because "sun" could also apply to shelltools.
    #
    alias pwd   dirs
    breaksw
  case xterm:
    # (may or may not need extra backslashes below)

    alias IHeader '/bin/echo "\033]1;'`hostname`'\c"'
    alias cd     'cd     \!*; Header ; IHeader'
    alias pushd  'pushd  \!*; Header ; IHeader'
    alias popd   'popd   \!*; Header ; IHeader'
    alias pwd    'dirs      ; Header ; IHeader'
    alias su     'su     \!*; Header ; IHeader'
    alias rlogin 'rlogin \!*; Header ; IHeader'
    Header ; IHeader                       # initialize
    breaksw
  default:
    alias pwd            dirs
  endsw
endif

Hugh.

--

|  SRAM Design, Sun Microelectronics, Sun Microsystems, Inc.      |
|  Speaking for myself, not for Sun Microsystems.                 |

 
 
 

1. Getting openwin to XDMCP query

I'm having problems getting a sun4 running solaris 2.3 to run openwindows
with the -query <xdmserver> option. Basically I like motif, and mwm
is currently my window manager of choice. Unfortunately solaris doesn't
do motif in its default incarnation, so I want to run the window manager
from our aix box (rs6000 550, AIX 3.2.5) using which is running xdm. Now
the same setup works fine for a sun3/60 I had until a few hours ago
that was running the xkernel stuff, but when I type

openwin -query <xdmhost>

I get the solaris openwindows 3.3 greetiung, and then...

XDMCP fatal error: Session declined No valid address

Why do I get this? Is it possible to run openwindows using xdm from an
AIX box? Surely it is? Or have sun 'tweaked' it?

TIA..

--
======================================================================
|  Hamish Marson                                                     |
|  Systems Programmer              |                                 |

|  University of Waikato           | PHONE    +64 7 8562889 xt 8181  |
|  New Zealand                     | FAX      +64 7 8384066          |
===========Disclaimer :- Remember. You heard it here first.===========

2. 2 mail servers needed to have aaaa@domain1.xx and bbbb@domain2.xx ?????

3. /opt/openwin instead of /usr/openwin

4. 2940u2w drivers on 2.5 to 2.7 x86

5. can't get openwin to run openwin-init

6. tape drive configuration problem on 5.0A

7. /usr/openwin/bin/openwin - what does this guy suppose to do

8. enum types

9. "refused query on non-query socket" -named

10. Query Query

11. "refused query on non-query socket" -named

12. Configuring apache for query strings to accept "domain.com/?query" when using index.cgi...