     @execute_code input.join(' ')
     chain.next()
 
-  colorizeLastLine: (prompt, code, lang = @compiler.mode()) ->
+  colorizeLastLine: (prompt, code, lang) ->
     done = false
     pygmentize {lang, format: "terminal"}, code, (_, res) =>
       done = true

    @output.send @compiler.execute(@code + @indent + code, language)
    @code = @indent = ''

  execute_code: (code, language = null) ->
    try
      shouldDecreaseIndent = code.match(/^\s*(\}|\]|else|catch|finally|else\s+if\s+\S.*)$/)?

      prompt = @prompt.cli._prompt


      # process.stdout.moveCursor(0, -1)
      # console.log prompt + code
      @colorizeLastLine(prompt, code, language) if code

      shouldIncreaseIndent = code.match(///^\s*(.*class
        |[a-zA-Z\$_](\w|\$|:|\.)*\s*(?=\:(\s*\(.*\))?\s*((=|-)&gt;\s*$)) # function that is not one line
