On 16/05/13 13:50, Matthew Cengia wrote: > On 2013-05-16 12:27, Toby Corkindale wrote: >> I just wondered.. are there any terminals*, plugins for terminals, or >> plugins for tmux, that will scan output and automatically send canned >> responses -- whilst still letting me interact normally the rest of the time? >> >> And secondly -- are there any tools that will simply let me assign >> hotkeys or macros to be automatically typed upon being pressed? >> >> That latter request seems simple, but I didn't get much joy when >> searching online for likely packages. > > I can't speak for tmux, but for screen, I do things like the following > in my .screenrc: > > ## Fancy regexp to grep out blank lines and comment lines > bind ^g stuff '"^[[:space:]]*(#|$)"' > > Which says "when I hit the screen escape key followed by ctrl+g, type > "^[[:space:]]*(#|$)" (including quotes) into my current screen window. > > Tmux may have an equivalent to this, assuming this is the sort of thing > you're looking for.
Thanks - this totally covers one of the two things I was looking for. I can add to .tmux.conf: bind-key C-h send-keys -l "hello world!\n" _______________________________________________ luv-main mailing list [email protected] http://lists.luv.asn.au/listinfo/luv-main
