[Top][All Lists]

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

Using the stuff command in screen

From: dan d.
Subject: Using the stuff command in screen
Date: Sat, 11 Apr 2020 11:28:34 -0400 (EDT)
User-agent: Alpine 2.22 (OSX 394 2020-01-19)

I recently recieved help here with the eval command to attach a stack of 
commands to a key binding.
In one version i use the exec command on a key binding to call a shell script 
containing the screen commands, it works perfectly.
This made it easy to experiment by just changing the script file.
I thought the stuff command which seemed to me to allow making macros for any 
program with key bindings and shell scripts also.
That screen command can send keyboord commands to a program instead of shell 
I have run into a problem.  I set up a shell script using the stuff command to 
 I use lynx a text only web browser; I wanted a stuff macro which starts with 
entering an "o" to enter the options selection section of it.
The idea was to allow a series of lynx commands to change an option on the fly, 
the "o" was the first of them.

The "o" appeared on the lynx program screen as though entered as typed text; it 
did not initiate entry into the options section as it does manually
I tried it in a text editor, the "o" appeared as though entered manually.

Any ideas?

Thanks for any help.


reply via email to

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