|
From: | J. David Smith |
Subject: | Re: [STUMP] Using run-or-raise to manage pre-configured windows inatmux session |
Date: | Wed, 9 Apr 2014 11:30:51 -0400 |
>@Michael Raskin: that'll send the command to a *new* shell, not theCan't tmux send commands to a preexisting session? I use this screen
>existing mlterm session.
functionality a lot and always assumed tmux also has something like
that. It is somewhat more reliable than emulating key events…
Literal line break should work, though.
>Bjergaard's solution works -- at least with urxvt.
>
>Here is a sample that runs ls in a non-emacs urxvt client window:
>
>(defcommand ls () ()
>
> (run-or-raise "urxvtc" '(:class "URxvt" :title "^(?!emacs)"))
>
> (window-send-string (format nil "ls~%")))
>
>Using (format nil "ls~%") is necessary, the C-style "ls\n" will not work.
"ls
"
[Prev in Thread] | Current Thread | [Next in Thread] |