Re: Help with keybinding and exec command

"dan d." <[email protected]>
Newsgroups gmane.comp.gnu.screen.user
Message-ID <[email protected]>
I'm wanting to run a shell script.

Do I use metakey+h in your example or h alone?

As I recall ctrl+h,ie. ^h would be possible also?

I see web examples with bindkey, how is that different?

Thanks for your help.

On Thu, 7 Dec 2017, David Woodfall wrote:

> >Can you provide more details?
> >
> >bind h exec /usr/bin/htop
> >
> >works for me to start htop and returns when I quit.
> >
> >On Thu, Dec 7, 2017 at 7:42 PM, dan d. <[email protected]> wrote:
> >
> >>
> >> Hello,
> >>
> >> Years ago I had a screenrc with a key binding that allowed using the exec
> >> command.
> >>
> >> It would drop me to a sub-shell and return when finished.
> >>
> >> Despite all attempts to duplicate it from google examples and poor recall,
> >> I have had only failures.
> >>
> >> Can someone help me please with a sample keybinding and/or other info that
> >> would do this?
> >>
> >> Thnks.
> >> --
> >>
> >> --
> >> XB
>
> You can also bind to open a new screen with a command and have it
> close when you quit:
>
> bind z screen /usr/bin/htop
>
> D
>
> _______________________________________________
> screen-users mailing list
> screen-users-mXXj517/[email protected]
> https://lists.gnu.org/mailman/listinfo/screen-users
>

-- 
XB
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.