File:  [Research Unix] / researchv10dc / 630 / bin / nmw
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:21:34 2018 UTC (8 years, 1 month ago) by root
Branches: belllabs, MAIN
CVS tags: researchv10, HEAD
researchv10 Dan Cross

#! /bin/sh
#
#	mw - initiate a research-style mux window on the 630
#

case $# in
0)	;;
*)	echo "usage: $0"
esac

# hack to extract some interesting stty modes. This is V9-dependent.
# first, extract current `nl' and `echo' settings...

resettty=`stty | sed -n 4p | cut -f3,4 -d" "`

# now, some characters of interest to the mux window (this is
# a _real_ kludge: mw.m doesn't know if we change it after
# this because it is not a terminal driver.)

chars=`	stty		|
	tr ';' '\012'	|
	sed -e "/ = /!d
		s/[ ]*\([a-z]*\) = \(.*\)/\1 \2/"`
	
dmdld /usr/630/mbin/nmw.m $chars

trap 'stty $resettty' 0 3 13 15
stty -echo
exec sh

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.