Octave 6.2, using up/down arrows for command history in 'input' function

128 views Asked by At

When using the Octave input function, e.g.

a = input('Value of a: ');

and entering, say, 5, this of course sets a=5. When I press the up arrow to access the most recent command history, instead of going back to 5, goes back to defining a with the input function again (and, unsurprisingly, the 5 does not show up in the Octave GUI command history window). Is there a setting, action to take, or alternative method to use to access input function key-presses as well? I recall that these key-presses were kept in command history and accessible with the arrow keys by default in Matlab, at least in the versions from the early 2010's.

This is a simple example of course, but I have a larger script with multiple input functions (some of them requiring fairly large strings), and since I'm only using the input function to interact with the script while it's running, I effectively have no access to any command history at all during this process. Thanks for any advice you can offer.

0

There are 0 answers