Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!gem.mps.ohio-state.edu!ginosko!uunet!hi-csc!bergstr From: bergstr@hi-csc.UUCP (Darryl Bergstrom) Newsgroups: comp.sys.apollo Subject: Re: more Message-ID: <448d680c.12c4f@hi-csc.UUCP> Date: 21 Jul 89 13:02:00 GMT References: <8441@batcomputer.tn.cornell.edu> Reply-To: bergstr@hi-csc.UUCP (Darryl Bergstrom) Organization: csdd Lines: 66 In article <8441@batcomputer.tn.cornell.edu> braner@tcgould.tn.cornell.edu (Moshe Braner) writes: >The Apollo "more" tool chooses it's own font, and takes a lot >of time to start up. Quite annoying when, e.g., reading mail >letter by letter (with PAGER=more). Is there an alternative? >Has somebody written a simple "more" that does not do cursor >addressing (and thus escapes the vt100 emulator)? >Thanks. >- Moshe > Put something like this in your .login/.cshrc (take your pick) switch (`tty`) case '/dev/tty': case '/dev/display': echo "Terminal type is: $TERM" setenv EDITOR ~/com/dm_editor setenv VISUAL ~/com/dm_editor setenv PAGER /com/crpad breaksw default: set term=unknown source ~/com/termset setenv EDITOR /usr/ucb/vi setenv PAGER ~/com/less stty erase  kill ^U intr ^C quit ^] start ^Q stop ^S eof ^D \ susp ^Z rprnt ^R flush ^O werase ^W lnext ^V crtkill crterase -nohang endsw and here is the script dm_editor #!/com/sh # This is a shell hook into the apollo display manager editor. # Author R. Cloutier -- Aug 8 1986 # Darryl Bergstrom -- June 10 1989 # # This aegis shell script will open a dm editor window to the file that # is passed as the first argument to this script. # # change the line below if you want to run on SR9 display ==> tty IF eqs ((^"/usr/bin/tty")) "/dev/display" THEN # uncomment this line if you want to have caps mapped to :x in SR9 # xdmc ce ((^"args ^1 | /bin/sed -e 's/[A-Z]/:&/g'")) xdmc ce ^1 IF eqs ^1 THEN args "You must supply a filename:" "^0 filename" ELSE # readc -p "Hit the return key AFTER you have saved the file: ^1" ans while llkob | fpat ^1 > /dev/null do enddo ENDIF ELSE args "Cannot use a display manager edit window, using ex, instead." /bin/ex ^1 ENDIF This works here at hi-csc and should elsewhere. Much faster you get to use the DM editor. -- -Darryl Bergstrom -Honeywell Sensor & System Development Center, Golden Valley, Mn -UUCP: uunet!hi-csc!bergstr -ARPA: bergstr@hi-csc.honeywell.com || darryl@ux.acss.umn.edu