ervandew / screen

Simulate a split shell in vim using gnu screen or tmux
202 stars 31 forks source link

annoying "slurped X characters into buffer" message every time I call :ScreenSend #4

Closed benwbooth closed 13 years ago

benwbooth commented 13 years ago

I'm using screen.vim 1.1 and screen 4.00.03jw4. When I do a :ScreenSend, I get this message from the screen session:

"slurped X characters into buffer", with X being the number of characters sent to the screen session. After searching the documentation for screen, I found out how to hide this message. The function screenGnuScreen.sendTempBuffer needs to have a "msgwait 0" line, as well as the existing "msgminwait 0":

 function s:screenGnuScreen.sendTempBuffer(tmp) dict " {{{
if exists('g:ScreenShellWindow')
    let result = self.exec(
    \ '-p ' . g:ScreenShellWindow .  ' -X eval ' .
    \ '"msgminwait 0" ' .
    \ '"msgwait 0" ' .
    \ '"readbuf ' . a:tmp . '" ' .
    \ '"at ' . g:ScreenShellWindow . ' paste ." ' .
    \ '"msgwait 5" ' .
    \ '"msgminwait 1"')
else
    let result = self.exec(
    \ '-X eval ' .
    \ '"msgminwait 0" ' .
    \ '"msgwait 0" ' .
    \ '"readbuf ' . a:tmp . '" ' .
    \ '"paste ." ' .
    \ '"msgwait 5" ' .
    \ '"msgminwait 1"')
endif
return result
endfunction " }}}

After inserting the msgwait 0 lines, the problem was solved for me.

ervandew commented 13 years ago

Thank you for taking the time to find a fix, but another user reported this issue a few weeks ago and I committed the same solution ;) ervandew/screen@1389b0904b2c0cba7f359fd747c6a9c989f76f1e