发信人: Gamble_Tan@bbs.ustc.edu.cn (岫云), 信区: cnunix
标  题: SGI graphics FAQ
发信站: 中国科大BBS站 (Sat Jun 20 06:13:14 1998)
转信站: Lilac!ustcnews!ustcbbs


    SGI graphics Frequently Asked Questions (FAQ)

This is one of the Silicon Graphics FAQ series, which consists of:

    SGI admin FAQ - IRIX system administration
    SGI apps FAQ - Applications and miscellaneous programming
    SGI audio FAQ - Audio applications and programming
    SGI diffs FAQ - Changes to the other FAQs since the last posting
    SGI graphics FAQ - Graphics and user environment customization
    SGI hardware FAQ - Hardware
    SGI impressario FAQ - IRIS Impressario
    SGI inventor FAQ - IRIS Inventor
    SGI misc FAQ - Introduction & miscellaneous information
    SGI movie FAQ - Movies
    SGI performer FAQ - IRIS Performer
    SGI pointer FAQ - Pointer to the other FAQs
    SGI security FAQ - IRIX security

Read the misc FAQ for information about the FAQs themselves. Each FAQ is
posted to comp.sys.sgi.misc and to the news.answers and comp.answers
newsgroups (whose purpose is to store FAQs) twice per month. If you
can't find one of the FAQs with your news program, you can get it from

    ftp://viz.tamu.edu/pub/sgi/faq/
    ftp://rtfm.mit.edu/pub/usenet/news.answers/sgi/faq/

