How to resolve the algorithm Terminal control/Preserve screen step by step in the BBC BASIC programming language

Published on 12 May 2024 09:40 PM

How to resolve the algorithm Terminal control/Preserve screen step by step in the BBC BASIC programming language

Table of Contents

Problem Statement

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.

Let's start with the solution:

Step by Step solution about How to resolve the algorithm Terminal control/Preserve screen step by step in the BBC BASIC programming language

Source code in the bbc programming language

      PRINT "This is the original screen"
      OSCLI "GSAVE """ + @tmp$ + "bbcsave"""
      WAIT 200
      CLS
      PRINT "This is the new screen, following a CLS"
      WAIT 200
      OSCLI "DISPLAY """ + @tmp$ + "bbcsave"""


  

You may also check:How to resolve the algorithm Balanced brackets step by step in the Bracmat programming language
You may also check:How to resolve the algorithm Hough transform step by step in the Rust programming language
You may also check:How to resolve the algorithm Sum of a series step by step in the Kotlin programming language
You may also check:How to resolve the algorithm Identity matrix step by step in the Clojure programming language
You may also check:How to resolve the algorithm Simple windowed application step by step in the XPL0 programming language