Re: Help with keybinding and exec command

David Woodfall <[email protected]>
Newsgroups gmane.comp.gnu.screen.user
Message-ID <20171207215628.GD5477@Blackswan>
>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
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.