v01i046: twm: Tom's Window Manager, Part01/07

Mike Wexler mikew at wyse.wyse.com
Fri Sep 23 09:23:44 AEST 1988


Submitted-by: toml%hpfctel at sde.hp.com (Tom LaStrange)
Posting-number: Volume 1, Issue 46
Archive-name: twm/part01

[I had several problems with this program but Tom couldn't reproduce
them, so here it is.]

#! /bin/sh
# This is a shell archive.  Remove anything before this line, then unpack
# it by saving it into a file and typing "sh file".  To overwrite existing
# files, type "sh file -c".  You can also feed this as standard input via
# unshar, or by typing "sh <file", e.g..  If this archive is complete, you
# will see the following message at the end:
#		"End of archive 1 (of 7)."
# Contents:  AUTHOR Imakefile README Sample.twmrc add_window.h events.h
#   focus.bm gc.h gram.h gray.bm hilite.bm iconify.bm list.h parse.h
#   patchlevel.h pull.bm resize.bm resize.h twm.bm util.h version.c
#   version.h xkeyname.c
# Wrapped by mikew at wyse on Thu Sep 22 16:21:21 1988
PATH=/bin:/usr/bin:/usr/ucb ; export PATH
if test -f 'AUTHOR' -a "${1}" != "-c" ; then 
  echo shar: Will not clobber existing file \"'AUTHOR'\"
else
echo shar: Extracting \"'AUTHOR'\" \(922 characters\)
sed "s/^X//" >'AUTHOR' <<'END_OF_FILE'
X(Message inbox:288)
XReturn-Path: toml%hpfctel at sde.hp.com
XReceived: from wyse  by x2.wyse.com (5.58/Wyse client/5-13-88)
X	id AA21557; Mon, 12 Sep 88 20:23:33 PDT
XReceived:  by wyse.wyse.com (5.58/Wyse master/5-13-88)
X	id AA07298; Mon, 12 Sep 88 20:22:49 PDT
XReceived: from RELAY.CS.NET by uunet.UU.NET (5.59/1.14) 
X	id AA12006; Mon, 12 Sep 88 13:09:48 EDT
XReceived: from hp-sde.sde.hp.com by RELAY.CS.NET id aa26556; 12 Sep 88 11:56 EDT
XReceived: from hpfcla.HP.COM by hp-sde ; Mon, 12 Sep 88 08:54:16 pdt
XReceived: from hpfcra.HP.COM by hpfcla.HP.COM; Mon, 12 Sep 88 09:36:11 mdt
XReceived: from hpfctel.HP.COM by hpfcra.HP.COM; Mon, 12 Sep 88 09:32:35 mdt
XReceived: by hpfctel.HP.COM; Mon, 12 Sep 88 09:33:37 mdt
XDate: Mon, 12 Sep 88 09:33:37 mdt
XFrom: Tom LaStrange <toml%hpfctel%sde.hp.com at RELAY.CS.NET>
XMessage-Id: <8809121533.AA16360 at hpfctel.HP.COM>
XTo: mikew%wyse.wyse.com at RELAY.CS.NET
XSubject: twm 4.0, part 1 of 5
X
END_OF_FILE
if test 922 -ne `wc -c <'AUTHOR'`; then
    echo shar: \"'AUTHOR'\" unpacked with wrong size!
fi
# end of 'AUTHOR'
fi
if test -f 'Imakefile' -a "${1}" != "-c" ; then 
  echo shar: Will not clobber existing file \"'Imakefile'\"
else
echo shar: Extracting \"'Imakefile'\" \(810 characters\)
sed "s/^X//" >'Imakefile' <<'END_OF_FILE'
X#
X#Here is an Imakefile for twm.  It depends on having TWMDIR defined
X#in Imake.tmpl.  I like to use Imakefiles for everything, and I am sure
X#other people do also, so perhaps you could do us all a favor and
X#distribute this one.
X#
X
X       PROGRAMS = twm
XLOCAL_LIBRARIES = $(XLIB)
X      OTHERSRCS = gram.y lex.l
X         YFLAGS = -d
X
XSRCS1=	add_window.c gc.c list.c twm.c parse.c\
X        menus.c events.c resize.c util.c version.c
X
XOBJS1=	gram.o lex.o add_window.o gc.o list.o twm.o parse.o\
X        menus.o events.o resize.o util.o version.o
X
XComplexProgramTarget_1(twm,$(LOCAL_LIBRARIES),)
X
XInstallNonExec(Sample.twmrc, $(TWMDIR))
XInstallNonExec(xterm.icon, $(TWMDIR))
X
Xgram.h gram.c: gram.y
X	yacc -d gram.y
X	mv y.tab.c gram.c
X	mv y.tab.h gram.h
X
Xclean::
X	$(RM) y.tab.h y.tab.c lex.yy.c gram.h gram.c lex.c
END_OF_FILE
if test 810 -ne `wc -c <'Imakefile'`; then
    echo shar: \"'Imakefile'\" unpacked with wrong size!
fi
# end of 'Imakefile'
fi
if test -f 'README' -a "${1}" != "-c" ; then 
  echo shar: Will not clobber existing file \"'README'\"
else
echo shar: Extracting \"'README'\" \(2153 characters\)
sed "s/^X//" >'README' <<'END_OF_FILE'
XHere are the changes to twm since revision 3.2.
X
X1.  You can now execute more than one twm function with a mouse
X    button press.  You do this by basically defining your own function
X    such as:
X
X	Function "raise-n-focus"
X	{
X	    f.raise
X	    f.focus
X	}
X
X    And then using it as follows:
X
X	Button2 = : window : f.function "raise-n-focus"
X
X
X2.  You can now tie twm functions to keys on the keyboard.  The syntax
X    in your .twmrc file is similar to the mouse button assignments:
X
X	"F1" =  : window : f.raise
X
X    I have included a short little program that will help figure
X    out what the server thinks the keys on your keyboard are called.
X    The program is called "xkeyname".
X
X4.  A "frame" context has been added for mouse and function key 
X    specifications.  This will be useful in moving/raising ... windows
X    using just the border.
X
X5.  I put border highlighting back in but you can turn it off if you
X    don't like it.  You can also selectively turn off border highlighting
X    by a list of window names.
X
X      NoHighlight   # by itself disables all highlighting
X      NoHighlight   # this will cause xclock to have a non-highlighted border
X      {
X	 "xclock"
X      }
X
X    The non-highlighted border will be rendered with a "grey" pixmap using
X    the following two new color specifiers.
X
X      BorderTileForground
X      BorderTileBackground
X
X6.  I added a f.beep function.  Guess what that does.
X
X7.  A DefaultFunction variable was added to be executed when a combination
X    of modifier keys and mouse buttons do not explicitly have a function.
X
X8.  You will notice that menus pop up to the left of the cursor now
X    rather than the right.  This takes a little getting used to but is
X    much cleaner for those of you using pull-right menus.
X
X9.  I now handle transient windows much better.
X
X10. I now handle windows moving and resizing themselves much better.
X
XSee the Makefile for the CFLAGS variable to use if you are compiling
Xthis on an HP machine running HP-UX.
X
X--
XTom LaStrange
X
XHewlett Packard Co.               ARPA: toml at hpfctel.hp.com
XGraphics Technology Division      UUCP: hplabs!hpfcla!hpfctel!toml
XFort Collins, CO
END_OF_FILE
if test 2153 -ne `wc -c <'README'`; then
    echo shar: \"'README'\" unpacked with wrong size!
