title: Using sbt in Cygwin, run the "~run" of play2, can't send Ctrl-D to it
body: <p>When I use sbt in cygwin terminal. run the "~run", how to send Ctrl + D.</p>
  
  <hr>
  
  <h2>sbt script file</h2>
  
  <pre><code>#! /usr/bin/env sh
  
  if [ -z "${JPDA_PORT}" ]; then
    DEBUG_PARAM=""
  else
    DEBUG_PARAM="-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=${JPDA_PORT}"
  fi
  
  dir=`dirname $0`
  SBT_LAUNCH_JAR=sbt-launch-0.11.2.jar
  if [ `uname -o` == "Cygwin" ]
  then
    SBT_LAUNCH_JAR_PATH=$(cygpath -w -a $dir/$SBT_LAUNCH_JAR)
    JLINE_TERMINAL=-Djline.terminal=jline.UnixTerminal
  else 
    SBT_LAUNCH_JAR_PATH=$dir/$SBT_LAUNCH_JAR
  fi
  
  JAVA_ARGS="-Xms512M -Xmx1024M -Xss1M -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=384M $JLINE_TERMINAL -Dfile.encoding=UTF8"
  
  java ${DEBUG_PARAM} ${JAVA_ARGS} -jar $SBT_LAUNCH_JAR_PATH "$@"
  </code></pre>
  
  <hr>
  
  <h2>cygwin environment</h2>
  
  <pre><code>CYGWIN=nodosfilewarning,tty
  </code></pre>