Re: [STUMP] Using run-or-raise to manage pre-configured windows inatmux session

"J. David Smith" <[email protected]>
Newsgroups gmane.comp.window-managers.stumpwm.devel
Message-ID <CAB1hFKoVUTrcUxRBS4ZXyVZ9h0QZaoFmXZD9q5M_P4mx-sbOuA@mail.gmail.com>
Not sure about tmux being able to do that, I don't use it myself. If it
can, great. If not, then (window-send-string) is the way to go.


On Wed, Apr 9, 2014 at 11:28 AM, Michael Raskin <[email protected]> wrote:

> >@Michael Raskin: that'll send the command to a *new* shell, not the
> >existing mlterm session.
>
> Can't tmux send commands to a preexisting session? I use this screen
> functionality a lot and always assumed tmux also has something like
> that. It is somewhat more reliable than emulating key events…
>
> >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.
>
> Literal line break should work, though.
>
> "ls
> "
>
>
>
>

_______________________________________________
Stumpwm-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/stumpwm-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.