fi
# end of 'README'
fi
if test -f 'Sample.twmrc' -a "${1}" != "-c" ; then 
  echo shar: Will not clobber existing file \"'Sample.twmrc'\"
else
echo shar: Extracting \"'Sample.twmrc'\" \(2735 characters\)
sed "s/^X//" >'Sample.twmrc' <<'END_OF_FILE'
X#**********************************************************************
X#
X#    .twmrc
X#
X#**********************************************************************
X
XWarpCursor
XBorderWidth	2
XTitleFont	"8x13"
XMenuFont	"8x13"
XIconFont	"8x13"
XResizeFont	"fg-22"
XNoTitleFocus
XZoom
X
XColor
X{
X    BorderColor "red"
X    BorderTileForeground "blue"
X    BorderTileBackground "yellow"
X    TitleForeground "white"
X    TitleBackground "blue"
X    MenuForeground "yellow"
X    MenuBackground "darkgreen"
X    MenuTitleForeground "red"
X    MenuTitleBackground "blue"
X    IconForeground "darkgreen"
X    IconBackground "cadetblue"
X    IconBorderColor "green"
X}
X
X#Button = KEYS : CONTEXT : FUNCTION
X#----------------------------------
XButton1 =      : root    : f.menu "button1"
XButton2 =      : root    : f.menu "button2"
XButton3 =      : root    : f.menu "button3"
XButton1 =  m   : window  : f.menu "button1"
XButton2 =  m   : window  : f.menu "button2"
XButton3 =  m   : window  : f.menu "button3"
XButton1 =  m   : title   : f.menu "button1"
XButton2 =  m   : title   : f.menu "button2"
XButton3 =  m   : title   : f.menu "button3"
XButton1 =      : title   : f.raise
XButton2 =      : title   : f.move
XButton3 =      : title   : t.lower
X
X"Clear" =      : window : f.refresh
X"Clear" =      : icon   : f.refresh
X"Clear" =      : title  : f.refresh
X"Clear" =      : frame  : f.refresh
X"Clear" =      : root   : f.refresh
X
X"ClearLine" =      : window : f.winrefresh
X"ClearLine" =      : frame  : f.winrefresh
X"ClearLine" =      : title  : f.winrefresh
X
XForceIcons
XIconDirectory	"~/icons"
XIcons
X{
X  "xterm"	"xterm.icon"    # obtained from IconDirectory
X  "xfd"		"xfd_icon"	# obtained from /usr/include/X11/bitmaps
X}
XUnknownIcon	"default.icon"
X
XNoHighlight
X{
X  "xclock"
X}
X
XNoTitle
X{
X  "xclock"
X  "xckmail"
X}
X
Xmenu "button1"
X{
X"Other Logins"	f.title
X"iguana"	!"xterm =80x24+100+100 -e rlogin iguana &"
X"worm"		!"xterm =80x24+100+100 &"
X"shiva"		!"xterm =80x24+200+200 -e rlogin shiva &"
X"tegus"		!"xterm =80x24+200+200 -e rlogin tegus &"
X}
X
Xmenu "button2"
X{
X"Window Ops"		f.title
X"Refresh"		f.refresh
X"Focus on Root"		f.unfocus
X"Source .twmrc"		f.twmrc
X"Source blob"		f.source "blob"
X"Cut File"		f.cutfile
X"twm Version"		f.version
X"(De)Iconify"		f.iconify
X"Move Window"		f.move
X"Resize Window"		f.resize
X"Raise Window"		f.raise
X"Lower Window"		f.lower
X"Focus on Window"	f.focus
X"Destroy Window"	f.destroy
X"Kill twm"		f.quit
X}
X
Xmenu "button3"
X{
X"Cut Buffer"		f.title
X"Procedure Header"	f.file "~/src/proc.twm"
X"File Header"		f.file "~/src/file.twm"
X"pull right"		f.menu "blob"
X}
X
Xmenu "blob"
X{
X"pull right"		f.menu "final"
X"another"		^"some text"
X}
X
Xmenu "final"
X{
X"Cut Buffer"		f.title
X"Procedure Header"	f.file "~/src/proc.twm"
X"File Header"		f.file "~/src/file.twm"
X}
END_OF_FILE
if test 2735 -ne `wc -c <'Sample.twmrc'`; then
    echo shar: \"'Sample.twmrc'\" unpacked with wrong size!
fi
# end of 'Sample.twmrc'
fi
if test -f 'add_window.h' -a "${1}" != "-c" ; then 
  echo shar: Will not clobber existing file \"'add_window.h'\"
else
echo shar: Extracting \"'add_window.h'\" \(2616 characters\)
sed "s/^X//" >'add_window.h' <<'END_OF_FILE'
X/*****************************************************************************/
X/**       Copyright 1988 by Evans & Sutherland Computer Corporation,        **/
X/**                          Salt Lake City, Utah                           **/
X/**                                                                         **/
X/**                           All Rights Reserved                           **/
X/**                                                                         **/
X/**    Permission to use, copy, modify, and distribute this software and    **/
X/**    its documentation  for  any  purpose  and  without  fee is hereby    **/
X/**    granted, provided that the above copyright notice appear  in  all    **/
X/**    copies and that both  that  copyright  notice  and  this  permis-    **/
X/**    sion  notice appear in supporting  documentation,  and  that  the    **/
X/**    name  of Evans & Sutherland  not be used in advertising or publi-    **/
X/**    city pertaining to distribution  of the software without  specif-    **/
X/**    ic, written prior permission.                                        **/
X/**                                                                         **/
X/**    EVANS  & SUTHERLAND  DISCLAIMS  ALL  WARRANTIES  WITH  REGARD  TO    **/
X/**    THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILI-    **/
X/**    TY AND FITNESS, IN NO EVENT SHALL EVANS &  SUTHERLAND  BE  LIABLE    **/
X/**    FOR  ANY  SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY  DAM-    **/
X/**    AGES  WHATSOEVER RESULTING FROM  LOSS OF USE,  DATA  OR  PROFITS,    **/
X/**    WHETHER   IN  AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS    **/
X/**    ACTION, ARISING OUT OF OR IN  CONNECTION  WITH  THE  USE  OR PER-    **/
X/**    FORMANCE OF THIS SOFTWARE.                                           **/
X/*****************************************************************************/
X
X/**********************************************************************
X *
X * $Header: add_window.h,v 1.9 88/08/25 16:29:26 toml Exp $
X *
X * AddWindow include file
X *
X * 31-Mar-88 Tom LaStrange        Initial Version.
X *
X **********************************************************************/
X
X#ifndef _ADD_WINDOW_
X#define _ADD_WINDOW_
X
Xextern char NoName[];
X
Xextern TwmWindow *AddWindow();
Xextern int MappedNotOverride();
Xextern void GrabAllButtons();
Xextern void GrabButtons();
Xextern void GrabKeys();
Xextern void UngrabAllButtons();
Xextern void UngrabButtons();
Xextern void UngrabKeys();
Xextern int AddingX;	
Xextern int AddingY;
Xextern int AddingW;
Xextern int AddingH;
X
X#endif _ADD_WINDOW_
X
END_OF_FILE
if test 2616 -ne `wc -c <'add_window.h'`; then
    echo shar: \"'add_window.h'\" unpacked with wrong size!
fi
# end of 'add_window.h'
fi
if test -f 'events.h' -a "${1}" != "-c" ; then 
  echo shar: Will not clobber existing file \"'events.h'\"
