home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!gatech!usenet.ins.cwru.edu!agate!ucbvax!decwrl!parc!xerox!putz
- From: putz@Xerox.com (Steve Putz)
- Newsgroups: comp.windows.open-look
- Subject: Re: Why does cmdtool not read .ttyswrc ?
- Message-ID: <1992Jul30.053131.1961@parc.xerox.com>
- Date: 30 Jul 92 05:31:31 GMT
- References: <1992Jul21.122247.18968@u.washington.edu> <1992Jul21.122717.19047@u.washington.edu>
- Sender: news@parc.xerox.com
- Reply-To: putz@Xerox.com (Steve Putz)
- Organization: Xerox PARC
- Lines: 86
-
- In article <1992Jul21.122717.19047@u.washington.edu>,
- sue@byron.u.washington.edu (Shu-Chen Eclipse) writes:
- > does anybody know why cmdtool fail to read/execute .ttywsrc if
- > cmdtool is started with scroll on?? It fails with some error like
- > tty-TIOCCONS no priviledge, or some such.
- >
- > Clicking off scroll, and viola... the key remaps defined in .ttywsrc
- > are
- > magically working?
-
- When in scrolling mode, the cmdtool behaves more like textedit than
- shelltool. You can define function key filters for textedit and cmdtool
- using a .textswrc file (see the textedit(1) man page and the example
- file /usr/lib/textswrc).
-
- You can define simple key macros like:
-
- F2 FILTER
- echo "this is a macro"
-
- Here is what I have in my .textswrc file:
-
- # .textswrc
- # see also: ~/.text_extras_menu, /usr/lib/.textswrc, /usr/lib/.text_extras_menu
-
- F1 FILTER
- echo "\
- F2: define F3: run F4: run C-Shell\
- F10: upper F11: lower F12: Pretty-print C\
- R1: date R3: Shell\
- R4: <-shift R5: shift-> R6: C-Shell\
- "
-
- F2 FILTER
- cat > /tmp/$USER.com
-
- F3 FILTER
- /bin/sh /tmp/$USER.com
-
- F4 FILTER
- /bin/csh -f /tmp/$USER.com
-
- F5 FILTER
- cat /tmp/$USER.com
-
- F6 FILTER
- sort
-
- F7 FILTER
- sort -n
-
- F8 FILTER
- insert_brackets /\* \*/
-
- F9 FILTER
- remove_brackets /\* \*/
-
- F10 FILTER
- capitalize -u
-
- F11 FILTER
- capitalize -l
-
- F12 FILTER
- indent -st
-
- R1 FILTER
- date
-
- R3 FILTER
- /bin/sh
-
- R4 FILTER
- shift_lines -t -1
-
- R5 FILTER
- shift_lines -t 1
-
- R6 FILTER
- /bin/csh -f
-
-
- --
- Steve Putz <putz@parc.xerox.com>
- Xerox Palo Alto Research Center
- Palo Alto, California
-