craig@cs.toronto.edu (Craig MacDonald) (10/20/90)
I have just been introduced to a utility to create multiple logical screens on my xt100+ called screen (version SGI 4D series ansi 2.0a). I have been attempting to customize this by creating a .screenrc file. Can anyone show me how to bind a character to a combination of this type:- bind ^<char> < Screen utility > | < shell script file > for instance bind ^<char> < make hardcopy of screen n contents > | lpr bind ^<char> < shell script file > - | takes as input the | current window number | as an argument. I am not sure if this is possible without modifying the source. If anyone has used this utility extensively I would be interested in the limitations of bind. I have also tried to toggle between 80/132 columns and had problems. The screen bind 'C-a W' doesn't alter my terminal, so that I must toggle physical terminal settings as well. The latter could be done by echoing cntl characters to the terminal. Craig Mac Donald craig@na.toronto.edu
dan@kfw.COM (Dan Mick) (10/21/90)
In article <90Oct19.184855edt.2316@smoke.cs.toronto.edu> craig@cs.toronto.edu (Craig MacDonald) writes: >Can anyone show me how to bind a character to a combination >of this type:- > >bind ^<char> < Screen utility > | < shell script file > >for instance >bind ^<char> < make hardcopy of screen n contents > | lpr Well, it's hard to sort out just what you mean, since as an "instance" you give damnear exactly what you write as the general form (!), but, assuming you really mean "can I put general commands in the bind actions", the answer is implicitly answered by the manpage, which says something a lot like "the actions may be one of the following keywords, or a command to start a new screen with a new default command". The simple source, function ReadRc(), bears this out. I found this out in 1 minute. BTW, on my system at least, lpr is definitely not a shell script..