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

unix.superglobalmegacorp.com

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