(rtfm.mit.edu is home to many other FAQs and informational documents,
and is a good place to look if you can't find an answer here.) The FAQs
are on the World Wide Web at

    http://www-viz.tamu.edu/~sgi-faq/

If you can't use FTP or WWW, send mail to mail-server@rtfm.mit.edu with
the word 'help' on a line by itself in the text, and it will send you a
document describing how to get files from rtfm.mit.edu by mail. Send the
command 'send usenet/news.answers/sgi/faq/misc' to get the SGI misc FAQ,
and similarly for the other FAQs. Send the command 'send
usenet/news.answers/internet-services/access-via-email' to get the
"Accessing the Internet by E-Mail FAQ".

You may distribute the SGI FAQs freely and we encourage you to do so.
However, you must keep them intact, including headers and this notice,
and you must not charge for or profit from them. Contact us for other
arrangements. We can't be responsible for copies of the SGI FAQs at
sites which we do not control, and copies published on paper or CD-ROM
are certain to be out of date. The contents are accurate as far as we
know, but the usual disclaimers apply. Send additions and changes to
sgi-faq@viz.tamu.edu.

Topics covered in this FAQ:
---------------------------
   -1- DISPLAYS AND DGL
   -2- How can I run a program on one machine and display it on another?
   -3- Does the DISPLAY environment variable work for GL applications?
   -4- Why doesn't the DISPLAY environment variable seem to work?
   -5- Why do I get DGL errors when I try to run a GL program?
   -6- CUSTOMIZING
   -7- What tools does SGI provide to help with the customization
       process?
   -8- What are the important login and resource files for IRIX 4.0.x?
   -9- What is the sequence of events that occur at login time in IRIX
       4.0.x?
  -10- What is the difference between .xsession and .sgisession in IRIX
       4.0.x?
  -11- Why do 4Dwm, toolchest, Workspace, etc. not recognize an
       environment variable I set in my shell's startup files in IRIX
       4.0.x?
  -12- How can I change desktops without using the mouse and Desks
       Overview?
  -13- How can I turn off the IRIX 5.2 Magic user environment?
  -14- How can I display my own background image under Indigo Magic?
  -15- Where is the default value of PATH set?
  -16- Why can't I log in after copying /usr/lib/X11/xdm/Xsession to
       .xsession?
  -17- How can I find out what fonts are available?
  -18- How can I use the Alt key as a Meta key in an xwsh window?
  -19- How can I configure my keyboard like a VT100?
  -20- Can I put a single large picture in the 'clogin' display?
  -21- How can I change clogin's background to an image?
  -22- RESOURCES
  -23- What are resources?
  -24- How can I set resources?
  -25- How can I use resources to run the same program twice with
       different attributes?
  -26- Does the GL recognize resources?
  -27- How can I know what resources I can set for an application?
  -28- What is a good approach to take in looking for resources?
  -29- What is the precedence for resource files?
  -30- Why do long resources cause X to crash mysteriously in IRIX 5.2?
  -31- 4DWM
  -32- Where can I learn more about the Window Manager?
  -33- What files affect the window manager and what is their
       relationship to each other?
  -34- Do I need my own .4Dwmrc file?
  -35- Can I run a different window manager?
  -36- How can I choose a different window manager as the default?
  -37- How can I recover from a failed window manager customization
       attempt?
  -38- ADMINISTRATION
  -39- How can I log into pandora/clogin without bringing up graphics?
  -40- How can I restart the console?
  -41- How can I start and stop the graphics system?
  -42- How can I restart the X server?
  -43- How can I run 'xinit' manually, rather than automatically from
       'xdm'?
  -44- How can I start X on a remote host with no users logged in?
  -45- IMAGE FILES
  -46- How can I convert images to and from other formats?
  -47- How can I convert models to and from other formats?
  -48- What is the format of SGI's RGB files?
  -49- How can I compress RGB bitmaps?
  -50- How can I make a screen dump?
  -51- Why does the IRIX 5.3 desktop recognize but not deal with JPEG
       files?
  -52- PROGRAMMING
  -53- Can I use 4Dgifts code in my application?
  -54- What does ERR_WMANIPC mean?
  -55- How can I translate screen (x,y) coords into world (x,y,z)
       coords?
  -56- How can I translate world (x,y,z) coords into screen (x,y)
       coords?
  -57- Why does nothing happen when I call mapcolor(index, R, G, B)?
  -58- Why can't 'cc' find some standard Xwindows functions?
  -59- What is a GL widget?
  -60- I'm using the GlxMDraw widget and it doesn't seem that colors are
       being installed correctly.  Overlays in the GlxMDraw widget are
       displayed in red and gray instead of the colors I specify.
       What's wrong?
  -61- Is there a way to switch between single and double buffering
       within a GL widget on the fly?
  -62- Why doesn't my X server use backing store? How can I turn it on?
  -63- What is "/dev/tport" used for?
  -64- Why is OpenGL's glDrawPixels slower than IrisGL's lrectwrite?
  -65- BUGS AND PROBLEMS
  -66- Why do I get a "Broken Pipe" error when I close an X client
       window?
  -67- What do the errors in my 'xdm-errors' file mean?
  -68- Why doesn't SGI's xlock lock my screen?
  -69- Why can't my XView application find its fonts?
  -70- After running a few programs, the colors change as the cursor
       moves. The colors are usually all wrong in other windows.
  -71- How can I make my X Server use a 12-bit PseudoColor, 12-bit
       TrueColor or 24-bit TrueColor visual by default?
  -72- When I try to run UIM/X uxserverd, I get an error message saying,
       "license file has been modified, cannot start the UIM/X license
       server".
  -73- I just upgraded from IRIX 5.2 to 5.3. Why does my PI or VGX say
       "extension GLX missing on display :0.0"?
  -74- Why does my X server (Xsgi) grow inexorably?
  -75- Why does my GL application run slower on newer SGI hardware than
       it did on older SGI hardware?
  -76- MISCELLANEOUS
  -77- What books about the X Window System and OSF/Motif do you
       recommend?
  -78- Does the IRIX 5.2 Magic user environment display on an X
       terminal?
  -79- What about OpenGL?
  -80- Which SGI machines can run OpenGL now? Which will in the future?
  -81- What's this about a copyright dispute over virtual desks in
       Indigo Magic?

----------------------------------------------------------------------

Subject:    -1- DISPLAYS AND DGL
Date: 15 May 1994 00:00:01 EST

  This section discusses how to use remote displays.

------------------------------

Subject:    -2- How can I run a program on one machine and display it on
                another?
Date: 07 May 1993 00:00:01 EST

  Specify the host on which you want the X client to be displayed, then
  run the application. To specify a remote host,

      setenv DISPLAY <destination>:0

  where <destination> is the name or IP address of the remote host.  To
  specify the local host (console),

      setenv DISPLAY :0

------------------------------

Subject:    -3- Does the DISPLAY environment variable work for GL
                applications?
Date: 4 Jun 1997 00:00:01 EST

  Yes: IRIX 4.0.x and later uses the Distributed Graphics Library (DGL)
  to allow GL programs to run remotely.  Applications running over
  DGL use the DISPLAY environment variable just as do ordinary X 
  applications.

  OpenGL applications also will pay attention to the DISPLAY variable.
  OpenGL data, however, does not use DGL; it uses the standard X
  communications mechanism.


------------------------------

Subject:    -4- Why doesn't the DISPLAY environment variable seem to
                work?
Date: 4 Jun 1997 00:00:01 EST

  First, make sure your DISPLAY variable is syntactically correct.  For
  example, to display applications on a machine named "enterprise",
  whose IP address is 123.45.678.90, DISPLAY should be set to
  "enterprise:0" or "123.45.678.90:0". 

  Next, try to "ping" the machine to which your DISPLAY variable is
  set.  If this does not work, you have either specified an invalid
  hostname, the host is down, or you are having network problems.
  If you are running an older binary that expects to see /etc/resolv.conf
  in /usr/etc, you will either have to make a symbolic link from
  /usr/etc/resolv.conf to /etc/resolv.conf, or set the DISPLAY variable
  with a numeric address.

  If you see messages like "permission denied" or "can't connect to
  server", you have a permission problem.   Do 'xhost +yourmachine' on
  the remote machine to give 'yourmachine' access to the remote
  machine's display. (Note that 'xhost' is inactive by default on
  SGIs.)

  If you're using NIS (YP), make sure the client is linked with
  "-lsun".

  For more information see Chapter 3 of the X Window System User's
  Guide.

