v09i044: colxterm -- Color xterm, Part14/14

Tom Weinstein tomw at orac.esd.sgi.com
Fri Sep 14 13:50:45 AEST 1990


Submitted-by: Tom Weinstein <tomw at orac.esd.sgi.com>
Posting-number: Volume 9, Issue 44
Archive-name: colxterm/part14

#! /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 14 (of 14)."
# Contents:  xterm/CHANGES xterm/Tekparse.def xterm/data.h
#   xterm/resize.man xterm/terminfo
# Wrapped by argv at turnpike on Thu Sep 13 20:42:36 1990
PATH=/bin:/usr/bin:/usr/ucb ; export PATH
if test -f 'xterm/CHANGES' -a "${1}" != "-c" ; then 
  echo shar: Will not clobber existing file \"'xterm/CHANGES'\"
else
echo shar: Extracting \"'xterm/CHANGES'\" \(759 characters\)
sed "s/^X//" >'xterm/CHANGES' <<'END_OF_FILE'
XThe following changes have been made to this directory since R3:
X
X     o	removed -L.
X     o	works under AT&T UNIX System V, Release 3.2 on 6386.
X     o	works on Cray.
X     o	uses Athena menu widget.
X     o	ifdefs on SIGTSTP instead of JOBCONTROL, so ports easier.
X     o	scrollinput resource now named scrollttyoutput.
X     o	new pointerColorBackground resource.
X     o	-C is allowed even if it doesn't do anything so that common scripts
X		will work across systems.
X     o	fixed lots of strcpy bugs.
X     o	-rv now behaves like Xt says it should.
X     o	support for 4.3 tty group and login -p -f user.
X     o	on-the-fly font changing through escape seqs and new font menu.
X     o	ICCCM support.
X     o	8bit input and output.
X     o	allowSendEvents resource.
X
END_OF_FILE
if test 759 -ne `wc -c <'xterm/CHANGES'`; then
    echo shar: \"'xterm/CHANGES'\" unpacked with wrong size!
fi
# end of 'xterm/CHANGES'
fi
if test -f 'xterm/Tekparse.def' -a "${1}" != "-c" ; then 
  echo shar: Will not clobber existing file \"'xterm/Tekparse.def'\"
else
echo shar: Extracting \"'xterm/Tekparse.def'\" \(652 characters\)
sed "s/^X//" >'xterm/Tekparse.def' <<'END_OF_FILE'
X#
X# $XConsortium: Tekparse.def,v 1.2 88/09/06 14:35:12 jim Exp $
X#
X# List of symbols that need to be defined for Tekparse.h.  If you need to 
X# change any of the CASE_ macros, make the change here and rerun the command
X# shown in Tekparse.h.
X#
X
XCASE_REPORT
XCASE_VT_MODE
XCASE_SPT_STATE
XCASE_GIN
XCASE_BEL
XCASE_BS
XCASE_PT_STATE
XCASE_PLT_STATE
XCASE_TAB
XCASE_IPL_STATE
XCASE_ALP_STATE
XCASE_UP
XCASE_COPY
XCASE_PAGE
XCASE_BES_STATE
XCASE_BYP_STATE
XCASE_IGNORE
XCASE_ASCII
XCASE_APL
XCASE_CHAR_SIZE
XCASE_BEAM_VEC
XCASE_CURSTATE
XCASE_PENUP
XCASE_PENDOWN
XCASE_IPL_POINT
XCASE_PLT_VEC
XCASE_PT_POINT
XCASE_SPT_POINT
XCASE_CR
XCASE_ESC_STATE
XCASE_LF
XCASE_SP
XCASE_PRINT
XCASE_OSC
END_OF_FILE
if test 652 -ne `wc -c <'xterm/Tekparse.def'`; then
    echo shar: \"'xterm/Tekparse.def'\" unpacked with wrong size!
fi
# end of 'xterm/Tekparse.def'
fi
if test -f 'xterm/data.h' -a "${1}" != "-c" ; then 
  echo shar: Will not clobber existing file \"'xterm/data.h'\"