else
echo shar: Extracting \"'events.h'\" \(2967 characters\)
sed "s/^X//" >'events.h' <<'END_OF_FILE'
X/*****************************************************************************/
X/**       Copyright 1988 by Evans & Sutherland Computer Corporation,        **/
X/**                          Salt Lake City, Utah                           **/
X/**                                                                         **/
X/**                           All Rights Reserved                           **/
X/**                                                                         **/
X/**    Permission to use, copy, modify, and distribute this software and    **/
X/**    its documentation  for  any  purpose  and  without  fee is hereby    **/
X/**    granted, provided that the above copyright notice appear  in  all    **/
X/**    copies and that both  that  copyright  notice  and  this  permis-    **/
X/**    sion  notice appear in supporting  documentation,  and  that  the    **/
X/**    name  of Evans & Sutherland  not be used in advertising or publi-    **/
X/**    city pertaining to distribution  of the software without  specif-    **/
X/**    ic, written prior permission.                                        **/
X/**                                                                         **/
X/**    EVANS  & SUTHERLAND  DISCLAIMS  ALL  WARRANTIES  WITH  REGARD  TO    **/
X/**    THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILI-    **/
X/**    TY AND FITNESS, IN NO EVENT SHALL EVANS &  SUTHERLAND  BE  LIABLE    **/
X/**    FOR  ANY  SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY  DAM-    **/
X/**    AGES  WHATSOEVER RESULTING FROM  LOSS OF USE,  DATA  OR  PROFITS,    **/
X/**    WHETHER   IN  AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS    **/
X/**    ACTION, ARISING OUT OF OR IN  CONNECTION  WITH  THE  USE  OR PER-    **/
X/**    FORMANCE OF THIS SOFTWARE.                                           **/
X/*****************************************************************************/
X
X/***********************************************************************
X *
X * $Header: events.h,v 1.12 88/09/06 12:10:28 toml Exp $
X *
X * twm event handler include file
X *
X * 17-Nov-87 Thomas E. LaStrange		File created
X *
X ***********************************************************************/
X
X#ifndef _EVENTS_
X#define _EVENTS_
X
Xtypedef void (*event_proc)();
X
Xextern void HandleEvents();
Xextern void HandleExpose();
Xextern void HandleDestroyNotify();
Xextern void HandleMapRequest();
Xextern void HandleMapNotify();
Xextern void HandleUnmapNotify();
Xextern void HandleMotionNotify();
Xextern void HandleButtonRelease();
Xextern void HandleButtonPress();
Xextern void HandleEnterNotify();
Xextern void HandleLeaveNotify();
Xextern void HandleConfigureRequest();
Xextern void HandleClientMessage();
Xextern void HandlePropertyNotify();
Xextern void HandleKeyPress();
Xextern void HandleUnknown();
X
Xextern event_proc EventHandler[];
Xextern Window DragWindow;
Xextern int DragX;
Xextern int DragY;
Xextern int DragWidth;
Xextern int DragHeight;
X
X#endif _EVENTS_
END_OF_FILE
if test 2967 -ne `wc -c <'events.h'`; then
    echo shar: \"'events.h'\" unpacked with wrong size!
fi
# end of 'events.h'
fi
if test -f 'focus.bm' -a "${1}" != "-c" ; then 
  echo shar: Will not clobber existing file \"'focus.bm'\"
else
echo shar: Extracting \"'focus.bm'\" \(2188 characters\)
sed "s/^X//" >'focus.bm' <<'END_OF_FILE'
X
X/*****************************************************************************/
X/**       Copyright 1988 by Evans & Sutherland Computer Corporation,        **/
X/**                          Salt Lake City, Utah                           **/
X/**                                                                         **/
X/**                           All Rights Reserved                           **/
X/**                                                                         **/
X/**    Permission to use, copy, modify, and distribute this software and    **/
X/**    its documentation  for  any  purpose  and  without  fee is hereby    **/
X/**    granted, provided that the above copyright notice appear  in  all    **/
X/**    copies and that both  that  copyright  notice  and  this  permis-    **/
X/**    sion  notice appear in supporting  documentation,  and  that  the    **/
X/**    name  of Evans & Sutherland  not be used in advertising or publi-    **/
X/**    city pertaining to distribution  of the software without  specif-    **/
X/**    ic, written prior permission.                                        **/
X/**                                                                         **/
X/**    EVANS  & SUTHERLAND  DISCLAIMS  ALL  WARRANTIES  WITH  REGARD  TO    **/
X/**    THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILI-    **/
X/**    TY AND FITNESS, IN NO EVENT SHALL EVANS &  SUTHERLAND  BE  LIABLE    **/
X/**    FOR  ANY  SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY  DAM-    **/
X/**    AGES  WHATSOEVER RESULTING FROM  LOSS OF USE,  DATA  OR  PROFITS,    **/
X/**    WHETHER   IN  AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS    **/
X/**    ACTION, ARISING OUT OF OR IN  CONNECTION  WITH  THE  USE  OR PER-    **/
X/**    FORMANCE OF THIS SOFTWARE.                                           **/
X/*****************************************************************************/
X
X#define focus_width 16
X#define focus_height 15
Xstatic char focus_bits[] = {
X   0xff, 0x7f, 0x01, 0x40, 0x01, 0x40, 0x01, 0x40, 0xfd, 0x5f, 0x55, 0x55,
X   0xfd, 0x5f, 0x55, 0x55, 0xfd, 0x5f, 0x05, 0x50, 0xfd, 0x5f, 0x01, 0x40,
X   0x01, 0x40, 0x01, 0x40, 0xff, 0x7f};
END_OF_FILE
if test 2188 -ne `wc -c <'focus.bm'`; then
    echo shar: \"'focus.bm'\" unpacked with wrong size!
fi
# end of 'focus.bm'
fi
if test -f 'gc.h' -a "${1}" != "-c" ; then 
  echo shar: Will not clobber existing file \"'gc.h'\"
else
echo shar: Extracting \"'gc.h'\" \(2273 characters\)
sed "s/^X//" >'gc.h' <<'END_OF_FILE'
X/*****************************************************************************/
X/**       Copyright 1988 by Evans & Sutherland Computer Corporation,        **/
X/**                          Salt Lake City, Utah                           **/
X/**                                                                         **/
X/**                           All Rights Reserved                           **/
X/**                                                                         **/
X/**    Permission to use, copy, modify, and distribute this software and    **/
X/**    its documentation  for  any  purpose  and  without  fee is hereby    **/
X/**    granted, provided that the above copyright notice appear  in  all    **/
X/**    copies and that both  that  copyright  notice  and  this  permis-    **/
X/**    sion  notice appear in supporting  documentation,  and  that  the    **/
X/**    name  of Evans & Sutherland  not be used in advertising or publi-    **/
X/**    city pertaining to distribution  of the software without  specif-    **/
X/**    ic, written prior permission.                                        **/
X/**                                                                         **/
X/**    EVANS  & SUTHERLAND  DISCLAIMS  ALL  WARRANTIES  WITH  REGARD  TO    **/
X/**    THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILI-    **/
X/**    TY AND FITNESS, IN NO EVENT SHALL EVANS &  SUTHERLAND  BE  LIABLE    **/
X/**    FOR  ANY  SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY  DAM-    **/
X/**    AGES  WHATSOEVER RESULTING FROM  LOSS OF USE,  DATA  OR  PROFITS,    **/
X/**    WHETHER   IN  AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS    **/
X/**    ACTION, ARISING OUT OF OR IN  CONNECTION  WITH  THE  USE  OR PER-    **/
X/**    FORMANCE OF THIS SOFTWARE.                                           **/
X/*****************************************************************************/
X
X/**********************************************************************
X *
X * $Header: gc.h,v 1.3 88/04/26 08:03:04 tlastran Exp $
X *
X * GC related externs
X *
X *  8-Apr-88 Tom LaStrange        Initial Version.
X *
X **********************************************************************/
X
X#ifndef _GC_
X#define _GC_
X
Xextern void CreateGCs();
X
X#endif _GC_
END_OF_FILE
if test 2273 -ne `wc -c <'gc.h'`; then
    echo shar: \"'gc.h'\" unpacked with wrong size!
