-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Gorsuch, Ryan wrote:
> 
> The manual indicates that I can bind several commands to a key using the
> "process" command but no examples or syntax are given.
> 
> What I'd like to do is bind the sequence: "C-a s 1" to the commands:
> "split, focus, select 1" using a command class. What I have in mind is:
> 
>   bind 's' command -c split_and_switch
>   bind -c split_and_switch 0 split, focus, select 0
>   bind -c split_and_switch 1 split, focus, select 1
>   bind -c split_and_switch 2 split, focus, select 2
> 
> But I can't find any examples for binding multiple commands together.
> Any suggestions?

It could be used for that, but you really want "eval".

 bind -c split_and_switch 0 eval split focus "select 0"

- --
HTH,
Micah J. Cowan
Programmer, musician, typesetting enthusiast, gamer.
GNU Maintainer: wget, screen, teseq
http://micah.cowan.name/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkkbYb0ACgkQ7M8hyUobTrFAxgCfXqaOZHobuGbA0LebdqXu4DtY
6HQAn38fO+WheHYyDNTDQFyRbMBu19Aw
=L/l4
-----END PGP SIGNATURE-----


_______________________________________________
screen-users mailing list
screen-users@gnu.org
http://lists.gnu.org/mailman/listinfo/screen-users

Reply via email to