       syntaxTree = @interpreter.parse commandLine
     catch error
       @print error.message
+      @scrollToBottom()
       return
 
     try

    catch error
      @print error.message

  # Send a text to the terminal output, on one line
  #
  # lines [String...]
  print: (lines...) =>
    for line in lines
      @outputDiv.append(document.createTextNode(line)).append '<br>'


# Class responsible for syntax analysis (parsing) and execution
# of the command-lines in the terminal

  #
  # terminalScreen [jQuery] jQuery element for the terminal-screen div
  constructor: (terminalScreen) ->
    @container = terminalScreen
    @interpreter = new CommandInterpreter

    @output = []  # [String[]] output lines, including commands entered by the player