------------------------------

Subject:    -5- Why do I get DGL errors when I try to run a GL program?
Date: 4 Jun 1997 00:00:01 EST

  - There may be a problem with the DISPLAY variable or Xwindows
    permissions. See the previous question.

  - You may be trying to display on a non-SGI machine which doesn't
    support GL/DGL.  Note that DGL is for running GL programs remotely,
    not OpenGL programs.  OpenGL programs run remotely via the 
    GLX X server extension.

  - DGL may be disabled in /etc/services and/or /etc/inetd.conf. The
    former file should have a line reading

      sgi-dgl         5232/tcp

    and the latter should have a line reading

      sgi-dgl stream  tcp   nowait  root   /usr/etc/dgld  dgld -IM -tDGLTSOCKET

    If either is commented out, remove the comment.

  - You may be trying to display on a machine with a much older version
    of IRIX. Try another machine with a newer IRIX.

  An article in the Jan/Feb 1993 Pipeline describes the above in great
  detail.

------------------------------

Subject:    -6- CUSTOMIZING
Date: 15 May 1994 00:00:01 EST

  This section discusses ways to customize your environment, both with
  and without graphics. The next two sections go into depth on
  customizing Xwindows resources and the 4Dwm.

------------------------------

Subject:    -7- What tools does SGI provide to help with the
                customization process?
Date: 05 Jul 1994 00:00:01 EST

  Here are some good places to look in IRIX 4.0.x:

  - The Customization rollover menu in the Toolchest.
  - The manpages for xfontsel, xlsfonts, xwininfo, xdpyinfo, xprop,
    appres, listres, and xrdb.
  - The "WorkSpace User's Guide".
  - The example files in /usr/tutor/Customize.

  In IRIX 5.x, take the systemtour and keep your eyes open.

