Navigation
C-c C-n
C-c C-p
Move point to the beginning of the input for the next or previous prompt. With a prefix argument, move to the n-th next or previous prompt.
C-c C-r
C-M-l
Move point to the start of the previous command’s output and display it at the top of the window. With a prefix argument, this also narrows the region to the last command’s output.