Menu

What is Notebook mode?

2002-10-14
2002-10-15
  • Trey Jackson

    Trey Jackson - 2002-10-14

    Could you explain the difference between notebook mode
    and shell-mode?  They sound very similar (other than terminology).

     
    • Fred Gylys-Colwell

      The main difference between shell mode and notebook
      mode is this: in shell mode, the output from the shell
      is appended to the bottom of the buffer.  In notebook
      mode, the output is put right after the input.

      In notebook mode, if you send a second command to the
      shell before the first on is done, the first command's
      output will still be right after the first command, and
      when the the second command's output arrives, it will
      appear right after its input.

      Also, if you go to the top of the buffer and modify the
      input of your first command, and send it again, then
      the old output of the first command will be replaced by
      the new output, when it arrives.

      Finally, if you save the file, you can load it another
      day and run the command 'nb-send-input-buffer' (C-c
      C-b) and all of the inputs in the buffer will be resent
      to the shell.  Or you can just use [M-Enter] to send
      the commands one at a time.  In that way, notebook mode
      can be used like an interactive shell script -- you get
      to see the output of each command.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.