screen icon indicating copy to clipboard operation
screen copied to clipboard

SendScreen doesnt works on GNU Screen

Open kul opened this issue 11 years ago • 6 comments

I have GNU Screen ( no tmux ) , but ScreenSend just doesnt works for me! ScreenShell works just fine.

Is this due to my custom screen config? How do i debug this?

Thanks

kul avatar Aug 22 '13 12:08 kul

The issue with gnu screen is that I think the only way to reliably target a window is by its name, so when invoking :ScreenShell, that command will set the resulting window's name to screenshell. The problem you may be running into is that something else may be changing the window name. After running :ScreenShell what is the title you see for that new window?

ervandew avatar Aug 23 '13 14:08 ervandew

Hello,

Yes i see the following events. When i issue :ScreenShell python a new tab/pane opens with name screenshell. But as soon as i launch :ScreenSend it changes to python. Also If i dont do anything after sometime like 15-20 sec it changes to python.

Also on my screen when i do <C-a>c and run some program on the new tab, the tab name changes to the running program. Do you know of a workaround?

kul avatar Aug 23 '13 17:08 kul

Hey just checked manually setting windows title again using <C-a>A to screenshell works!

But i am still looking for a better solution.

Also i am open to idea of running tmux inside my screen.vim session ( which is even better as it wont interfere with screen). How do i force screen to use tmux.

kul avatar Aug 23 '13 17:08 kul

If you want to use tmux, you can set the following in your vimrc:

let g:ScreenImpl = 'Tmux'

Tmux should work better in this regard.

ervandew avatar Aug 23 '13 17:08 ervandew

Just one last thing before i close this, Is it true for using tmux inside screen.vim you have to actually start tmux before entering vim?

kul avatar Aug 23 '13 18:08 kul

You don't have to start tmux first, but if your are in an existing gnu screen session, I don't think screen.vim will work correctly attempting to run ScreenShell with g:ScreenImpl set to Tmux. I may be able to fix that if necessary though.

ervandew avatar Aug 23 '13 20:08 ervandew