Miscellaneous notes on Wterm, the shell window

ESCAPE SEQUENCES SUPPORTED:
  {esc}"f{tips}/{face}"     set font. e.g. {esc}"f132/PCTerm"
  {esc}"l{string}"          set Long-term message to string
  {esc}"l"                  remove Long-term message
  {esc}"t{string}"          set Title message to string
  {esc}"t"                  set Title message to "Shell"
  {esc}"i{string}"          set Icon label to string
  {esc}"i "                 Sets Icon label to device name e.g. "win1"
  {esc}"i"                  remove Icon label
  {esc}"I{file_name}"       set Icon to file_name.pict in $HOME/windows
  {esc}"I{path}"            set Icon to path.pict (path starts with "/")
  {esc}"I"                  set Icon to default wterm Icon
  {esc}"m"                  pop-up standard menu "wterm.dial"
  {esc}"m{file_name}"       pop-up menu file_name.dial in $HOME/windows
  {esc}"m{path}"            pop-up menu path.dial (path starts with "/")
  {esc}"p{file_name}"       Set property file to file_name.wt in $HOME/windows
                               This is intended primarily for the wterm -p
                               flag, and will not work on an already open 
                               window.

  {esc}/0t                  reset flags
  {esc}/1t                  open Window
  {esc}/2t                  close Window (become Iconic)
  {esc}/3;{top};{left}t     move window to top,left (Tips)
  {esc}/4;{height};{width}t stretch to height,width (Tips)
  {esc}/5t                  window to front
  {esc}/6t                  window to back
  {esc}/7t                  refresh window
  {esc}/8;{rows};{cols}t    stretch to rows,cols (chars)
  {esc}/9;{rows};{cols}t    set logical size to rows,cols (chars)

  {esc}/10t                 report wterm version number {esc}/10;{version}t
  {esc}/11t                 report if iconic by {esc}/1t or {esc}/2t
  {esc}/13t                 report position (Tips) by {esc}/3;{top};{left}t
  {esc}/14t                 report size (Tips) by {esc}/4;{height};{width}t
  {esc}/18t                 report size (chars) by {esc}/8;{rows};{cols}t
  {esc}/19t                 report logical size by {esc}/9;{rows};{cols}t

  {esc}/20t                 report icon label message by {esc}"i{string}"
  {esc}/21t                 report long-term message by {esc}"l{string}"
  {esc}/22t                 report title message by {esc}"t{string}"
  {esc}/29t                 report font {esc}"f{tips}/{face}"

  {esc}/31t                 activate select mode
  {esc}/31;{row};{col}t     activate select mode at row, col

  {esc}/>{opt};{opt};...h   set option numbers (opts = 1-32)
  {esc}/>{opt};{opt};...l   reset option numbers (opts = 1-32)
  {esc}/>{opt};{opt};...k   report options with {esc}/>{opt}l or {esc}/>{opt}h
  
  opt=1         report clicks as {esc}/31;{row};{col};{type};{clicks}t
  opt=2         report resizeing as {esc}/8;{rows};{cols}t
  opt=3         report iconifying as {esc}/1t or {esc}/2t
  opt=4         report a tag starting with a lower case letter as {esc}"m{tag}"
  opt=5         report when active window as {esc}/5t & inactive as {esc}/6t
  opt=6         report when button is released as {esc}/32;{row};{col};{type}t
  opt=7         report when the cursor position as {esc}/33;{row};{col};{type}t
        type: 1=Menu 2=Adjust 4=Select
        reports only get sent when not in EDIT mode (i.e. RAW mode)

  opt=8         enable dynamic sizing
  opt=9         enable menu dialog
  opt=10        enable multiple colors
  opt=11        enable vertical scrolling
  opt=12        enable horizontal scrolling
  opt=13        enable automatic scrolling
        scrolling doesn't work properly at this time
  opt=14        enable automatic wrap
  opt=15        enable automatic select
  opt=16        show scrollbars
  opt=17        disable ESC key, for apps that are using ESC codes,
                and don't want false ESC-codes
  opt=18        window inactive, this halts interaction until reset.
  opt=19        Busy pointer. This can be used with the above flag
                to provide feedback that the window is inactive.               

Upper case tags are reserved for Wterm, and lower case tags are
passed to the application, if option 4 is set.

TAGS for "wterm.dial"
    PO  Point to area
    CO  Copy area to clipboard
    AD  Append copy area to clipboard
    ST  Stuff selected area
    CA  Cancel Select operation
    PA  Paste from clipboard
    RD  Redraw Window
    PR  property dialog
    AB  About property

All other tags will search the "$HOME/windows/wterm.tags" then
the "wterm.tags" in the load directory of wterm_admin. The first
match that is found is executed. Macro expansion is performed on
the following tokens:

    @(FULL)     Filename of Full window snapshot
    @(AREA)     Filename of selected area, or full window if none selected
    @(SELECT)   Filename of Selected area
    @(TTYNID)   node of window that dialog was in
    @(DEV)      device name of window dialog was in e.g //1/dev/win1

FULL, AREA, and SELECT expand to a temporaty filename.
The file contains the text from the specified area.
Only one of these can be used in a command line. If multiple expansions
are needed a single '@' can be used for the current filename.
TTYNID, DEV can be used multiple times on a line.
The recommended format for these tags is an Upper-Case first character, 
and the rest in lower case. This avoids conflict with user tags and
internal wterm tags.
