How would I write a screen command file named last1k
that uses your ^L command approach to hardcopy the last 1000 lines?
TIA Jurgyman



On Thursday, July 31, 2014 10:33 PM, Jim Mahood <j...@mahood.com> wrote:
 


Nice solution combined with tab completion.  :-)  Thanks Gerald!
On Jul 31, 2014 12:45 PM, "Gerald Young" <gerald.yo...@wirelesszt.com> wrote:

Hi,
>
>What I do is have a keystroke binding which types in this:
>C-a :source /home/user/Screen/
>
>But it doesn't actually submit the command. Then I can manually type in the
>command I want to run, like so:
>C-a :source /home/user/Screen/command
>
>And hit enter to execute. The command is actually a screen script stored at
>that location. So adding new commands is matter just of adding new script
>files.
>
>Here's the actual binding:
>bind ^L eval 'register z ":source /home/user/Screen/"' 'command' 'process z'
>
>Regards,
>Gerald
>
>On Thursday, July 31, 2014 10:35:31 AM Dun Peal wrote:
>> Folks,
>>
>> There's a sequence of screen operations that I execute every once in a
>> while. I can use `bind` and `eval` to execute it by keystroke, but it
>> is not used commonly enough to justify a keystroke binding.
>>
>> Is there a way to define it such that I can execute it by running a
>> custom command on the `C-a :` command line?
>>
>> So for example, I'd define it as custom command `foo`, such that when
>> I hit `C-a :` then type `foo` and press enter, the sequence of screen
>> commands gets executed.
>>
>> Thanks, D.
>>
>> _______________________________________________
>> screen-users mailing list
>> screen-users@gnu.org
>> https://lists.gnu.org/mailman/listinfo/screen-users
>
>_______________________________________________
>screen-users mailing list
>screen-users@gnu.org
>https://lists.gnu.org/mailman/listinfo/screen-users
>
_______________________________________________
screen-users mailing list
screen-users@gnu.org
https://lists.gnu.org/mailman/listinfo/screen-users
_______________________________________________
screen-users mailing list
screen-users@gnu.org
https://lists.gnu.org/mailman/listinfo/screen-users

Reply via email to