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

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

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

ps1 = -> node.process.cwd() + '$ '

$(window).resize(onResize)

