From f975ada6569e604b0ae0c0228e476b33820cf70b Mon Sep 17 00:00:00 2001 From: Dan Stowell Date: Thu, 18 Feb 2010 20:30:45 +0000 Subject: [PATCH] scvim: now compatible with gnu screen, opens post window using screen, making it compatible with a pure-CLI environment git-svn-id: https://supercollider.svn.sourceforge.net/svnroot/supercollider/trunk@9856 a380766d-ff14-0410-b294-a243070f3f08 --- common/build/ChangeLog | 1 + editors/scvim/ftplugin/supercollider.vim | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/common/build/ChangeLog b/common/build/ChangeLog index ddba232eda9..02e51be8bdb 100644 --- a/common/build/ChangeLog +++ b/common/build/ChangeLog @@ -26,6 +26,7 @@ Headlines: * 2010-01-02 scsynth: use osc-compilant address patterns for server/lang communication - tb * 2010-01-24 add readline interface to sclang command-line. This is used by default when invoking "sclang" (to use the non-readline interface set the "-i" option to something other than "none") - ds * 2010-01-24 enable GPL3 code by default - this 'upgrades' the overall binary license from GPL2+ to GPL3+, and allows supercollider to benefit from GPL3+ libraries such as libsimdmath and gnu readline - ds +* 2010-02-18 scvim: now compatible with gnu screen, opens post window using screen, making it compatible with a pure-CLI environment - ds Bugfixes: --------- diff --git a/editors/scvim/ftplugin/supercollider.vim b/editors/scvim/ftplugin/supercollider.vim index dbffe614237..1b1b029c269 100644 --- a/editors/scvim/ftplugin/supercollider.vim +++ b/editors/scvim/ftplugin/supercollider.vim @@ -201,7 +201,11 @@ endfunction function SClangStart() if !filewritable(s:sclangPipeAppPidLoc) - call system(s:sclangTerm . " " . s:sclangPipeApp . "&") + if $TERM[0:5] == "screen" + call system("screen -D -R -X split; screen -D -R -X focus; screen -D -R -X screen " . s:sclangPipeApp . "; screen -D -R -X focus") + else + call system(s:sclangTerm . " " . s:sclangPipeApp . "&") + endif else throw s:sclangPipeAppPidLoc . " exists, is " . s:sclangPipeApp . " running? If not try deleting " . s:sclangPipeAppPidLoc endif