<div>Hi,</div>
<div> </div>
<div>I work on a command line tool (powered by escript) that needs to launch a</div>
<div>text editor (vim for instance) at a certain point. I tried to do something like</div>
<div> </div>
<div> os:cmd('vim xxx').</div>
<div> </div>
<div>It works almost fine, except that vim isn't connected to the terminal while</div>
<div>it's running. Insted, vim is connected to the erlang process, and I cannot</div>
<div>see anything in the terminal window and cannot quit vim with ":q", or any</div>
<div>other keys, because keypresses are not sent to the proper process.</div>
<div> </div>
<div>How can I start a process and allow it to have control over the terminal</div>
<div>and ask the VM to wait until the subprocess terminates?</div>
<div> </div>
<div>S.</div>
<div> </div>