How to resolve the algorithm Terminal control/Clear the screen step by step in the Icon and Unicon programming language

Published on 12 May 2024 09:40 PM

How to resolve the algorithm Terminal control/Clear the screen step by step in the Icon and Unicon programming language

Table of Contents

Problem Statement

Clear the terminal window.

Let's start with the solution:

Step by Step solution about How to resolve the algorithm Terminal control/Clear the screen step by step in the Icon and Unicon programming language

Source code in the icon programming language

procedure main ()
  if &features == "MS Windows" then system("cls")  # Windows
  else if &features == "UNIX" then system("clear") # Unix
end


  

You may also check:How to resolve the algorithm Horner's rule for polynomial evaluation step by step in the JavaScript programming language
You may also check:How to resolve the algorithm Perlin noise step by step in the Rust programming language
You may also check:How to resolve the algorithm Number reversal game step by step in the Egel programming language
You may also check:How to resolve the algorithm Variables step by step in the 68000 Assembly programming language
You may also check:How to resolve the algorithm Dot product step by step in the Haskell programming language