else
echo shar: Extracting \"'xterm/data.h'\" \(2164 characters\)
sed "s/^X//" >'xterm/data.h' <<'END_OF_FILE'
X/*
X *	$XConsortium: data.h,v 1.7 89/05/26 18:10:45 jim Exp $
X */
X
X
X#include <X11/copyright.h>
X
X/*
X * Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
X *
X *                         All Rights Reserved
X *
X * Permission to use, copy, modify, and distribute this software and its
X * documentation for any purpose and without fee is hereby granted,
X * provided that the above copyright notice appear in all copies and that
X * both that copyright notice and this permission notice appear in
X * supporting documentation, and that the name of Digital Equipment
X * Corporation not be used in advertising or publicity pertaining to
X * distribution of the software without specific, written prior permission.
X *
X *
X * DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
X * ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
X * DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
X * ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
X * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
X * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
X * SOFTWARE.
X */
X
X/* @(#)data.h\tX10/6.6\t11/10/86 */
X
X#include <X11/Intrinsic.h>
X
Xextern TekLink *TekRefresh;
Xextern XPoint T_box2[];
Xextern XPoint T_box3[];
Xextern XPoint T_boxlarge[];
Xextern XPoint T_boxsmall[];
Xextern XPoint VTbox[];
Xextern Char *Tbptr;
Xextern Char *Tbuffer;
Xextern Char *Tpushb;
Xextern Char *Tpushback;
Xextern Char *bptr;
Xextern char log_def_name[];
Xextern char *ptydev;
Xextern char *ttydev;
Xextern char *xterm_name;
Xextern Char buffer[];
Xextern int Select_mask;
Xextern int T_lastx;
Xextern int T_lasty;
Xextern int Tbcnt;
Xextern int Ttoggled;
Xextern int X_mask;
Xextern int am_slave;
Xextern int bcnt;
X#ifdef DEBUG
Xextern int debug;
X#endif	/* DEBUG */
Xextern int errno;
Xextern int max_plus1;
Xextern int pty_mask;
Xextern int switchfb[];
Xextern jmp_buf Tekend;
Xextern jmp_buf VTend;
X
Xextern int waitingForTrackInfo;
X
Xextern EventMode eventMode;
X
Xextern GC visualBellGC;
X
Xextern int VTgcFontMask;
Xextern int TEKgcFontMask;
X
Xextern XtermWidget term;
Xextern TekWidget tekWidget;
END_OF_FILE
if test 2164 -ne `wc -c <'xterm/data.h'`; then
    echo shar: \"'xterm/data.h'\" unpacked with wrong size!
fi
# end of 'xterm/data.h'
fi
if test -f 'xterm/resize.man' -a "${1}" != "-c" ; then 
  echo shar: Will not clobber existing file \"'xterm/resize.man'\"
