Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ wc — Apollo

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

WINDOWS

DM COMMANDS

7.0;wc (window_close) *DM*, revision 7.0, 83/08/18
WC (WINDOW_CLOSE) *DM* -- Close window and associated functions.
usage: wc [-q | -f | -a | -s]


FORMAT

  WC [-Q | -F | -A | -S]

  The WC command closes (deletes) a window.  It may also close the pad
  into which the window looks, depending on the following conditions.

  If other windows into the pad besides the one being closed exist,
  the DM naturally leaves the pad open.  If there are no other windows
  into the pad, however, the DM closes it.  The closed pad is then either
  deleted (if it was temporary) or saved under its pathname
  (if it was named and permanent, i.e., a permanent disk file).

  If the pad is a writable edit pad, and is being viewed only through
  the current window, the DM renames the old file by appending .BAK to
  its name, and writes the edited version to the original file name.
  If multiple windows are viewing the edit pad, WC simply closes the
  window -- it does not write the file or rename the old file.
  To force the DM to write the file and create the .BAK version,
  use the DM command PW (PAD_WRITE) or the <EXIT> or CTRL/Y keys (see below).

  A transcript (output) window normally cannot be closed if it is the last
  window into an active process (see -F below).

  Note that the DM cannot delete a permanent pad (file); you must use
  the Shell command DLF (DELETE_FILE) for this purpose.

  Two keys (or control/key sequences) have been predefined to perform
  related functions:

                      KBD 2           KBD 1

  PW;WC -Q    (or)    <EXIT>  (R5)    CTRL/Y           Close window, pad;
                                                        update file

  WC -Q       (or)    <ABORT> (R5S)   CTRL/N           Close window, pad;
                                                        ignore changes

OPTIONS

  If no options are specified, WC closes the window and pad, then
  deletes the pad (if temporary) or rewrites it (if permanent) as
  described above.  Only one of the following options may be specified
  at a time.  Auto-close is disabled by default.

  -Q               Quit without updating pad (file).  Any changes made
                   while window was open are ignored.  The system
                   prompts you with "File modified. OK to quit?" if you
                   have made changes to verify that you really wish to
                   discard them.

  -F               Force window closure, even if this window was the last
                   one open into a process.  Note that the process will
                   become inaccessible, however, if no windows are left.

  -A               Enable auto-close for current window.  When auto-close
                   is enabled, the current window will close when the pad
                   into which it looks is closed.

  -S               Disable auto-close for current window.  If auto-close
                   is disabled (the default condition), then the current
                   window persists after the pad into which it looks is
                   closed.


RELATED TOPICS

  More information is available.  Type:

    - HELP WINDOWS
      for general information about windows.

    - HELP DM COMMANDS
      for a list of other window management commands.

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026