Terminal control/Preserve screen: Difference between revisions

Content added Content deleted
(upgraded to task.)
Line 2: Line 2:
The task is to clear the screen, output something on the display, and then restore the screen to the preserved state that it was in before the task was carried out. There is no requirement to change the font or kerning in this task, however character decorations and attributes are expected to be preserved. If the implementer decides to change the font or kerning during the display of the temporary screen, then these settings need to be restored prior to exit.
The task is to clear the screen, output something on the display, and then restore the screen to the preserved state that it was in before the task was carried out. There is no requirement to change the font or kerning in this task, however character decorations and attributes are expected to be preserved. If the implementer decides to change the font or kerning during the display of the temporary screen, then these settings need to be restored prior to exit.


=={{header|Javascript}}==
=={{header|JavaScript}}==
<lang javascript>(function() {
<lang javascript>(function() {
var orig= document.body.innerHTML
var orig= document.body.innerHTML