old_contents: var REPL = require('./REPL');
  var FS = require('./fs');
  
  var Terminal = {
    $PS1: function () {
      return '<span class="who">guest</span>'+
          'on' +
          '<span class="where">' + FS.currentPath + '</span>'+
          '<span class="branch">±master</span>&gt;';
    },
    prompt: function () {
      var row = document.createElement('div');
  
      var span = document.createElement('span');
      span.className = 'ps1';
      span.innerHTML = this.$PS1();
  
  
      var code = document.createElement('span');
      code.className = 'code';
  
      row.appendChild(span);
      row.appendChild(code);
  
      this.container.appendChild(row);
  
      REPL.use(code);
  
      this.status(FS.currentPath);
    },
    status: function(text) {
      if (this.statusbar) {
        this.statusbar.innerText = text;
      }
    },
    init: function (container, statusbar) {
      this.rootContainer = this.container = container;
      this.statusbar = statusbar;
  
      REPL.on('output', function (output) {
        Terminal.stdout(output);
        Terminal.prompt();
      });
  
      this.prompt();
    },
    update: function () {
      codes = this.container.getElementsByClassName('code');
  
      if (!codes.length) {
        this.prompt();
      } else {
        REPL.use(codes[codes.length - 1]);
      }
    },
    stdout: function (output) {
      var out = document.createElement('div');
      out.className = 'code';
      out.innerHTML = output.trim();
  
      this.container.appendChild(out);
  
      var self = this;
      setTimeout(function () {
        self.rootContainer.scrollTop = self.rootContainer.scrollHeight + out.clientHeight;
      }, 0);
    },
    stderr: function (err) {
      this.ouput(err);
    },
    clear: function () {
      this.container.innerHTML = '';
      this.prompt();
    }
  };
  
  module.exports = Terminal;
  
new_contents: var REPL = require('./REPL');
  var FS = require('./fs');
  
  var Terminal = {
    $PS1: function () {
      return '<span class="who">guest</span> ' +
          'on ' +
          '<span class="where">' + FS.currentPath + '</span> '+
          '<span class="branch">±master</span>&gt;';
    },
    prompt: function () {
      var row = document.createElement('div');
  
      var span = document.createElement('span');
      span.className = 'ps1';
      span.innerHTML = this.$PS1();
  
  
      var code = document.createElement('span');
      code.className = 'code';
  
      row.appendChild(span);
      row.appendChild(code);
  
      this.container.appendChild(row);
  
      REPL.use(code);
  
      this.status(FS.currentPath);
    },
    status: function(text) {
      if (this.statusbar) {
        this.statusbar.innerText = text;
      }
    },
    init: function (container, statusbar) {
      this.rootContainer = this.container = container;
      this.statusbar = statusbar;
  
      REPL.on('output', function (output) {
        Terminal.stdout(output);
        Terminal.prompt();
      });
  
      this.prompt();
    },
    update: function () {
      codes = this.container.getElementsByClassName('code');
  
      if (!codes.length) {
        this.prompt();
      } else {
        REPL.use(codes[codes.length - 1]);
      }
    },
    stdout: function (output) {
      var out = document.createElement('div');
      out.className = 'code';
      out.innerHTML = output.trim();
  
      this.container.appendChild(out);
  
      var self = this;
      setTimeout(function () {
        self.rootContainer.scrollTop = self.rootContainer.scrollHeight + out.clientHeight;
      }, 0);
    },
    stderr: function (err) {
      this.ouput(err);
    },
    clear: function () {
      this.container.innerHTML = '';
      this.prompt();
    }
  };
  
  module.exports = Terminal;
  
subject: fix $PS1 space