home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / windows / openloo / 3298 < prev    next >
Encoding:
Internet Message Format  |  1992-07-30  |  2.0 KB

  1. Path: sparky!uunet!gatech!usenet.ins.cwru.edu!agate!ucbvax!decwrl!parc!xerox!putz
  2. From: putz@Xerox.com (Steve Putz)
  3. Newsgroups: comp.windows.open-look
  4. Subject: Re: Why does cmdtool not read .ttyswrc ?
  5. Message-ID: <1992Jul30.053131.1961@parc.xerox.com>
  6. Date: 30 Jul 92 05:31:31 GMT
  7. References: <1992Jul21.122247.18968@u.washington.edu> <1992Jul21.122717.19047@u.washington.edu>
  8. Sender: news@parc.xerox.com
  9. Reply-To: putz@Xerox.com (Steve Putz)
  10. Organization: Xerox PARC
  11. Lines: 86
  12.  
  13. In article <1992Jul21.122717.19047@u.washington.edu>,
  14. sue@byron.u.washington.edu (Shu-Chen Eclipse) writes:
  15. > does anybody know why cmdtool fail to read/execute .ttywsrc if
  16. > cmdtool is started with scroll on?? It fails with some error like
  17. > tty-TIOCCONS no priviledge, or some such.
  18. > Clicking off scroll, and viola... the key remaps defined in .ttywsrc
  19. > are
  20. > magically working?
  21.  
  22. When in scrolling mode, the cmdtool behaves more like textedit than
  23. shelltool.  You can define function key filters for textedit and cmdtool
  24. using a .textswrc file (see the textedit(1) man page and the example
  25. file /usr/lib/textswrc).
  26.  
  27. You can define simple key macros like:
  28.  
  29. F2    FILTER
  30. echo "this is a macro"
  31.  
  32. Here is what I have in my .textswrc file:
  33.  
  34. # .textswrc
  35. # see also: ~/.text_extras_menu, /usr/lib/.textswrc, /usr/lib/.text_extras_menu
  36.  
  37. F1    FILTER
  38. echo "\
  39. F2:  define    F3:  run    F4:  run C-Shell\
  40. F10: upper    F11: lower    F12: Pretty-print C\
  41. R1:  date            R3:  Shell\
  42. R4:  <-shift    R5:  shift->    R6:  C-Shell\
  43. "
  44.  
  45. F2    FILTER
  46. cat > /tmp/$USER.com 
  47.  
  48. F3    FILTER
  49. /bin/sh /tmp/$USER.com
  50.  
  51. F4    FILTER
  52. /bin/csh -f /tmp/$USER.com
  53.  
  54. F5    FILTER
  55. cat /tmp/$USER.com
  56.  
  57. F6    FILTER
  58. sort
  59.  
  60. F7    FILTER
  61. sort -n
  62.  
  63. F8    FILTER
  64. insert_brackets /\* \*/
  65.  
  66. F9    FILTER
  67. remove_brackets /\* \*/
  68.  
  69. F10    FILTER
  70. capitalize -u
  71.  
  72. F11    FILTER
  73. capitalize -l
  74.  
  75. F12    FILTER
  76. indent -st
  77.  
  78. R1    FILTER
  79. date
  80.  
  81. R3    FILTER
  82. /bin/sh  
  83.  
  84. R4    FILTER
  85. shift_lines -t -1
  86.  
  87. R5    FILTER
  88. shift_lines -t 1
  89.  
  90. R6    FILTER
  91. /bin/csh -f
  92.  
  93.  
  94. -- 
  95. Steve Putz <putz@parc.xerox.com>
  96. Xerox Palo Alto Research Center
  97. Palo Alto, California
  98.