   #
   # 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

      syntaxTree = @interpreter.parse commandLine
    catch error
      @print error.message
      return

    try

    catch error
      @print error.message

    @scrollToBottom()

# 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>'

  scrollToBottom: =>
    console.log "scroll #{@container[0].scrollHeight}"
    @container.animate scrollTop: @container[0].scrollHeight, 200, "swing"

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