fi
# end of 'gc.h'
fi
if test -f 'gram.h' -a "${1}" != "-c" ; then 
  echo shar: Will not clobber existing file \"'gram.h'\"
else
echo shar: Extracting \"'gram.h'\" \(1974 characters\)
sed "s/^X//" >'gram.h' <<'END_OF_FILE'
X
Xtypedef union 
X{
X    int num;
X    char *ptr;
X} YYSTYPE;
Xextern YYSTYPE yylval;
X# define LB 257
X# define RB 258
X# define MENUS 259
X# define MENU 260
X# define BUTTON 261
X# define TBUTTON 262
X# define DEFAULT_FUNCTION 263
X# define F_MENU 264
X# define F_UNFOCUS 265
X# define F_REFRESH 266
X# define F_FILE 267
X# define F_TWMRC 268
X# define F_CIRCLEUP 269
X# define F_QUIT 270
X# define F_NOP 271
X# define F_TITLE 272
X# define F_VERSION 273
X# define F_EXEC 274
X# define F_CUT 275
X# define F_CIRCLEDOWN 276
X# define F_SOURCE 277
X# define F_CUTFILE 278
X# define F_MOVE 279
X# define F_ICONIFY 280
X# define F_FOCUS 281
X# define F_RESIZE 282
X# define F_RAISE 283
X# define F_LOWER 284
X# define F_DESTROY 285
X# define F_WINREFRESH 286
X# define F_BEEP 287
X# define DONT_MOVE_OFF 288
X# define ZOOM 289
X# define WARPCURSOR 290
X# define NUMBER 291
X# define BORDERWIDTH 292
X# define TITLE_FONT 293
X# define REVERSE_VIDEO 294
X# define RESIZE_FONT 295
X# define NO_TITLE 296
X# define AUTO_RAISE 297
X# define FORCE_ICON 298
X# define NO_HILITE 299
X# define MENU_FONT 300
X# define ICON_FONT 301
X# define UNKNOWN_ICON 302
X# define ICONS 303
X# define ICON_DIRECTORY 304
X# define META 305
X# define SHIFT 306
X# define CONTROL 307
X# define WINDOW 308
X# define TITLE 309
X# define ICON 310
X# define ROOT 311
X# define FRAME 312
X# define COLON 313
X# define EQUALS 314
X# define BORDER_COLOR 315
X# define TITLE_FOREGROUND 316
X# define TITLE_BACKGROUND 317
X# define MENU_FOREGROUND 318
X# define MENU_BACKGROUND 319
X# define MENU_SHADOW_COLOR 320
X# define MENU_TITLE_FOREGROUND 321
X# define MENU_TITLE_BACKGROUND 322
X# define ICON_FOREGROUND 323
X# define ICON_BACKGROUND 324
X# define ICON_BORDER_COLOR 325
X# define NO_RAISE_ON_MOVE 326
X# define NO_RAISE_ON_DEICONIFY 327
X# define NO_RAISE_ON_RESIZE 328
X# define COLOR 329
X# define MONOCHROME 330
X# define NO_TITLE_FOCUS 331
X# define FUNCTION 332
X# define F_FUNCTION 333
X# define BORDER_TILE_FOREGROUND 334
X# define BORDER_TILE_BACKGROUND 335
X# define STRING 336
END_OF_FILE
if test 1974 -ne `wc -c <'gram.h'`; then
    echo shar: \"'gram.h'\" unpacked with wrong size!
fi
# end of 'gram.h'
fi
if test -f 'gray.bm' -a "${1}" != "-c" ; then 
  echo shar: Will not clobber existing file \"'gray.bm'\"
else
echo shar: Extracting \"'gray.bm'\" \(312 characters\)
sed "s/^X//" >'gray.bm' <<'END_OF_FILE'
X/* @(#)gray.ic	X10/6.6	11/3/86 */
X#define gray_width 16
X#define gray_height 16
Xstatic char gray_bits[] = {
X   0x55, 0x55, 0xaa, 0xaa, 0x55, 0x55, 0xaa, 0xaa,
X   0x55, 0x55, 0xaa, 0xaa, 0x55, 0x55, 0xaa, 0xaa,
X   0x55, 0x55, 0xaa, 0xaa, 0x55, 0x55, 0xaa, 0xaa,
X   0x55, 0x55, 0xaa, 0xaa, 0x55, 0x55, 0xaa, 0xaa};
END_OF_FILE
if test 312 -ne `wc -c <'gray.bm'`; then
    echo shar: \"'gray.bm'\" unpacked with wrong size!
fi
# end of 'gray.bm'
fi
if test -f 'hilite.bm' -a "${1}" != "-c" ; then 
  echo shar: Will not clobber existing file \"'hilite.bm'\"
