octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #61000] clc command does not totally clean the


From: Arnold Wright
Subject: [Octave-bug-tracker] [bug #61000] clc command does not totally clean the command window. The history can still be traversed using the scroll bar.
Date: Sat, 16 Apr 2022 21:11:52 -0400 (EDT)

Follow-up Comment #10, bug #61000 (project octave):

Rick and John, it seems that you may have missed a distinction Giang may have
been trying to express with regards to the "history".

It seems Octave keeps clc() and home() the same, while Matlab differentiates
between the two.  Matlab's home() does exactly what Octave clc() currently
does (home the cursor, make window empty, scrollbar at the bottom), while
Matlab" clc() additionally clears the terminal of text ("CLear Command
window"), while keeping the up-arrow "command history".

This additional functionality of clc() enables the full output of a single
program run to be easily seen with the full scroll bar.  For a comparison, try
running rand(50) a dozen times and then try using the scroll bar to just view
one output.  

In summary, in Matlab, if you want the "reset cursor position" option, you can
use home(), and if you want the "reset cursor position and clear all output
history" option, you can use clc().  Octave does not currently have this
distinction.

Octave help for clc() and home(): Clear the terminal screen and move the
cursor to the upper left corner.

Matlab help for clc(): clc clears all the text from the Command Window,
resulting in a clear screen. After running clc, you cannot use the scroll bar
in the Command Window to see previously displayed text. You can, however, use
the up-arrow key ↑ in the Command Window to recall statements from the
command history. Use clc in a MATLAB® code file to always display output in
the same starting position on the screen.

Matlab help for home(): home moves the cursor to the upper-left corner of the
Command Window. home also scrolls all visible text in the Command Window out
of view, giving the appearance of clearing the screen without deleting any
text. After running the home command, you can use the scroll bar to view the
previously displayed text. Use home in a MATLAB® code file to always display
output in the same starting position on the screen without clearing the
Command Window.



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?61000>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]