     @history = [ ]
     @history.limit = 100
     @history.index = -1
+    
+    @bufferLimit = 20
     
     @input.keydown (event) => @handleKey(event)
   

    .addClass(options?.class ? 'console-message')
    .text("#{message}")
    .appendTo(@buffer)
    return
  
  info:  (message) -> @log message, class: 'console-info'

    @root.scrollTo '100%'
    return
  
  cullBuffer: ->
    children = @buffer.children()
    overflow = children.length - @bufferLimit
    if overflow > 0
      children.slice(0, overflow).remove()
  
  # I'd love to use CSS transitions but they don't work when the display
  # style changes.
  show: ->
