screen-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help with keybinding and exec command


From: dan d.
Subject: Re: Help with keybinding and exec command
Date: Fri, 8 Dec 2017 09:13:39 -0500 (EST)
User-agent: Alpine 2.21 (OSX 202 2017-01-01)

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. <address@hidden> 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
> address@hidden
> https://lists.gnu.org/mailman/listinfo/screen-users
>

-- 
XB



reply via email to

[Prev in Thread] Current Thread [Next in Thread]