else
echo shar: Extracting \"'xterm/resize.man'\" \(2336 characters\)
sed "s/^X//" >'xterm/resize.man' <<'END_OF_FILE'
X.TH RESIZE 1 "Release 4" "X Version 11"
X.SH NAME
Xresize - utility to set TERMCAP and terminal settings to current window size
X.SH SYNOPSIS
X.B resize
X[-u] [\-s [row col]]
X.SH DESCRIPTION
X.I Resize
Xprints a shell command for setting the TERM and TERMCAP environment variables
Xto indicate the current size of \fIxterm\fP window from which the command
Xis run.  For this output to take effect, \fIresize\fP must either be evaluated
Xas part of the command line (usually done with a shell alias or function) or
Xelse redirected to a file which can then be read in.  From the C shell (usually
Xknown as \fI/bin/csh\fP), the following alias could be defined in the 
Xuser's \fI.cshrc\fP:
X.sp
X.nf
X        %  alias rs 'set noglob; `eval resize`'
X.fi
X.sp
XAfter resizing the window, the user would type:
X.sp
X.nf
X        %  rs
X.fi
X.sp
XUsers of versions of the Bourne shell (usually known as \fI/bin/sh\fP) that 
Xdon't have command
Xfunctions will need to send the output to a temporary file and the read it back
Xin with the ``.'' command:
X.sp
X.nf
X        $  resize >/tmp/out
X        $  . /tmp/out
X.fi
X.SH OPTIONS
XThe following options may be used with \fIresize\fP:
X.TP 8
X.B \-u
XThis option indicates that Bourne shell commands should be generated even if 
Xthe user's current shell isn't \fI/bin/sh\fP.
X.TP 8
X.B \-c
XThis option indicates that C shell commands should be generated even if the
Xuser's current shell isn't \fI/bin/csh\fP.
X.TP 8
X.B \-s \fR[\fIrows columns\fP]
XThis option indicates that that Sun console escape sequences will be used 
Xinstead of the special \fIxterm\fP escape code.  If \fIrows\fP and
X\fIcolumns\fP are given, \fIresize\fP will ask the \fIxterm\fP to resize
Xitself.  However, the window manager may choose to disallow the change.
X.SH FILES
X/etc/termcap	for the base termcap entry to modify.
X.br
X~/.cshrc	user's alias for the command.
X.SH "SEE ALSO"
Xcsh(1), tset(1), xterm(1)
X.SH AUTHORS
XMark Vandevoorde (MIT-Athena), Edward Moy (Berkeley)
X.br
XCopyright (c) 1984, 1985 by Massachusetts Institute of Technology.
X.br
XSee
X.IR X (1)
Xfor a complete copyright notice.
X.SH BUGS
XThe \fI-u\fP or \fI-c\fP must appear to the left of \fI-s\fP if both are 
Xspecified.
X.PP
XThere should be some global notion of display size; termcap and
Xterminfo need to be rethought in the context of window systems.
X(Fixed in 4.3BSD, and Ultrix-32 1.2)
END_OF_FILE
if test 2336 -ne `wc -c <'xterm/resize.man'`; then
    echo shar: \"'xterm/resize.man'\" unpacked with wrong size!
fi
# end of 'xterm/resize.man'
fi
if test -f 'xterm/terminfo' -a "${1}" != "-c" ; then 
  echo shar: Will not clobber existing file \"'xterm/terminfo'\"
else
echo shar: Extracting \"'xterm/terminfo'\" \(660 characters\)
sed "s/^X//" >'xterm/terminfo' <<'END_OF_FILE'
Xxterm|vs100|xterm terminal emulator,
X	ind=^J, cols#80, lines#65,
X	clear=\E[H\E[2J, cub1=^H, am, cup=\E[%i%p1%d;%p2%dH,
X	cuf1=\E[C, cuu1=\E[A, el=\E[K, ed=\E[J,
X	cud=\E[%p1%dB, cuu=\E[%p1%dA, cub=\E[%p1%dD,
X	cuf=\E[%p1%dC, km,
X	smso=\E[7m, rmso=\E[m, smul@, rmul@,
X	bold=\E[1m, rev=\E[7m, blink=@, sgr0=\E[m,
X	rs1=\E>\E[1;3;4;5;6l\E[?7h\E[m\E[r\E[2J\E[H, rs2=@
X	kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, ht=^I, ri=\EM,
X	vt@, xon@, csr=\E[%i%p1%d;%p2%dr,
X	il=\E[%p1%dL, dl=\E[%p1%dM, il1=\E[L, dl1=\E[M,
X	ich=\E[%p1%d@, dch=\E[%p1%dP, ich1=\E[@, dch1=\E[P,
X	use=vt100-am,
Xxterms|vs100s|xterm terminal emulator (small screen 24x80),
X	cols#80, lines#24,
X	use=xterm,
END_OF_FILE
if test 660 -ne `wc -c <'xterm/terminfo'`; then
    echo shar: \"'xterm/terminfo'\" unpacked with wrong size!
fi
# end of 'xterm/terminfo'
fi
echo shar: End of archive 14 \(of 14\).
cp /dev/null ark14isdone
MISSING=""
for I in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 ; do
    if test ! -f ark${I}isdone ; then
	MISSING="${MISSING} ${I}"
    fi
done
if test "${MISSING}" = "" ; then
    echo You have unpacked all 14 archives.
    rm -f ark[1-9]isdone ark[1-9][0-9]isdone
else
    echo You still need to unpack the following archives:
    echo "        " ${MISSING}
fi
##  End of shell archive.
exit 0
dan
----------------------------------------------------
O'Reilly && Associates   argv at sun.com / argv at ora.com
Opinions expressed reflect those of the author only.



More information about the Comp.sources.x mailing list