v05i044: XView example programs, Part06/06
Dan Heller
argv at sun.com
Fri Dec 8 18:39:06 AEST 1989
Submitted-by: Dan Heller <argv at sun.com>
Posting-number: Volume 5, Issue 44
Archive-name: xview.demos/part06
#! /bin/sh
# This is a shell archive. Remove anything before this line, then feed it
# into a shell via "sh file" or similar. To overwrite existing files,
# type "sh file -c".
# The tool that generated this appeared in the comp.sources.unix newsgroup;
# send mail to comp-sources-unix at uunet.uu.net if you want that tool.
# If this archive is complete, you will see the following message at the end:
# "End of archive 6 (of 6)."
# Contents: xview.demos/color/Makefile xview.demos/cursor/Makefile
# xview.demos/defaults/Makefile xview.demos/fonts/Makefile
# xview.demos/frames/Makefile xview.demos/frames/frame_color.c
# xview.demos/frames/simple_frame.c xview.demos/frames/subframe.c
# xview.demos/icons/Imakefile xview.demos/icons/Makefile
# xview.demos/menus/Makefile xview.demos/misc/Makefile
# xview.demos/notice/Makefile xview.demos/notifier/Makefile
# xview.demos/panels/Makefile xview.demos/scrollbar/Makefile
# xview.demos/seln_svc/Makefile xview.demos/sv_compat/Makefile
# xview.demos/textsw/Imakefile xview.demos/textsw/Makefile
# xview.demos/textsw/textsw.c xview.demos/ttysw/Makefile
# xview.demos/ttysw/sample_tty.c
# Wrapped by argv at island on Thu Dec 7 23:18:33 1989
PATH=/bin:/usr/bin:/usr/ucb ; export PATH
if test -f 'xview.demos/color/Makefile' -a "${1}" != "-c" ; then
echo shar: Will not clobber existing file \"'xview.demos/color/Makefile'\"
else
echo shar: Extracting \"'xview.demos/color/Makefile'\" \(191 characters\)
sed "s/^X//" >'xview.demos/color/Makefile' <<'END_OF_FILE'
XLDFLAGS= -lxview -lX11
X
XTARGETS=color color_animate color_logo color_objs x_draw
XICON= cardback.icon
X
Xall: $(ICON) $(TARGETS)
X
X${TARGETS}: $$@.c $$@.o
X ${CC} ${CFLAGS} ${LDFLAGS} -o $@ $@.o
END_OF_FILE
if test 191 -ne `wc -c <'xview.demos/color/Makefile'`; then
echo shar: \"'xview.demos/color/Makefile'\" unpacked with wrong size!
fi
# end of 'xview.demos/color/Makefile'
fi
if test -f 'xview.demos/cursor/Makefile' -a "${1}" != "-c" ; then
echo shar: Will not clobber existing file \"'xview.demos/cursor/Makefile'\"
else
echo shar: Extracting \"'xview.demos/cursor/Makefile'\" \(149 characters\)
sed "s/^X//" >'xview.demos/cursor/Makefile' <<'END_OF_FILE'
XLDFLAGS= -lxview -lX11
X
XTARGETS=hot_spot simple_cursor stop_cursor
X
Xall: $(TARGETS)
X
X${TARGETS}: $$@.c $$@.o
X ${CC} ${CFLAGS} ${LDFLAGS} -o $@ $@.o
END_OF_FILE
if test 149 -ne `wc -c <'xview.demos/cursor/Makefile'`; then
echo shar: \"'xview.demos/cursor/Makefile'\" unpacked with wrong size!
fi
# end of 'xview.demos/cursor/Makefile'
fi
if test -f 'xview.demos/defaults/Makefile' -a "${1}" != "-c" ; then
echo shar: Will not clobber existing file \"'xview.demos/defaults/Makefile'\"
else
echo shar: Extracting \"'xview.demos/defaults/Makefile'\" \(141 characters\)
sed "s/^X//" >'xview.demos/defaults/Makefile' <<'END_OF_FILE'
XLDFLAGS= -lxview -lX11
X
XTARGETS=default_size default_text
X
Xall: $(TARGETS)
X
X${TARGETS}: $$@.c $$@.o
X ${CC} ${CFLAGS} ${LDFLAGS} -o $@ $@.o
END_OF_FILE
if test 141 -ne `wc -c <'xview.demos/defaults/Makefile'`; then
echo shar: \"'xview.demos/defaults/Makefile'\" unpacked with wrong size!
fi
# end of 'xview.demos/defaults/Makefile'
fi
if test -f 'xview.demos/fonts/Makefile' -a "${1}" != "-c" ; then
echo shar: Will not clobber existing file \"'xview.demos/fonts/Makefile'\"
else
echo shar: Extracting \"'xview.demos/fonts/Makefile'\" \(142 characters\)
sed "s/^X//" >'xview.demos/fonts/Makefile' <<'END_OF_FILE'
XLDFLAGS= -lxview -lX11
X
XTARGETS=fonts simple_font type_font
X
Xall: $(TARGETS)
X
X${TARGETS}: $$@.c $$@.o
X ${CC} ${CFLAGS} ${LDFLAGS} -o $@ $@.o
END_OF_FILE
if test 142 -ne `wc -c <'xview.demos/fonts/Makefile'`; then
echo shar: \"'xview.demos/fonts/Makefile'\" unpacked with wrong size!
fi
# end of 'xview.demos/fonts/Makefile'
fi
if test -f 'xview.demos/frames/Makefile' -a "${1}" != "-c" ; then
echo shar: Will not clobber existing file \"'xview.demos/frames/Makefile'\"
else
echo shar: Extracting \"'xview.demos/frames/Makefile'\" \(149 characters\)
sed "s/^X//" >'xview.demos/frames/Makefile' <<'END_OF_FILE'
XLDFLAGS= -lxview -lX11
X
XTARGETS=frame_color simple_frame subframe
X
Xall: $(TARGETS)
X
X${TARGETS}: $$@.c $$@.o
X ${CC} ${CFLAGS} ${LDFLAGS} -o $@ $@.o
END_OF_FILE
if test 149 -ne `wc -c <'xview.demos/frames/Makefile'`; then
echo shar: \"'xview.demos/frames/Makefile'\" unpacked with wrong size!
fi
# end of 'xview.demos/frames/Makefile'
fi
if test -f 'xview.demos/frames/frame_color.c' -a "${1}" != "-c" ; then
echo shar: Will not clobber existing file \"'xview.demos/frames/frame_color.c'\"
else
echo shar: Extracting \"'xview.demos/frames/frame_color.c'\" \(622 characters\)
sed "s/^X//" >'xview.demos/frames/frame_color.c' <<'END_OF_FILE'
X#include <xview/xview.h>
X#include <xview/panel.h>
X#include <xview/cms.h>
X
Xmain()
X{
X Frame frame;
X Panel panel;
X Xv_singlecolor fg, bg;
X
X fg.red = 250, fg.green = 230, fg.blue = 20;
X bg.red = 180, bg.green = 100, bg.blue = 20;
X
X frame = (Frame)xv_create(NULL, FRAME,
X FRAME_BACKGROUND_COLOR, &bg,
X FRAME_FOREGROUND_COLOR, &fg,
X FRAME_INHERIT_COLORS, TRUE,
X NULL);
X
X panel = (Panel)xv_create(frame, PANEL, NULL);
X (void) xv_create(panel, PANEL_BUTTON,
X PANEL_LABEL_STRING, "Push Me",
X NULL);
X
X xv_main_loop(frame);
X}
END_OF_FILE
if test 622 -ne `wc -c <'xview.demos/frames/frame_color.c'`; then
echo shar: \"'xview.demos/frames/frame_color.c'\" unpacked with wrong size!
fi
# end of 'xview.demos/frames/frame_color.c'
fi
if test -f 'xview.demos/frames/simple_frame.c' -a "${1}" != "-c" ; then
echo shar: Will not clobber existing file \"'xview.demos/frames/simple_frame.c'\"
else
echo shar: Extracting \"'xview.demos/frames/simple_frame.c'\" \(128 characters\)
sed "s/^X//" >'xview.demos/frames/simple_frame.c' <<'END_OF_FILE'
X#include <xview/xview.h>
X
Xmain()
X{
X Frame frame;
X frame = (Frame)xv_create(NULL, FRAME, NULL);
X xv_main_loop(frame);
X}
END_OF_FILE
if test 128 -ne `wc -c <'xview.demos/frames/simple_frame.c'`; then
echo shar: \"'xview.demos/frames/simple_frame.c'\" unpacked with wrong size!
fi
# end of 'xview.demos/frames/simple_frame.c'
fi
if test -f 'xview.demos/frames/subframe.c' -a "${1}" != "-c" ; then
echo shar: Will not clobber existing file \"'xview.demos/frames/subframe.c'\"
else
echo shar: Extracting \"'xview.demos/frames/subframe.c'\" \(597 characters\)
sed "s/^X//" >'xview.demos/frames/subframe.c' <<'END_OF_FILE'
X/*
X * subframe.c -- display a subframe from a base frame.
X */
X#include <xview/xview.h>
X
Xmain(argc, argv)
Xint argc;
Xchar *argv[];
X{
X Frame frame, subframe;
X
X xv_init(XV_INIT_ARGC_PTR_ARGV, &argc, argv, NULL);
X
X frame = (Frame)xv_create(NULL, FRAME,
X XV_WIDTH, 100,
X XV_HEIGHT, 100,
X FRAME_LABEL, "Base Frame",
X NULL);
X
X subframe = (Frame)xv_create(frame, FRAME_CMD,
X XV_WIDTH, 100,
X XV_HEIGHT, 100,
X FRAME_LABEL, "Popup",
X NULL);
X
X xv_set(subframe, XV_SHOW, TRUE, NULL);
X
X xv_main_loop(frame);
X}
END_OF_FILE
if test 597 -ne `wc -c <'xview.demos/frames/subframe.c'`; then
echo shar: \"'xview.demos/frames/subframe.c'\" unpacked with wrong size!
fi
# end of 'xview.demos/frames/subframe.c'
fi
if test -f 'xview.demos/icons/Imakefile' -a "${1}" != "-c" ; then
echo shar: Will not clobber existing file \"'xview.demos/icons/Imakefile'\"
else
echo shar: Extracting \"'xview.demos/icons/Imakefile'\" \(662 characters\)
sed "s/^X//" >'xview.demos/icons/Imakefile' <<'END_OF_FILE'
X#
X# @(#)Imakefile 1.3 89/12/06 SMI
X#
X# Imakefile for icons
X#
X# LIBRARY_DEST is the location of the XView libraries
X# HEADER_DEST is the location of the XView header files
X# LIBDIR is the directory containing the X11 library (libX11.a)
X#
X
XLIBRARY_DEST=/home/xview/usr/lib
XHEADER_DEST=/home/xview/usr/include
X
XLIBDIR=/home/X11/lib
XLDFLAGS=-L$(LIBRARY_DEST) -L$(LIBDIR) -lxview -lX11
XINCLUDES= -I.. -I$(HEADER_DEST) -I$(TOP) -DSTANDALONE
X
X# Uncomment the following line to use libxvol.a and libxvin.a
X#
X#LDFLAGS=-L$(LIBRARY_DEST) -L$(LIBDIR) -lxvol -lxvin -lX11
X
XTARGETS=icon_demo
X
Xall: $(TARGETS)
X
X${TARGETS}: $$@.c $$@.o
X ${CC} ${CFLAGS} ${LDFLAGS} -o $@ $@.o
END_OF_FILE
if test 662 -ne `wc -c <'xview.demos/icons/Imakefile'`; then
echo shar: \"'xview.demos/icons/Imakefile'\" unpacked with wrong size!
fi
# end of 'xview.demos/icons/Imakefile'
fi
if test -f 'xview.demos/icons/Makefile' -a "${1}" != "-c" ; then
echo shar: Will not clobber existing file \"'xview.demos/icons/Makefile'\"
else
echo shar: Extracting \"'xview.demos/icons/Makefile'\" \(126 characters\)
sed "s/^X//" >'xview.demos/icons/Makefile' <<'END_OF_FILE'
XLDFLAGS= -lxview -lX11
X
XTARGETS=icon_demo
X
Xall: $(TARGETS)
X
X${TARGETS}: $$@.c $$@.o
X ${CC} ${CFLAGS} ${LDFLAGS} -o $@ $@.o
END_OF_FILE
if test 126 -ne `wc -c <'xview.demos/icons/Makefile'`; then
echo shar: \"'xview.demos/icons/Makefile'\" unpacked with wrong size!
fi
# end of 'xview.demos/icons/Makefile'
fi
if test -f 'xview.demos/menus/Makefile' -a "${1}" != "-c" ; then
echo shar: Will not clobber existing file \"'xview.demos/menus/Makefile'\"
else
echo shar: Extracting \"'xview.demos/menus/Makefile'\" \(168 characters\)
sed "s/^X//" >'xview.demos/menus/Makefile' <<'END_OF_FILE'
XLDFLAGS= -lxview -lX11
X
XTARGETS=menu menu_dir menu_dir2 pin_menu simple_menu xv_menu
X
Xall: $(TARGETS)
X
X${TARGETS}: $$@.c $$@.o
X ${CC} ${CFLAGS} ${LDFLAGS} -o $@ $@.o
X
END_OF_FILE
if test 168 -ne `wc -c <'xview.demos/menus/Makefile'`; then
echo shar: \"'xview.demos/menus/Makefile'\" unpacked with wrong size!
fi
# end of 'xview.demos/menus/Makefile'
fi
if test -f 'xview.demos/misc/Makefile' -a "${1}" != "-c" ; then
echo shar: Will not clobber existing file \"'xview.demos/misc/Makefile'\"
else
echo shar: Extracting \"'xview.demos/misc/Makefile'\" \(154 characters\)
sed "s/^X//" >'xview.demos/misc/Makefile' <<'END_OF_FILE'
XLDFLAGS= -lxview -lX11
X
XTARGETS=drag_n_drop fullscreen screen svrimage
X
Xall: $(TARGETS)
X
X${TARGETS}: $$@.c $$@.o
X ${CC} ${CFLAGS} ${LDFLAGS} -o $@ $@.o
END_OF_FILE
if test 154 -ne `wc -c <'xview.demos/misc/Makefile'`; then
echo shar: \"'xview.demos/misc/Makefile'\" unpacked with wrong size!
fi
# end of 'xview.demos/misc/Makefile'
fi
if test -f 'xview.demos/notice/Makefile' -a "${1}" != "-c" ; then
echo shar: Will not clobber existing file \"'xview.demos/notice/Makefile'\"
else
echo shar: Extracting \"'xview.demos/notice/Makefile'\" \(151 characters\)
sed "s/^X//" >'xview.demos/notice/Makefile' <<'END_OF_FILE'
XLDFLAGS= -lxview -lX11
X
XTARGETS=notice simple_notice trigger_notice
X
Xall: $(TARGETS)
X
X${TARGETS}: $$@.c $$@.o
X ${CC} ${CFLAGS} ${LDFLAGS} -o $@ $@.o
END_OF_FILE
if test 151 -ne `wc -c <'xview.demos/notice/Makefile'`; then
echo shar: \"'xview.demos/notice/Makefile'\" unpacked with wrong size!
fi
# end of 'xview.demos/notice/Makefile'
fi
if test -f 'xview.demos/notifier/Makefile' -a "${1}" != "-c" ; then
echo shar: Will not clobber existing file \"'xview.demos/notifier/Makefile'\"
else
echo shar: Extracting \"'xview.demos/notifier/Makefile'\" \(177 characters\)
sed "s/^X//" >'xview.demos/notifier/Makefile' <<'END_OF_FILE'
XLDFLAGS= -lxview -lX11
X
XTARGETS=animate interpose notify_input ntfy_do_dis ntfy_pipe ntfy_sig
X
Xall: $(TARGETS)
X
X${TARGETS}: $$@.c $$@.o
X ${CC} ${CFLAGS} ${LDFLAGS} -o $@ $@.o
END_OF_FILE
if test 177 -ne `wc -c <'xview.demos/notifier/Makefile'`; then
echo shar: \"'xview.demos/notifier/Makefile'\" unpacked with wrong size!
fi
# end of 'xview.demos/notifier/Makefile'
fi
if test -f 'xview.demos/panels/Makefile' -a "${1}" != "-c" ; then
echo shar: Will not clobber existing file \"'xview.demos/panels/Makefile'\"
else
echo shar: Extracting \"'xview.demos/panels/Makefile'\" \(216 characters\)
sed "s/^X//" >'xview.demos/panels/Makefile' <<'END_OF_FILE'
XLDFLAGS= -lxview -lX11
X
XTARGETS=btn_menu choices client_data item_move list_glyphs \
X panel_repaint repaint simple_panel stop_frame
X
Xall: $(TARGETS)
X
X${TARGETS}: $$@.c $$@.o
X ${CC} ${CFLAGS} ${LDFLAGS} -o $@ $@.o
END_OF_FILE
if test 216 -ne `wc -c <'xview.demos/panels/Makefile'`; then
echo shar: \"'xview.demos/panels/Makefile'\" unpacked with wrong size!
fi
# end of 'xview.demos/panels/Makefile'
fi
if test -f 'xview.demos/scrollbar/Makefile' -a "${1}" != "-c" ; then
echo shar: Will not clobber existing file \"'xview.demos/scrollbar/Makefile'\"
else
echo shar: Extracting \"'xview.demos/scrollbar/Makefile'\" \(142 characters\)
sed "s/^X//" >'xview.demos/scrollbar/Makefile' <<'END_OF_FILE'
XLDFLAGS= -lxview -lX11
X
XTARGETS=scroll_cells scroll_cells2
X
Xall: $(TARGETS)
X
X${TARGETS}: $$@.c $$@.o
X ${CC} ${CFLAGS} ${LDFLAGS} -o $@ $@.o
END_OF_FILE
if test 142 -ne `wc -c <'xview.demos/scrollbar/Makefile'`; then
echo shar: \"'xview.demos/scrollbar/Makefile'\" unpacked with wrong size!
fi
# end of 'xview.demos/scrollbar/Makefile'
fi
if test -f 'xview.demos/seln_svc/Makefile' -a "${1}" != "-c" ; then
echo shar: Will not clobber existing file \"'xview.demos/seln_svc/Makefile'\"
else
echo shar: Extracting \"'xview.demos/seln_svc/Makefile'\" \(162 characters\)
sed "s/^X//" >'xview.demos/seln_svc/Makefile' <<'END_OF_FILE'
XLDFLAGS= -lxview -lX11
X
XTARGETS=long_seln seln seln_line simple_seln text_seln
X
Xall: $(TARGETS)
X
X${TARGETS}: $$@.c $$@.o
X ${CC} ${CFLAGS} ${LDFLAGS} -o $@ $@.o
END_OF_FILE
if test 162 -ne `wc -c <'xview.demos/seln_svc/Makefile'`; then
echo shar: \"'xview.demos/seln_svc/Makefile'\" unpacked with wrong size!
fi
# end of 'xview.demos/seln_svc/Makefile'
fi
if test -f 'xview.demos/sv_compat/Makefile' -a "${1}" != "-c" ; then
echo shar: Will not clobber existing file \"'xview.demos/sv_compat/Makefile'\"
else
echo shar: Extracting \"'xview.demos/sv_compat/Makefile'\" \(124 characters\)
sed "s/^X//" >'xview.demos/sv_compat/Makefile' <<'END_OF_FILE'
XLDFLAGS= -lxview -lX11
X
XTARGETS=pw_draw
X
Xall: $(TARGETS)
X
X${TARGETS}: $$@.c $$@.o
X ${CC} ${CFLAGS} ${LDFLAGS} -o $@ $@.o
X
END_OF_FILE
if test 124 -ne `wc -c <'xview.demos/sv_compat/Makefile'`; then
echo shar: \"'xview.demos/sv_compat/Makefile'\" unpacked with wrong size!
fi
# end of 'xview.demos/sv_compat/Makefile'
fi
if test -f 'xview.demos/textsw/Imakefile' -a "${1}" != "-c" ; then
echo shar: Will not clobber existing file \"'xview.demos/textsw/Imakefile'\"
else
echo shar: Extracting \"'xview.demos/textsw/Imakefile'\" \(671 characters\)
sed "s/^X//" >'xview.demos/textsw/Imakefile' <<'END_OF_FILE'
X#
X# @(#)Imakefile 1.3 89/12/06 SMI
X#
X# Imakefile for textsw
X#
X# LIBRARY_DEST is the location of the XView libraries
X# HEADER_DEST is the location of the XView header files
X# LIBDIR is the directory containing the X11 library (libX11.a)
X#
X
XLIBRARY_DEST=/home/xview/usr/lib
XHEADER_DEST=/home/xview/usr/include
X
XLIBDIR=/home/X11/lib
XLDFLAGS=-L$(LIBRARY_DEST) -L$(LIBDIR) -lxview -lX11
XINCLUDES= -I.. -I$(HEADER_DEST) -I$(TOP) -DSTANDALONE
X
X# Uncomment the following line to use libxvol.a and libxvin.a
X#
X#LDFLAGS=-L$(LIBRARY_DEST) -L$(LIBDIR) -lxvol -lxvin -lX11
X
XTARGETS=textsw textsw.font
X
Xall: $(TARGETS)
X
X${TARGETS}: $$@.c $$@.o
X ${CC} ${CFLAGS} ${LDFLAGS} -o $@ $@.o
END_OF_FILE
if test 671 -ne `wc -c <'xview.demos/textsw/Imakefile'`; then
echo shar: \"'xview.demos/textsw/Imakefile'\" unpacked with wrong size!
fi
# end of 'xview.demos/textsw/Imakefile'
fi
if test -f 'xview.demos/textsw/Makefile' -a "${1}" != "-c" ; then
echo shar: Will not clobber existing file \"'xview.demos/textsw/Makefile'\"
else
echo shar: Extracting \"'xview.demos/textsw/Makefile'\" \(134 characters\)
sed "s/^X//" >'xview.demos/textsw/Makefile' <<'END_OF_FILE'
XLDFLAGS= -lxview -lX11
X
XTARGETS=textsw textsw.font
X
Xall: $(TARGETS)
X
X${TARGETS}: $$@.c $$@.o
X ${CC} ${CFLAGS} ${LDFLAGS} -o $@ $@.o
END_OF_FILE
if test 134 -ne `wc -c <'xview.demos/textsw/Makefile'`; then
echo shar: \"'xview.demos/textsw/Makefile'\" unpacked with wrong size!
fi
# end of 'xview.demos/textsw/Makefile'
fi
if test -f 'xview.demos/textsw/textsw.c' -a "${1}" != "-c" ; then
echo shar: Will not clobber existing file \"'xview.demos/textsw/textsw.c'\"
else
echo shar: Extracting \"'xview.demos/textsw/textsw.c'\" \(565 characters\)
sed "s/^X//" >'xview.demos/textsw/textsw.c' <<'END_OF_FILE'
X#include <xview/xview.h>
X#include <xview/textsw.h>
X#include <xview/panel.h>
X
X#define HEIGHT 500
X#define WIDTH 500
X
XTextsw textsw;
XPanel panel;
XIcon icon;
X
Xmain(argc,argv)
Xint argc;
Xchar *argv[];
X{
X Frame frame;
X int textsw_width;
X
X xv_init(XV_INIT_ARGS, argc, argv, 0);
X
X frame = xv_create(XV_NULL, FRAME, FRAME_LABEL, argv[0], NULL);
X
X /* create textsw and set the colormap segment for it */
X textsw = xv_create(frame, TEXTSW,
X WIN_ROWS, 20,
X WIN_COLUMNS, 80,
X NULL);
X
X window_fit(frame);
X xv_main_loop(frame);
X}
END_OF_FILE
if test 565 -ne `wc -c <'xview.demos/textsw/textsw.c'`; then
echo shar: \"'xview.demos/textsw/textsw.c'\" unpacked with wrong size!
fi
# end of 'xview.demos/textsw/textsw.c'
fi
if test -f 'xview.demos/ttysw/Makefile' -a "${1}" != "-c" ; then
echo shar: Will not clobber existing file \"'xview.demos/ttysw/Makefile'\"
else
echo shar: Extracting \"'xview.demos/ttysw/Makefile'\" \(300 characters\)
sed "s/^X//" >'xview.demos/ttysw/Makefile' <<'END_OF_FILE'
XLDFLAGS=-L$(LIBRARY_DEST) -L$(LIBDIR) -lxview -lX11
X
XTARG1=sample_tty textsw_to_ttysw xv_termsw
XTARG2=ttycurses
XTARGETS=$(TARG1) $(TARG2)
X
Xall: $(TARGETS)
X
X${TARG1}: $$@.c $$@.o
X ${CC} ${CFLAGS} ${LDFLAGS} -o $@ $@.o
X
X${TARG2}: $$@.c $$@.o
X ${CC} ${CFLAGS} ${LDFLAGS} -o $@ $@.o -lcurses -ltermlib
END_OF_FILE
if test 300 -ne `wc -c <'xview.demos/ttysw/Makefile'`; then
echo shar: \"'xview.demos/ttysw/Makefile'\" unpacked with wrong size!
fi
# end of 'xview.demos/ttysw/Makefile'
fi
if test -f 'xview.demos/ttysw/sample_tty.c' -a "${1}" != "-c" ; then
echo shar: Will not clobber existing file \"'xview.demos/ttysw/sample_tty.c'\"
else
echo shar: Extracting \"'xview.demos/ttysw/sample_tty.c'\" \(601 characters\)
sed "s/^X//" >'xview.demos/ttysw/sample_tty.c' <<'END_OF_FILE'
X/*
X * sample_tty.c -- create a base frame with a tty subwindow.
X * This subwindow runs a UNIX command specified in an argument
X * vector as shown below. The example does a "man cat".
X */
X#include <xview/xview.h>
X#include <xview/tty.h>
X
Xchar *my_argv[] = { "man", "cat", NULL };
X
Xmain(argc, argv)
Xchar *argv[];
X{
X Tty tty;
X Frame frame;
X
X xv_init();
X frame = (Frame)xv_create(NULL, FRAME, NULL);
X tty = (Tty)xv_create(frame, TTY,
X WIN_ROWS, 24,
X WIN_COLUMNS, 80,
X TTY_ARGV, my_argv,
X NULL);
X
X window_fit(frame);
X xv_main_loop(frame);
X}
END_OF_FILE
if test 601 -ne `wc -c <'xview.demos/ttysw/sample_tty.c'`; then
echo shar: \"'xview.demos/ttysw/sample_tty.c'\" unpacked with wrong size!
fi
# end of 'xview.demos/ttysw/sample_tty.c'
fi
echo shar: End of archive 6 \(of 6\).
cp /dev/null ark6isdone
MISSING=""
for I in 1 2 3 4 5 6 ; do
if test ! -f ark${I}isdone ; then
MISSING="${MISSING} ${I}"
fi
done
if test "${MISSING}" = "" ; then
echo You have unpacked all 6 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
More information about the Comp.sources.x
mailing list