Hi, Perhaps you could use capture-pane and some script logic to grab the last line from a pane ?
thx, -m On Tuesday, August 3, 2021 at 4:45:11 AM UTC-4 [email protected] wrote: > Hi > > This would be a shell feature rather than a tmux feature. > > > On Mon, 2 Aug 2021 at 23:08, Robin Stern <[email protected]> wrote: > >> Hi, >> >> Is there a way to get the intact string of last command I entered in a >> tmux pane. >> >> For instance after I type: >> >> >> echo "Hello world from pane-1" >> >> and run a script with some command like "tmux_get_command pane1", it >> should echo >> >> echo "Hello world from pane-1" >> >> Thanks, >> >> Robin >> >> -- >> You received this message because you are subscribed to the Google Groups >> "tmux-users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To view this discussion on the web, visit >> https://groups.google.com/d/msgid/tmux-users/b2929f96-fe92-4724-a6b5-37676672e0b9n%40googlegroups.com >> >> <https://groups.google.com/d/msgid/tmux-users/b2929f96-fe92-4724-a6b5-37676672e0b9n%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > -- You received this message because you are subscribed to the Google Groups "tmux-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web, visit https://groups.google.com/d/msgid/tmux-users/4a39fb7e-47ec-483b-a4ce-b03f4553141cn%40googlegroups.com.