------------------------------

Subject:    -8- What are the important login and resource files for IRIX
                4.0.x?
Date: 07 May 1993 00:00:01 EST

  The following three file groupings indicate where files that affect
  your login session reside.

  1) /usr/lib/X11/* - This is THE starting place. Here you find the
  system default bindings for Motif, 4Dwm, and the Toolchest. The xdm
  directory lives here as well as the app-defaults directory. xdm
  controls the session management. Many application defaults are set in
  the app-defaults directory.

  2) $HOME/[.Xdefaults, .4Dwmrc, .chestrc, .xsession, .sgisession] Here
  you find the files that control your system set-up.  You create these
  files; they don't exist when you first log in.

  3) /usr/bin/X11 - This is where the binaries live. It makes life nice
  to include this directory in your path.

------------------------------

Subject:    -9- What is the sequence of events that occur at login time
                in IRIX 4.0.x?
Date: 10 Dec 1993 00:00:01 EST

  This is a bare bones synopsis of the events that occur when you log
  in to the console via xdm (the default method of logging in) under
  IRIX 4.0.x and, with the desktop *disabled*, IRIX 5.x.

   1) Provide a "failsafe" (nographics) login if required/requested.
   2) Exec $HOME/.xsession if it exists. If it exists, the remaining
      steps should normally be included in the users .xsession file
      as well.
   3) Load $HOME/.Xresources if it exists.
   4) Set XUSERFILESEARCHPATH.
   5) Incorporate a "shell" environment into the "session".
      (man userenv)
   6) Set the root background and cursor.
   7) Disable display access control (xhost +).  (man xhost)
   8) Start 4Dwm.
   9) Wait for 4Dwm to come up.
  10) Start the console.
  11) Execute $HOME/.sgisession if it exists.
  12) Start WorkSpace if the user wants it.
  13) Put a Toolchest on each screen.
  14) Exec the "reaper". (man reaper / endsession)

------------------------------

Subject:   -10- What is the difference between .xsession and .sgisession
                in IRIX 4.0.x?
Date: 07 May 1993 00:00:01 EST

  The system Xsession file (/usr/lib/X11/xdm/Xsession or
  Xsession-remote) starts up a number of important things when you log
  in, eg. 4Dwm, toolchest, loads resources, sets your
  XUSERFILESEARCHPATH, sets your root background, etc.

  One of the last things it does is look in your home directory for a
  .sgisession file.  This allows you to start additional programs at
  login time. This is the file that you would use to start a mailbox,
  additional window, a calendar, etc.

  ADVANTAGES OF $HOME/.sgisession :

      1) You don't need to read through yet another system file to see
         what you need or don't need.

  DISADVANTAGES OF $HOME/.sgisession :

      1) You cannot override ALL of the defaults set for you. Some
         things you can't change from a .sgisession file:

         A) You can't start a different window manager.
         B) You can't change the way the console starts.
         C) You can't change toolchest output redirection to
          the console.

      2) Users of other vendors' equipment are used to seeing a
         .xsession file.

  After checking for a "failsafe" (ie. no graphics) login, one of the
  first things that /usr/lib/X11/xdm/Xsession does is check for
  $HOME/.xsession.  If it exists, Xsession execs your .xsession file.
  This means that if you are REALLY sure you know what you are doing,
  you can log in with a different window manager, xterm as a console,
  or xwsh not already iconified, etc.  You can also turn off the
  toolchest output redirection, and start anything else you might have
  done in $HOME/.sgisession. There is a discussion on xsession files in
  volume 3 of the O'Reilly series.

------------------------------

Subject:   -11- Why do 4Dwm, toolchest, Workspace, etc. not recognize an
                environment variable I set in my shell's startup files
                in IRIX 4.0.x?
Date: 03 Sep 1995 00:00:01 EST

  The script /usr/lib/X11/xdm/Xsession (or, if you have one, your own
  ~/.xsession) runs when you log in and starts your window manager
  (4Dwm), Workspace, etc. To give these programs a copy of the
  environment you define in your shell's startup files, Xsession first
  runs 'userenv', which runs your shell just to see what environment
  variables your shell's startup files set and puts them into
  Xsession's environment.  Later on Xsession runs 4Dwm, Workspace, etc.
  and they inherit Xsession's environment including the environment
  variables which 'userenv' got from your shell's startup files.

  However, 'userenv' objects to 1) errors in your shell startup files,
  2) commands which print output to the terminal and 3) commands like
  'stty' and 'tset', which expect to be connected to a terminal.  Any
  of these may cause 'userenv' to give up completely, so that Xsession,
  4Dwm, Workspace, etc. do not get any of your shell's enviroment.

  To get 'userenv' to work, you must 1) make sure that your shell
  startup files are error-free and 2) protect 'userenv' from commands
  which print output or expect to be connected to a terminal by testing
  for the ENVONLY environment variable before running them. (See the
  userenv(1) manpage.) You might try disabling your shell startup files
  (or parts thereof) one by one to narrow down which is causing the
  problem.  Be sure to check both personal and system-wide shell
  startup files! See your shell's manpage for a complete list.

  Note that each terminal window (aka 'winterm', 'xwsh' or 'xterm')
  runs a fresh copy of your shell, so it has a second chance to set
  your environment variables. Your shell is now connected to a terminal
  and 'userenv' isn't involved, so none of the above problems apply.
  The environment in a terminal window will appear correct, and
  programs started from a window (e.g. by typing 'workspace' to start
  Workspace) will inherit the environment properly.  Furthermore,
  'userenv' often appears to work when run inside a terminal window,
  even when it does not work when run from Xsession.  This is all fine,
  but it doesn't help when you log in. One right way to see if
  'userenv' is working when it should is to add the line 'env >
  $HOME/test-userenv' to Xsession after the line that runs 'userenv',
  log in and examine the file it creates.

  'bash' users take note: 'bash' has particular problems with 'userenv',
  and there is a special version of 'userenv' which works with 'bash' at
  ftp://viz.tamu.edu/pub/sgi/software/desktop/userenv.tar.gz.

------------------------------

Subject:   -12- How can I change desktops without using the mouse and
                Desks Overview?
Date: 8 Mar 1997 00:00:01 CST

  Ping Huang <pshuang@sgi.com> contributes the following method:

  Unlike some other window managers, you can't navigate between
  desktops geographically, using some Control, Alt, and/or Shift'ed
  version of the arrow keys.  However, you can tell 4Dwm to let you jump
  to a given desktop with a keystroke.  If you want to customize one
  account only, copy /usr/lib/X11/system.4Dwmrc (or possibly
  /usr/lib/X11/$LANG/system.4Dwmrc, if you set the LANG environment
  variable for localization) to the user's home directory as .4Dwmrc.
  Look for the "Keys 4DwmKeyBindings" section, and add lines of the
  following form:

    # IndigoMagic desktops
        <Key>F1                 root|icon|window        f.switch_desk "Desk 1"
        <Key>F2                 root|icon|window        f.switch_desk "Desk 2"
        <Key>F3                 root|icon|window        f.switch_desk "Desk 3"

        <Key>F10                root|icon|window        f.switch_desk "Global"

  The names of the desks are whatever arbitrary names you used to name
  your desks in Desk Overview.  (The "Global" desk is, however, a special
  desk; see Desk Overview help for details.  You still reference its
  name here as you would any other desk.)

------------------------------

Subject:   -13- How can I turn off the IRIX 5.2 Magic user environment?
Date: 18 Aug 1994 00:00:01 EST

  Mark Andrews <mark@alias.com> says:
  You can disable the Indigo Magic environment in two ways:

  1) If you wish to disable it for all users on the machine:

         chkconfig desktop off

  2) If you wish to disable it for a specific user, do

         touch ~<username>/.disableDesktop

     You may also have to remove the ~/.desktop-<hostname> directory as
     well as 4Dwm looks in there for a 4Dwmsession file which it uses
     for a guide to redisplay windows left open from the last session.

     Method 2 works ONLY if you have the original IRIX 5.2 xdm Xsession
     file, which contains the following code chunk:

     if /etc/chkconfig desktop ;
     then
             if [ -x $0.dt -a \! -f $HOME/.disableDesktop ]
             then
                     exec $0.dt $*
             fi
     fi

  If you only want to turn off the file manager, create the file
  ~/.desktop-<hostname>/nodesktop.

  Whether you disable the entire desktop or just the file manager, you
  may also want to set one or more of these resources

     4DWm*SG_autoSave:       false
     4Dwm*SG_manageSession:  false
     4Dwm*SG_useBackgrounds: false

  which are explained in the 4Dwm(1) manpage. See also the desktop_eoe
  release notes.

------------------------------

Subject:   -14- How can I display my own background image under Indigo
                Magic?
Date: 30 Apr 1995 00:00:01 EST

  Two SGI employees described two different ways to do this, one for
  folks who don't care about desktop icons and one for folks who do.

  Joel Tesler of SGI <joel@sgi.com> says:

      1) Disable Indigo Magic desktop icons in any of the three ways
         (~/.desktop-<host>/nodesktop, ~/.disableDesktop, or 'chkconfig
         desktop off') described in the previous entry.

      2) Set the resource

         4Dwm*SG_useBackgrounds: false

      3) Run whatever command you like to display the image on the
         background.

  Jon Madison of SGI <jm@indianapolis.sgi.com> says:

      1) cp /usr/lib/X11/system.backgrounds ~/.backgrounds

      2) Read your new ~/.backgrounds file (and 'man background') to see
         how it works, and edit it. Here's an example entry which uses
         'xli' (a free image viewer) to display a GIF image:

         background "Legos"
            command "-execute /usr/local/bin/xli -onroot -fork /usr/people/jm/graphics/pix/lego.gif"
            default "-execute /usr/local/bin/xli -onroot -fork /usr/people/jm/graphics/pix/lego.gif"
            exeok "/usr/local/bin/xli"
            readok "/usr/people/jm/graphics/pix/lego.gif"

      3) Run the 'background' customization panel. (It's in the default
         toolchest. Hey, there's your custom background in the list!

      Backgrounds set up in this way coexist fine with desktop icons.

------------------------------

Subject:   -15- Where is the default value of PATH set?
Date: 10 Dec 1993 00:00:01 EST

  Every program which allows a user to log in (telnet, rlogin, pandora,
  etc.) can specify PATH. Shells may as well if it isn't already set.
  There are many slightly different default values, and relying on them
  is a good way to get confused. The only reliable method is to set
  PATH in your shell's startup files. These are different for each
  shell, and are described in each shell's manpage. Beware of 'ksh',
  which has an internal, invisible default path ('/bin:/usr/bin') which
  it uses when PATH is not set.

------------------------------

Subject:   -16- Why can't I log in after copying
                /usr/lib/X11/xdm/Xsession to .xsession?
Date: 07 May 1993 00:00:01 EST

  After copying this file to your home directory, you need to remove
  all references to "xsession". References to xsession cause the system
  to try to execute $HOME/.xsession, which will create an infinite
  loop.

  Remove the lines in ~/.xsession that say:

  if [ -r $xsession -a "$0" != $xsession ]; then
         if [ -x $xsession ]; then
               exec $xsession
         else
               exec /bin/sh $xsession
         fi
  fi

------------------------------

Subject:   -17- How can I find out what fonts are available?
Date: 07 May 1993 00:00:01 EST

  The xfontsel and xlsfonts utilities help you find appropriate fonts.
  xlsfonts lists the fonts; xfontsel provides an interface for
  selecting a desired font. To use xfontsel, choose "Font Names" from
  the Customization rollover menu in the Toolchest.  Please see the man
  pages and the IRIS Utilities Guide for further information.

------------------------------

Subject:   -18- How can I use the Alt key as a Meta key in an xwsh
                window?
Date: 23 Jun 1994 00:00:01 EST

  First, put the following X resources wherever you put X resources:

  --- beginning of resources ---
  ! This turns Alt-key into Meta-key.

  XWsh*metaKeyMask:     8

  ! This allows multiple key modifiers in keybindings (so we can do
  ! meta-shift, meta-control, etc. and incidentally a) turns vt100
  ! cursor key mode off and b) changes the cursor key bindings.

  XWsh*keyboardType:    xlib

  ! This turns vt100 cursor key mode back on. Running 'tset' at login
  ! resets the terminal and turns the cursor keys back off, so don't
  ! run it.

  XWsh*initSequence:    \233?1h

  ! The iris-ansi terminfo entry has arrow key sequences for the ibmrt
  ! keyboard, not the xlib keyboard; for curses applications to work,
  ! the arrow keys must be bound to the sequences in the terminfo
  ! entry. Rebinding the arrow keys to match the terminfo entry is more
  ! convenient than changing the terminfo entry.

  XWsh*ckmeKeyMap:                      \
      Left(any): send("\033[D");                \
      Right(any): send("\033[C");               \
      Up(any): send("\033[A");          \
      Down(any): send("\033[B");
  --- end of resources ---

  'tset' resets your terminal, so running it will undo the initSequence
  resource setting. There is a 'tset' command in the default csh/tcsh
  ~/.login file; replace the line

      eval `tset -s -Q`

  with

      if (! $?TERM) then
          eval `tset -s -Q`
      endif

  so 'tset' will run only if the TERM environment variable isn't
  already set. (You can't say 'if (! $?TERM) eval `tset -sQ`', because
  csh/tcsh evaluates the backquotes *before* the if.)

  Finally, if you use GNU Emacs, put the following in your .emacs:

      (set-input-mode nil nil t)

  This tells Emacs to allow Meta key usage even though the iris-ansi
  (xwsh) terminal description doesn't specify a Meta key.

------------------------------

Subject:   -19- How can I configure my keyboard like a VT100?
Date: 4 Jun 1997 00:00:01 EST

  'xwsh -vt100' may be close enough; try it and see. (The PF keys are
  mapped to F9-F12.) If not, use 'xterm -name VT200' and put the 
  following wherever you put the rest of your X resources:

  === snip ===
  XTerm*VT200.Translations: #override \
        <Key>BackSpace:         string(0x7f) \n\
        <Key>Num_Lock:          string(0x1b) string("OP") \n\
        <Key>KP_Divide:         string(0x1b) string("OQ") \n\
        <Key>KP_Multiply:       string(0x1b) string("OR") \n\
        <Key>KP_Subtract:       string(0x1b) string("OS") \n\
        <Key>KP_Add:            string(0x1b) string("Om") \n\
        <Key>Pause:             string(0x1b) string("[34~") \n\
        <Key>Print:             string(0x1b) string("[32~") \n\
        <Key>Scroll_Lock:       string(0x1b) string("[33~") \n\
        <Key>KP_0:              string(0x1b) string("Op") \n\
        <Key>KP_1:              string(0x1b) string("Oq") \n\
        <Key>KP_2:              string(0x1b) string("Or") \n\
        <Key>KP_3:              string(0x1b) string("Os") \n\
        <Key>KP_4:              string(0x1b) string("Ot") \n\
        <Key>KP_5:              string(0x1b) string("Ou") \n\
        <Key>KP_6:              string(0x1b) string("Ov") \n\
        <Key>KP_7:              string(0x1b) string("Ow") \n\
        <Key>KP_8:              string(0x1b) string("Ox") \n\
        <Key>KP_9:              string(0x1b) string("Oy") \n\
        <Key>KP_Decimal:        string(0x1b) string("On") \n\
        <Key>Insert:            string(0x1b) string("[1~") \n\
        <Key>Home:              string(0x1b) string("[2~") \n\
        <Key>Prior:             string(0x1b) string("[3~") \n\
        <Key>Delete:            string(0x1b) string("[4~") \n\
        <Key>End:               string(0x1b) string("[5~") \n\
        <Key>Next:              string(0x1b) string("[6~") \n\
        <Key>F1:                string(0x1b) string("[17~") \n\
        <Key>F2:                string(0x1b) string("[18~") \n\
        <Key>F3:                string(0x1b) string("[19~") \n\
        <Key>F4:                string(0x1b) string("[20~") \n\
        <Key>F5:                string(0x1b) string("[21~") \n\
        <Key>F6:                string(0x1b) string("[23~") \n\
        <Key>F7:                string(0x1b) string("[24~") \n\
        <Key>F8:                string(0x1b) string("[25~") \n\
        <Key>F9:                string(0x1b) string("[26~") \n\
        <Key>F10:               string(0x1b) string("[28~") \n\
        <Key>F11:               string(0x1b) string("[29~") \n\
        <Key>F12:               string(0x1b) string("[31~") \n\
  === snip ===

  This remaps the keys as follows:

  ---------------------------------------------
  SGI Key             |   Emulated VT100 key
  ---------------------------------------------
  Num Lock            |   PF1
  /                   |   PF2
  *                   |   PF3
  -                   |   PF4
  7                   |   7
  8                   |   8
  9                   |   9
  +                   |   -
  4                   |   4
  5                   |   5
  6                   |   6
  1                   |   1
  2                   |   2
  3                   |   3
  Enter               |   Enter
  0                   |   0
  .                   |   .
  Insert              |   Find
  Home                |   Insert Here
  Page Up             |   Remove
  Delete              |   Select
  End                 |   Prev Screen
  Page Down           |   Next Screen
  F1                  |   F6
  F2                  |   F7
  F3                  |   F8
  F4                  |   F9
  F5                  |   F10
  F6                  |   F11
  F7                  |   F12
  F8                  |   F13
  F9                  |   F14
  F10                 |   Help
  F11                 |   Do
  F12                 |   F17
  Print Screen        |   F18
  Scroll Lock         |   F19
  Pause               |   F20

  These translations encompass both VT100 and VT200 (LK201-style)
  keyboards.  Thanks to Hemant Shah <shah@fnal.fnal.gov> and Isaac 
  A. Stoddard <u177k@gsde.hso.link.com> for their contributions here.
  Any volunteers to work out similar bindings for xwsh?

------------------------------

Subject:   -20- Can I put a single large picture in the 'clogin'
                display?
Date: 05 Nov 1995 00:00:01 EST

  Not in IRIX 5.0-5.2 or 6.0-6.0.1. You could in IRIX 4.0.x and earlier,
  and you can in IRIX 5.3 and 6.1 and later. Read the clogin(1) manpage.

------------------------------

Subject:   -21- How can I change clogin's background to an image?
Date: 05 Nov 1995 00:00:01 EST

  Convert the image to xbm ("X BitMap") format. (See under "IMAGE FILES"
  below for conversion programs.) Uncomment the 'xsetroot' line in
  /usr/lib/X11/xdm/Xlogin and change the filename after '-bitmap' to
  your .xbm file. If your image is smaller tha

--
※ 来源: 中国科大BBS站 [bbs.ustc.edu.cn]
[百宝箱] [返回首页] [上级目录] [根目录] [返回顶部] [刷新] [返回]
Powered by KBS BBS 2.0 (http://dev.kcn.cn)
页面执行时间:427.432毫秒