HPlogo Using the X Window System > Chapter 4 Using the X Window System

Exiting From the X Window System

» 

Technical documentation

Complete book in PDF

 » Table of Contents

 » Glossary

 » Index

Exiting from the X Window System means stopping the X11 display server. Leaving X places you back at the command prompt you had immediately before starting the X11 display server.

Before stopping the X Window System, you must first stop any X clients you may have running. This ensures that you do not unknowingly leave any orphaned processes executing. It also ensures that all open files are properly closed to prevent loss of data.

CAUTION: Stop all X clients and any non-clients running in terminal emulator windows before stopping the window system. If you don't do this, any open files may not be updated properly. This could result in the loss of valuable data.

Stopping Application Programs

You can stop a program and remove its window in three ways.

Following the Program's Normal Exit Procedure

The best way to exit a program is to use the program's usual "exit" procedure. This should always be your preferred method for stopping the program. Many programs have commands or keystrokes that stop them.

If the program is a client and created its own window, the window is removed when the client stops. If the program is a non-client in a terminal window, the window remains, and you can stop it when you stop the display server.

Closing the Window

You can also stop most applications by closing the window in which the application is running. To close a window:

  1. Position the pointer on the window menu button.

  2. Press and hold button 1.

  3. Drag the pointer to Close.

  4. Release button 1.

Stopping the X Window System

After stopping all application programs, stop the window system by holding down the CTRL and Left Shift keys, and then pressing the Reset key. This stops the display server, and with it the window system. (If you have a PC-style keyboard, press Shift Control Pause instead.)

The sequence of keys that stops the display server can be customized in the X*pointerkeys file. Refer to chapter 9 or the X0pointerkeys file in /usr/lib/X11.

© 1995 Hewlett-Packard Development Company, L.P.