Re: Using the stuff command in screen

2020-04-13 Thread Marcin Cieslak
On Mon, 13 Apr 2020, dan d. wrote: I can run the shell script but not an alias or function with the exec. Is there a way to run an alias or function with exec? I don't know what exactly you are doing (I think the program's "exec" function has nothing to do with screen), but the availability

Re: Using the stuff command in screen

2020-04-13 Thread Dave Woodfall
On 2020-04-13 20:33, dan d. put forth the proposition: > > Thanks to those who provided suggestions on this topic. > > To recap, using a keybinding for the exec command to run a shell script > didn't work with the stuff command. > I wanted stuff to send keystrokes to a program to act as a macro,

Re: Using the stuff command in screen

2020-04-13 Thread dan d.
Thanks to those who provided suggestions on this topic. To recap, using a keybinding for the exec command to run a shell script didn't work with the stuff command. I wanted stuff to send keystrokes to a program to act as a macro, it was in the shell script. Doing some tinkering, if I ran the

Re: Using the stuff command in screen

2020-04-12 Thread Dave Woodfall
On 2020-04-11 11:28, dan d. put forth the proposition: > > 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. >

Re: Using the stuff command in screen

2020-04-11 Thread Neal Fultz
Starting lynx and running "stuff o" from the screen command mode (^A :) brings up the options page for me. The problem might be higher up the stack? If you want to dig in further, strace should let you watch the keystrokes it as you are manually testing, I would strace both the screen process and

Using the stuff command in screen

2020-04-11 Thread dan d.
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.