How to clear the command line in Octave?

ysap picture ysap · Jun 30, 2012 · Viewed 44.7k times · Source

In Octave, when typing command in the command line, sometimes I need to erase the whole line and restart a new command. In Matlab, erasing the text would be done with the ESC key. In Octave this does not work. The only way I found to discard the input text is using Ctrl-C. This works, but it is ugly, as it leaves remains on the screen.

Is there a key combination to clear the line in Octave?

Answer

Jumabek Alikhanov picture Jumabek Alikhanov · Feb 16, 2015

type:

clc

in the command window in order to clear the command window.