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

  
  dump: (object) ->
    try
      html = Console.valueToHtml object, collapse: true
      $('<div>')
      .addClass('console-dump')
      .append(html)
      .appendTo(@buffer)
    finally
      @cullBuffer()
      @scrollToBottom()

$ ->