else
echo shar: Extracting \"'hilite.bm'\" \(2202 characters\)
sed "s/^X//" >'hilite.bm' <<'END_OF_FILE'
X/*****************************************************************************/
X/**       Copyright 1988 by Evans & Sutherland Computer Corporation,        **/
X/**                          Salt Lake City, Utah                           **/
X/**                                                                         **/
X/**                           All Rights Reserved                           **/
X/**                                                                         **/
X/**    Permission to use, copy, modify, and distribute this software and    **/
X/**    its documentation  for  any  purpose  and  without  fee is hereby    **/
X/**    granted, provided that the above copyright notice appear  in  all    **/
X/**    copies and that both  that  copyright  notice  and  this  permis-    **/
X/**    sion  notice appear in supporting  documentation,  and  that  the    **/
X/**    name  of Evans & Sutherland  not be used in advertising or publi-    **/
X/**    city pertaining to distribution  of the software without  specif-    **/
X/**    ic, written prior permission.                                        **/
X/**                                                                         **/
X/**    EVANS  & SUTHERLAND  DISCLAIMS  ALL  WARRANTIES  WITH  REGARD  TO    **/
X/**    THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILI-    **/
X/**    TY AND FITNESS, IN NO EVENT SHALL EVANS &  SUTHERLAND  BE  LIABLE    **/
X/**    FOR  ANY  SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY  DAM-    **/
X/**    AGES  WHATSOEVER RESULTING FROM  LOSS OF USE,  DATA  OR  PROFITS,    **/
X/**    WHETHER   IN  AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS    **/
X/**    ACTION, ARISING OUT OF OR IN  CONNECTION  WITH  THE  USE  OR PER-    **/
X/**    FORMANCE OF THIS SOFTWARE.                                           **/
X/*****************************************************************************/
X
X#define hilite_width 16
X#define hilite_height 16
Xstatic char hilite_bits[] = {
X   0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00,
X   0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00,
X   0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
END_OF_FILE
if test 2202 -ne `wc -c <'hilite.bm'`; then
    echo shar: \"'hilite.bm'\" unpacked with wrong size!
fi
# end of 'hilite.bm'
fi
if test -f 'iconify.bm' -a "${1}" != "-c" ; then 
  echo shar: Will not clobber existing file \"'iconify.bm'\"
else
echo shar: Extracting \"'iconify.bm'\" \(2194 characters\)
sed "s/^X//" >'iconify.bm' <<'END_OF_FILE'
X
X/*****************************************************************************/
X/**       Copyright 1988 by Evans & Sutherland Computer Corporation,        **/
X/**                          Salt Lake City, Utah                           **/
X/**                                                                         **/
X/**                           All Rights Reserved                           **/
X/**                                                                         **/
X/**    Permission to use, copy, modify, and distribute this software and    **/
X/**    its documentation  for  any  purpose  and  without  fee is hereby    **/
X/**    granted, provided that the above copyright notice appear  in  all    **/
X/**    copies and that both  that  copyright  notice  and  this  permis-    **/
X/**    sion  notice appear in supporting  documentation,  and  that  the    **/
X/**    name  of Evans & Sutherland  not be used in advertising or publi-    **/
X/**    city pertaining to distribution  of the software without  specif-    **/
X/**    ic, written prior permission.                                        **/
X/**                                                                         **/
X/**    EVANS  & SUTHERLAND  DISCLAIMS  ALL  WARRANTIES  WITH  REGARD  TO    **/
X/**    THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILI-    **/
X/**    TY AND FITNESS, IN NO EVENT SHALL EVANS &  SUTHERLAND  BE  LIABLE    **/
X/**    FOR  ANY  SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY  DAM-    **/
X/**    AGES  WHATSOEVER RESULTING FROM  LOSS OF USE,  DATA  OR  PROFITS,    **/
X/**    WHETHER   IN  AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS    **/
X/**    ACTION, ARISING OUT OF OR IN  CONNECTION  WITH  THE  USE  OR PER-    **/
X/**    FORMANCE OF THIS SOFTWARE.                                           **/
X/*****************************************************************************/
X
X#define iconify_width 16
X#define iconify_height 15
Xstatic char iconify_bits[] = {
X   0xff, 0x7f, 0x01, 0x40, 0x7d, 0x5f, 0x7d, 0x5f, 0x7d, 0x5f, 0x7d, 0x5f,
X   0x7d, 0x5f, 0x01, 0x40, 0x7d, 0x5f, 0x7d, 0x5f, 0x7d, 0x5f, 0x7d, 0x5f,
X   0x7d, 0x5f, 0x01, 0x40, 0xff, 0x7f};
END_OF_FILE
if test 2194 -ne `wc -c <'iconify.bm'`; then
    echo shar: \"'iconify.bm'\" unpacked with wrong size!
fi
# end of 'iconify.bm'
fi
if test -f 'list.h' -a "${1}" != "-c" ; then 
  echo shar: Will not clobber existing file \"'list.h'\"
else
echo shar: Extracting \"'list.h'\" \(2329 characters\)
sed "s/^X//" >'list.h' <<'END_OF_FILE'
X/*****************************************************************************/
X/**       Copyright 1988 by Evans & Sutherland Computer Corporation,        **/
X/**                          Salt Lake City, Utah                           **/
X/**                                                                         **/
X/**                           All Rights Reserved                           **/
X/**                                                                         **/
X/**    Permission to use, copy, modify, and distribute this software and    **/
X/**    its documentation  for  any  purpose  and  without  fee is hereby    **/
X/**    granted, provided that the above copyright notice appear  in  all    **/
X/**    copies and that both  that  copyright  notice  and  this  permis-    **/
X/**    sion  notice appear in supporting  documentation,  and  that  the    **/
X/**    name  of Evans & Sutherland  not be used in advertising or publi-    **/
X/**    city pertaining to distribution  of the software without  specif-    **/
X/**    ic, written prior permission.                                        **/
X/**                                                                         **/
X/**    EVANS  & SUTHERLAND  DISCLAIMS  ALL  WARRANTIES  WITH  REGARD  TO    **/
X/**    THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILI-    **/
X/**    TY AND FITNESS, IN NO EVENT SHALL EVANS &  SUTHERLAND  BE  LIABLE    **/
X/**    FOR  ANY  SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY  DAM-    **/
X/**    AGES  WHATSOEVER RESULTING FROM  LOSS OF USE,  DATA  OR  PROFITS,    **/
X/**    WHETHER   IN  AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS    **/
X/**    ACTION, ARISING OUT OF OR IN  CONNECTION  WITH  THE  USE  OR PER-    **/
X/**    FORMANCE OF THIS SOFTWARE.                                           **/
X/*****************************************************************************/
X
X/**********************************************************************
X *
X * $Header: list.h,v 1.4 88/05/06 10:26:37 tlastran Exp $
X *
X * TWM list handling external definitions
X *
X * 11-Apr-88 Tom LaStrange        Initial Version.
X *
X **********************************************************************/
X
X#ifndef _LIST_
X#define _LIST_
X
Xextern void AddToList();
Xextern char* LookInList();
X
X#endif _LIST_
X
END_OF_FILE
if test 2329 -ne `wc -c <'list.h'`; then
    echo shar: \"'list.h'\" unpacked with wrong size!
fi
# end of 'list.h'
fi
if test -f 'parse.h' -a "${1}" != "-c" ; then 
  echo shar: Will not clobber existing file \"'parse.h'\"
else
echo shar: Extracting \"'parse.h'\" \(2363 characters\)
sed "s/^X//" >'parse.h' <<'END_OF_FILE'
X/*****************************************************************************/
X/**       Copyright 1988 by Evans & Sutherland Computer Corporation,        **/
X/**                          Salt Lake City, Utah                           **/
X/**                                                                         **/
X/**                           All Rights Reserved                           **/
X/**                                                                         **/
X/**    Permission to use, copy, modify, and distribute this software and    **/
X/**    its documentation  for  any  purpose  and  without  fee is hereby    **/
X/**    granted, provided that the above copyright notice appear  in  all    **/
X/**    copies and that both  that  copyright  notice  and  this  permis-    **/
X/**    sion  notice appear in supporting  documentation,  and  that  the    **/
X/**    name  of Evans & Sutherland  not be used in advertising or publi-    **/
X/**    city pertaining to distribution  of the software without  specif-    **/
X/**    ic, written prior permission.                                        **/
X/**                                                                         **/
X/**    EVANS  & SUTHERLAND  DISCLAIMS  ALL  WARRANTIES  WITH  REGARD  TO    **/
X/**    THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILI-    **/
X/**    TY AND FITNESS, IN NO EVENT SHALL EVANS &  SUTHERLAND  BE  LIABLE    **/
X/**    FOR  ANY  SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY  DAM-    **/
X/**    AGES  WHATSOEVER RESULTING FROM  LOSS OF USE,  DATA  OR  PROFITS,    **/
X/**    WHETHER   IN  AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS    **/
X/**    ACTION, ARISING OUT OF OR IN  CONNECTION  WITH  THE  USE  OR PER-    **/
X/**    FORMANCE OF THIS SOFTWARE.                                           **/
X/*****************************************************************************/
X
X/**********************************************************************
X *
X * $Header: parse.h,v 1.3 88/04/26 08:03:18 tlastran Exp $
X *
X * .twmrc parsing externs
X *
X *  8-Apr-88 Tom LaStrange        Initial Version.
X *
X **********************************************************************/
X
X#ifndef _PARSE_
X#define _PARSE_
X
Xextern void ParseTwmrc();
Xextern char TwmInput();
Xextern void TwmUnput();
Xextern void TwmOutput();
X
X#endif _PARSE_
END_OF_FILE
if test 2363 -ne `wc -c <'parse.h'`; then
    echo shar: \"'parse.h'\" unpacked with wrong size!
fi
# end of 'parse.h'
fi
if test -f 'patchlevel.h' -a "${1}" != "-c" ; then 
  echo shar: Will not clobber existing file \"'patchlevel.h'\"
else
echo shar: Extracting \"'patchlevel.h'\" \(21 characters\)
sed "s/^X//" >'patchlevel.h' <<'END_OF_FILE'
X#define PATCHLEVEL 0
END_OF_FILE
if test 21 -ne `wc -c <'patchlevel.h'`; then
    echo shar: \"'patchlevel.h'\" unpacked with wrong size!
fi
# end of 'patchlevel.h'
fi
if test -f 'pull.bm' -a "${1}" != "-c" ; then 
  echo shar: Will not clobber existing file \"'pull.bm'\"
else
echo shar: Extracting \"'pull.bm'\" \(2197 characters\)
sed "s/^X//" >'pull.bm' <<'END_OF_FILE'
X
X/*****************************************************************************/
X/**       Copyright 1988 by Evans & Sutherland Computer Corporation,        **/
X/**                          Salt Lake City, Utah                           **/
X/**                                                                         **/
X/**                           All Rights Reserved                           **/
X/**                                                                         **/
X/**    Permission to use, copy, modify, and distribute this software and    **/
X/**    its documentation  for  any  purpose  and  without  fee is hereby    **/
X/**    granted, provided that the above copyright notice appear  in  all    **/
X/**    copies and that both  that  copyright  notice  and  this  permis-    **/
X/**    sion  notice appear in supporting  documentation,  and  that  the    **/
X/**    name  of Evans & Sutherland  not be used in advertising or publi-    **/
X/**    city pertaining to distribution  of the software without  specif-    **/
X/**    ic, written prior permission.                                        **/
X/**                                                                         **/
X/**    EVANS  & SUTHERLAND  DISCLAIMS  ALL  WARRANTIES  WITH  REGARD  TO    **/
X/**    THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILI-    **/
X/**    TY AND FITNESS, IN NO EVENT SHALL EVANS &  SUTHERLAND  BE  LIABLE    **/
X/**    FOR  ANY  SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY  DAM-    **/
X/**    AGES  WHATSOEVER RESULTING FROM  LOSS OF USE,  DATA  OR  PROFITS,    **/
X/**    WHETHER   IN  AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS    **/
X/**    ACTION, ARISING OUT OF OR IN  CONNECTION  WITH  THE  USE  OR PER-    **/
X/**    FORMANCE OF THIS SOFTWARE.                                           **/
X/*****************************************************************************/
X
X#define pull_width 16
X#define pull_height 16
Xstatic char pull_bits[] = {
X   0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x0c, 0x00, 0x1c, 0xff, 0x3f,
X   0xff, 0x7f, 0xff, 0xff, 0xff, 0x7f, 0xff, 0x3f, 0x00, 0x1c, 0x00, 0x0c,
X   0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
END_OF_FILE
if test 2197 -ne `wc -c <'pull.bm'`; then
    echo shar: \"'pull.bm'\" unpacked with wrong size!
fi
# end of 'pull.bm'
fi
if test -f 'resize.bm' -a "${1}" != "-c" ; then 
  echo shar: Will not clobber existing file \"'resize.bm'\"
else
echo shar: Extracting \"'resize.bm'\" \(2191 characters\)
sed "s/^X//" >'resize.bm' <<'END_OF_FILE'
X
X/*****************************************************************************/
X/**       Copyright 1988 by Evans & Sutherland Computer Corporation,        **/
X/**                          Salt Lake City, Utah                           **/
X/**                                                                         **/
X/**                           All Rights Reserved                           **/
X/**                                                                         **/
X/**    Permission to use, copy, modify, and distribute this software and    **/
X/**    its documentation  for  any  purpose  and  without  fee is hereby    **/
X/**    granted, provided that the above copyright notice appear  in  all    **/
X/**    copies and that both  that  copyright  notice  and  this  permis-    **/
X/**    sion  notice appear in supporting  documentation,  and  that  the    **/
X/**    name  of Evans & Sutherland  not be used in advertising or publi-    **/
X/**    city pertaining to distribution  of the software without  specif-    **/
X/**    ic, written prior permission.                                        **/
X/**                                                                         **/
X/**    EVANS  & SUTHERLAND  DISCLAIMS  ALL  WARRANTIES  WITH  REGARD  TO    **/
X/**    THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILI-    **/
X/**    TY AND FITNESS, IN NO EVENT SHALL EVANS &  SUTHERLAND  BE  LIABLE    **/
X/**    FOR  ANY  SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY  DAM-    **/
X/**    AGES  WHATSOEVER RESULTING FROM  LOSS OF USE,  DATA  OR  PROFITS,    **/
X/**    WHETHER   IN  AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS    **/
X/**    ACTION, ARISING OUT OF OR IN  CONNECTION  WITH  THE  USE  OR PER-    **/
X/**    FORMANCE OF THIS SOFTWARE.                                           **/
X/*****************************************************************************/
X
X#define resize_width 16
X#define resize_height 15
Xstatic char resize_bits[] = {
X   0xff, 0x7f, 0x01, 0x40, 0x01, 0x40, 0x01, 0x40, 0xff, 0x47, 0x01, 0x44,
X   0x01, 0x44, 0x01, 0x44, 0x7f, 0x44, 0x41, 0x44, 0x41, 0x44, 0x41, 0x44,
X   0x41, 0x44, 0x41, 0x44, 0xff, 0x7f};
END_OF_FILE
if test 2191 -ne `wc -c <'resize.bm'`; then
    echo shar: \"'resize.bm'\" unpacked with wrong size!
fi
# end of 'resize.bm'
fi
if test -f 'resize.h' -a "${1}" != "-c" ; then 
  echo shar: Will not clobber existing file \"'resize.h'\"
else
echo shar: Extracting \"'resize.h'\" \(2481 characters\)
sed "s/^X//" >'resize.h' <<'END_OF_FILE'
X/*****************************************************************************/
X/**       Copyright 1988 by Evans & Sutherland Computer Corporation,        **/
X/**                          Salt Lake City, Utah                           **/
X/**                                                                         **/
X/**                           All Rights Reserved                           **/
X/**                                                                         **/
X/**    Permission to use, copy, modify, and distribute this software and    **/
X/**    its documentation  for  any  purpose  and  without  fee is hereby    **/
X/**    granted, provided that the above copyright notice appear  in  all    **/
X/**    copies and that both  that  copyright  notice  and  this  permis-    **/
X/**    sion  notice appear in supporting  documentation,  and  that  the    **/
X/**    name  of Evans & Sutherland  not be used in advertising or publi-    **/
X/**    city pertaining to distribution  of the software without  specif-    **/
X/**    ic, written prior permission.                                        **/
X/**                                                                         **/
X/**    EVANS  & SUTHERLAND  DISCLAIMS  ALL  WARRANTIES  WITH  REGARD  TO    **/
X/**    THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILI-    **/
X/**    TY AND FITNESS, IN NO EVENT SHALL EVANS &  SUTHERLAND  BE  LIABLE    **/
X/**    FOR  ANY  SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY  DAM-    **/
X/**    AGES  WHATSOEVER RESULTING FROM  LOSS OF USE,  DATA  OR  PROFITS,    **/
X/**    WHETHER   IN  AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS    **/
X/**    ACTION, ARISING OUT OF OR IN  CONNECTION  WITH  THE  USE  OR PER-    **/
X/**    FORMANCE OF THIS SOFTWARE.                                           **/
X/*****************************************************************************/
X
X/**********************************************************************
X *
X * $Header: resize.h,v 1.6 88/05/31 08:02:07 tlastran Exp $
X *
X * resize function externs
X *
X *  8-Apr-88 Tom LaStrange        Initial Version.
X *
X **********************************************************************/
X
X#ifndef _RESIZE_
X#define _RESIZE_
X
Xextern void StartResize();
Xextern void AddStartResize();
Xextern void DoResize();
Xextern void DisplaySize();
Xextern void EndResize();
Xextern void AddEndResize();
Xextern void SetupWindow();
Xextern void SetHints();
X
X#endif _RESIZE_
END_OF_FILE
if test 2481 -ne `wc -c <'resize.h'`; then
    echo shar: \"'resize.h'\" unpacked with wrong size!
fi
# end of 'resize.h'
fi
if test -f 'twm.bm' -a "${1}" != "-c" ; then 
  echo shar: Will not clobber existing file \"'twm.bm'\"
else
echo shar: Extracting \"'twm.bm'\" \(2556 characters\)
sed "s/^X//" >'twm.bm' <<'END_OF_FILE'
X/*****************************************************************************/
X/**       Copyright 1988 by Evans & Sutherland Computer Corporation,        **/
X/**                          Salt Lake City, Utah                           **/
X/**                                                                         **/
X/**                           All Rights Reserved                           **/
X/**                                                                         **/
X/**    Permission to use, copy, modify, and distribute this software and    **/
X/**    its documentation  for  any  purpose  and  without  fee is hereby    **/
X/**    granted, provided that the above copyright notice appear  in  all    **/
X/**    copies and that both  that  copyright  notice  and  this  permis-    **/
X/**    sion  notice appear in supporting  documentation,  and  that  the    **/
X/**    name  of Evans & Sutherland  not be used in advertising or publi-    **/
X/**    city pertaining to distribution  of the software without  specif-    **/
X/**    ic, written prior permission.                                        **/
X/**                                                                         **/
X/**    EVANS  & SUTHERLAND  DISCLAIMS  ALL  WARRANTIES  WITH  REGARD  TO    **/
X/**    THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILI-    **/
X/**    TY AND FITNESS, IN NO EVENT SHALL EVANS &  SUTHERLAND  BE  LIABLE    **/
X/**    FOR  ANY  SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY  DAM-    **/
X/**    AGES  WHATSOEVER RESULTING FROM  LOSS OF USE,  DATA  OR  PROFITS,    **/
X/**    WHETHER   IN  AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS    **/
X/**    ACTION, ARISING OUT OF OR IN  CONNECTION  WITH  THE  USE  OR PER-    **/
X/**    FORMANCE OF THIS SOFTWARE.                                           **/
X/*****************************************************************************/
X
X#define twm_width 48
X#define twm_height 15
Xstatic char twm_bits[] = {
X   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfc, 0xff, 0xff, 0xff, 0xff, 0x0f,
X   0xfe, 0xff, 0xff, 0xff, 0xff, 0x1f, 0x80, 0x01, 0x00, 0x00, 0x00, 0x00,
X   0xc0, 0x0c, 0x0c, 0xcc, 0xc0, 0x00, 0xc0, 0x0c, 0x0c, 0xcc, 0xc0, 0x00,
X   0x60, 0x18, 0x1e, 0xe6, 0xe1, 0x01, 0x60, 0x18, 0x1e, 0xe6, 0xe1, 0x01,
X   0x30, 0x30, 0x33, 0x33, 0x33, 0x03, 0x30, 0x30, 0x33, 0x33, 0x33, 0x03,
X   0x18, 0xe0, 0xe1, 0x19, 0x1e, 0x06, 0x18, 0xe0, 0xe1, 0x19, 0x1e, 0x06,
X   0x0c, 0xc0, 0xc0, 0x0c, 0x0c, 0x0c, 0x0c, 0xc0, 0xc0, 0x0c, 0x0c, 0x0c,
X   0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
END_OF_FILE
if test 2556 -ne `wc -c <'twm.bm'`; then
    echo shar: \"'twm.bm'\" unpacked with wrong size!
fi
# end of 'twm.bm'
fi
if test -f 'util.h' -a "${1}" != "-c" ; then 
  echo shar: Will not clobber existing file \"'util.h'\"
else
echo shar: Extracting \"'util.h'\" \(2467 characters\)
sed "s/^X//" >'util.h' <<'END_OF_FILE'
X/*****************************************************************************/
X/**       Copyright 1988 by Evans & Sutherland Computer Corporation,        **/
X/**                          Salt Lake City, Utah                           **/
X/**                                                                         **/
X/**                           All Rights Reserved                           **/
X/**                                                                         **/
X/**    Permission to use, copy, modify, and distribute this software and    **/
X/**    its documentation  for  any  purpose  and  without  fee is hereby    **/
X/**    granted, provided that the above copyright notice appear  in  all    **/
X/**    copies and that both  that  copyright  notice  and  this  permis-    **/
X/**    sion  notice appear in supporting  documentation,  and  that  the    **/
X/**    name  of Evans & Sutherland  not be used in advertising or publi-    **/
X/**    city pertaining to distribution  of the software without  specif-    **/
X/**    ic, written prior permission.                                        **/
X/**                                                                         **/
X/**    EVANS  & SUTHERLAND  DISCLAIMS  ALL  WARRANTIES  WITH  REGARD  TO    **/
X/**    THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILI-    **/
X/**    TY AND FITNESS, IN NO EVENT SHALL EVANS &  SUTHERLAND  BE  LIABLE    **/
X/**    FOR  ANY  SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY  DAM-    **/
X/**    AGES  WHATSOEVER RESULTING FROM  LOSS OF USE,  DATA  OR  PROFITS,    **/
X/**    WHETHER   IN  AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS    **/
X/**    ACTION, ARISING OUT OF OR IN  CONNECTION  WITH  THE  USE  OR PER-    **/
X/**    FORMANCE OF THIS SOFTWARE.                                           **/
X/*****************************************************************************/
X
X/***********************************************************************
X *
X * $Header: util.h,v 1.8 88/05/31 08:02:11 tlastran Exp $
X *
X * utility routines header file
X *
X * 28-Oct-87 Thomas E. LaStrange		File created
X *
X ***********************************************************************/
X
X#ifndef _UTIL_
X#define _UTIL_
X
Xextern void	MoveOutline();
Xextern Pixmap	MakePixmap();
Xextern Pixmap	MakeCenteredPixmap();
Xextern Pixmap	GetBitmap();
Xextern void	GetUnknownIcon();
Xextern char 	*ExpandFilename();
Xextern int	GetColor();
X
X#endif _UTIL_
END_OF_FILE
if test 2467 -ne `wc -c <'util.h'`; then
    echo shar: \"'util.h'\" unpacked with wrong size!
fi
# end of 'util.h'
fi
if test -f 'version.c' -a "${1}" != "-c" ; then 
  echo shar: Will not clobber existing file \"'version.c'\"
else
echo shar: Extracting \"'version.c'\" \(2534 characters\)
sed "s/^X//" >'version.c' <<'END_OF_FILE'
X/*****************************************************************************/
X/**       Copyright 1988 by Evans & Sutherland Computer Corporation,        **/
X/**                          Salt Lake City, Utah                           **/
X/**                                                                         **/
X/**                           All Rights Reserved                           **/
X/**                                                                         **/
X/**    Permission to use, copy, modify, and distribute this software and    **/
X/**    its documentation  for  any  purpose  and  without  fee is hereby    **/
X/**    granted, provided that the above copyright notice appear  in  all    **/
X/**    copies and that both  that  copyright  notice  and  this  permis-    **/
X/**    sion  notice appear in supporting  documentation,  and  that  the    **/
X/**    name  of Evans & Sutherland  not be used in advertising or publi-    **/
X/**    city pertaining to distribution  of the software without  specif-    **/
X/**    ic, written prior permission.                                        **/
X/**                                                                         **/
X/**    EVANS  & SUTHERLAND  DISCLAIMS  ALL  WARRANTIES  WITH  REGARD  TO    **/
X/**    THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILI-    **/
X/**    TY AND FITNESS, IN NO EVENT SHALL EVANS &  SUTHERLAND  BE  LIABLE    **/
X/**    FOR  ANY  SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY  DAM-    **/
X/**    AGES  WHATSOEVER RESULTING FROM  LOSS OF USE,  DATA  OR  PROFITS,    **/
X/**    WHETHER   IN  AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS    **/
X/**    ACTION, ARISING OUT OF OR IN  CONNECTION  WITH  THE  USE  OR PER-    **/
X/**    FORMANCE OF THIS SOFTWARE.                                           **/
X/*****************************************************************************/
X
X/***********************************************************************
X *
X * $Header: version.c,v 4.0 88/09/09 12:02:35 toml Exp $
X *
X * twm version number
X *
X * 14-Dec-87 Thomas E. LaStrange		File created
X *
X ***********************************************************************/
X
Xstatic char RCSinfo[]=
X"$Header: version.c,v 4.0 88/09/09 12:02:35 toml Exp $";
X
Xchar *Revision = "$Revision: 4.0 $";
Xchar *Date = "$Date: 88/09/09 12:02:35 $";
X
X/* the following strings are for the SCCS "what" command */
X
Xchar *WhatRevision = "@(#)twm $Revision: 4.0 $";
Xchar *WhatDate = "@(#)twm $Date: 88/09/09 12:02:35 $";
END_OF_FILE
if test 2534 -ne `wc -c <'version.c'`; then
    echo shar: \"'version.c'\" unpacked with wrong size!
fi
# end of 'version.c'
fi
if test -f 'version.h' -a "${1}" != "-c" ; then 
  echo shar: Will not clobber existing file \"'version.h'\"
else
echo shar: Extracting \"'version.h'\" \(2311 characters\)
sed "s/^X//" >'version.h' <<'END_OF_FILE'
X/*****************************************************************************/
X/**       Copyright 1988 by Evans & Sutherland Computer Corporation,        **/
X/**                          Salt Lake City, Utah                           **/
X/**                                                                         **/
X/**                           All Rights Reserved                           **/
X/**                                                                         **/
X/**    Permission to use, copy, modify, and distribute this software and    **/
X/**    its documentation  for  any  purpose  and  without  fee is hereby    **/
X/**    granted, provided that the above copyright notice appear  in  all    **/
X/**    copies and that both  that  copyright  notice  and  this  permis-    **/
X/**    sion  notice appear in supporting  documentation,  and  that  the    **/
X/**    name  of Evans & Sutherland  not be used in advertising or publi-    **/
X/**    city pertaining to distribution  of the software without  specif-    **/
X/**    ic, written prior permission.                                        **/
X/**                                                                         **/
X/**    EVANS  & SUTHERLAND  DISCLAIMS  ALL  WARRANTIES  WITH  REGARD  TO    **/
X/**    THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILI-    **/
X/**    TY AND FITNESS, IN NO EVENT SHALL EVANS &  SUTHERLAND  BE  LIABLE    **/
X/**    FOR  ANY  SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY  DAM-    **/
X/**    AGES  WHATSOEVER RESULTING FROM  LOSS OF USE,  DATA  OR  PROFITS,    **/
X/**    WHETHER   IN  AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS    **/
X/**    ACTION, ARISING OUT OF OR IN  CONNECTION  WITH  THE  USE  OR PER-    **/
X/**    FORMANCE OF THIS SOFTWARE.                                           **/
X/*****************************************************************************/
X
X/**********************************************************************
X *
X * $Header: version.h,v 1.3 88/04/26 08:03:19 tlastran Exp $
X *
X * TWM version externs
X *
X *  8-Apr-88 Tom LaStrange        Initial Version.
X *
X **********************************************************************/
X
X#ifndef _VERSION_
X#define _VERSION_
X
Xextern char *Revision;
Xextern char *Date;
X
X#endif _VERSION_
END_OF_FILE
if test 2311 -ne `wc -c <'version.h'`; then
    echo shar: \"'version.h'\" unpacked with wrong size!
fi
# end of 'version.h'
fi
if test -f 'xkeyname.c' -a "${1}" != "-c" ; then 
  echo shar: Will not clobber existing file \"'xkeyname.c'\"
else
echo shar: Extracting \"'xkeyname.c'\" \(1107 characters\)
sed "s/^X//" >'xkeyname.c' <<'END_OF_FILE'
X/***********************************************************************
X *
X * Print out key names
X *
X ***********************************************************************/
X
X#include <stdio.h>
X#include <signal.h>
X#include <fcntl.h>
X#include <X11/Xlib.h>
X#include <X11/Xutil.h>
X#include <X11/cursorfont.h>
X
X
XDisplay *dpy;			/* which display are we talking to */
Xint screen;			/* the default screen */
X
X#define TRUE 1
X
Xmain(argc, argv)
X    int argc;
X    char *argv[];
X{
X    Window w;
X    Window Root;
X    long Foreground, Background;
X    XEvent event;
X    KeySym key;
X
X    if ((dpy = XOpenDisplay("")) == NULL)
X    {
X	fprintf(stderr, "xkeyname: can't open the display\n");
X	exit(1);
X    }
X    Root = RootWindow(dpy, screen);
X    Foreground = BlackPixel(dpy, DefaultScreen(dpy));
X    Background = WhitePixel(dpy, DefaultScreen(dpy));
X
X    w = XCreateSimpleWindow(dpy, Root, 100, 100, 200, 200, 2,
X	Foreground, Background);
X
X    XSelectInput(dpy, w, KeyPressMask);
X    XMapWindow(dpy, w);
X
X    while (TRUE)
X    {
X	XNextEvent(dpy, &event);
X	printf("%s\n", XKeysymToString(XLookupKeysym(&event, 0))); 
X    }
X}
END_OF_FILE
if test 1107 -ne `wc -c <'xkeyname.c'`; then
    echo shar: \"'xkeyname.c'\" unpacked with wrong size!
fi
# end of 'xkeyname.c'
fi
echo shar: End of archive 1 \(of 7\).
cp /dev/null ark1isdone
MISSING=""
for I in 1 2 3 4 5 6 7 ; do
    if test ! -f ark${I}isdone ; then
	MISSING="${MISSING} ${I}"
    fi
done
if test "${MISSING}" = "" ; then
    echo You have unpacked all 7 archives.
    rm -f ark[1-9]isdone
else
    echo You still need to unpack the following archives:
    echo "        " ${MISSING}
fi
##  End of shell archive.
exit 0
-- 
Mike Wexler(wyse!mikew)    Phone: (408)433-1000 x1330



More information about the Comp.sources.x mailing list