       else
         tkill @ghci.pid, 'SIGINT'
     @finished = true
-    @emitter.emit 'response', 'Interrupted' + EOL
+    @emitter.emit 'response', 'Interrupted\n'
 
   writeLines: (lines) =>
     return false unless @isActive()

      @ghci.stderr.pause()
      @errorBuffer = []
      @responseBuffer = []
      @ghci.stdin.write ":{#{EOL}"
      lines.forEach (line) =>
        @ghci.stdin.write line + EOL
      @emitter.emit 'input', lines.join('\n') + '\n'
      @ghci.stdin.write ":}#{EOL}"
      @ghci.stdout.resume()
      @ghci.stderr.resume()
      return true
    else
      @ghci.stdin.write lines.join(EOL)
      @emitter.emit 'response', "> \"#{lines.join('\\n')}\"#{EOL}"
      return true

  historyBack: (current) ->

      @process.on 'exit', (code) =>
        @ghci = null
        if code isnt 0
          @emitter.emit 'error', @errorBuffer.join('\n') + '\n'
        @emitter.emit 'exit', code
        @disposables.dispose()

