     node.fs.exists dir, (doesExist) ->
       if doesExist
         node.process.chdir(dir)
+        controller.promptLabel = ps1()
       else
         controller.message "Directory #{dir} does not exist.\n", 'error', true
       controller.reprompt()

  h = $(window).height() * 0.7
  $('#console').height(h)
  $('#source').height(h)

$(window).resize(onResize)



  jqconsole = $('#console')
  controller = jqconsole.console
    promptLabel: ps1()
    commandHandle: (line) ->
      [cmd,args...] = line.trim().split(/\s+/)
      if cmd == '' then return true
