Annotation of researchv10dc/630/bin/mw, revision 1.1.1.1

1.1       root        1: #! /bin/sh
                      2: #
                      3: #      mw - initiate a research-style mux window on the 630
                      4: #
                      5: 
                      6: case $# in
                      7: 0)     prog=/usr/630/mbin/mw.m
                      8:        # hack to extract some interesting stty modes. This is V9-dependent.
                      9:        # first, extract current `nl' and `echo' settings...
                     10:        
                     11:        resettty=`stty | sed -n 4p | cut -f3,4 -d" "`
                     12:        
                     13:        # now, some characters of interest to the mux window (this is
                     14:        # a _real_ kludge: mw.m doesn't know if we change it after
                     15:        # this because it is not a terminal driver.)
                     16:        
                     17:        chars=` stty            |
                     18:                tr ';' '\012'   |
                     19:                sed -e "/ = /!d
                     20:                        s/[ ]*\([a-z]*\) = \(.*\)/\1 \2/"`;;
                     21: 1)     prog="$1";;
                     22: *)     echo "usage: $0 [mwterm.m]"
                     23: esac
                     24: 
                     25:        
                     26: dmdld $prog $chars
                     27: 
                     28: trap 'stty $resettty' 0 3 13 15
                     29: stty -echo
                     30: exec sh

unix.superglobalmegacorp.com

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