screen
screen copied to clipboard
SendScreen doesnt works on GNU Screen
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
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?
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?
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.
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.
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?
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.