Page-Up Page-Down in MATLAB terminal

3 views (last 30 days)
Hi,
I am running MATLAB with no display on a linux machine. For some reason, I am unable to scroll up and down using the page-up / page-down keys.
When I press page-up, I am actually scrolling through the command history instead of shifting the viewing window up. A similar thing happens when I press page-down.
I read somewhere else that holding the CTRL key while pressing page-up and page-down could resolve the issue. But I am getting [5;5~ and [6;5~ when I hold the CTRL key.
How do I scroll up and down in the terminal? If I can't get the page-up / page-down keys working, is there some other way, like using a command to scroll the viewing window up / down?
Thanks.

Accepted Answer

Walter Roberson
Walter Roberson on 26 Feb 2014
Are you using the machine console with no graphics running? Or are you connecting via serial port? If neither, then although you might be running with -nodisplay you would be running inside a terminal session provided by Linux (e.g., xterm) and that would be the tool that would offer scrolling.
  1 Comment
Jrand
Jrand on 26 Feb 2014
I did echo $TERM, then searched for the relevant document. In xterm, it is indeed shift and page-up / page-down to scroll up / down. I happened to be in the screen program.

Sign in to comment.

More Answers (0)

Categories

Find more on Images in Help Center and File Exchange

Tags

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!