How to resolve the algorithm Terminal control/Cursor positioning 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/Cursor positioning step by step in the Icon and Unicon programming language

Table of Contents

Problem Statement

Move the cursor to column   3,   row   6,   and display the word   "Hello"   (without the quotes),   so that the letter   H   is in column   3   on row   6.

Let's start with the solution:

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

Source code in the icon programming language

procedure main()
    writes(CUP(6,3), "Hello")
end

procedure CUP(i,j)
    writes("\^[[",i,";",j,"H")
    return
end


  

You may also check:How to resolve the algorithm Factors of a Mersenne number step by step in the Delphi programming language
You may also check:How to resolve the algorithm Sum to 100 step by step in the ALGOL 68 programming language
You may also check:How to resolve the algorithm Wilson primes of order n step by step in the Wren programming language
You may also check:How to resolve the algorithm Loops/For step by step in the Oz programming language
You may also check:How to resolve the algorithm 9 billion names of God the integer step by step in the PureBasic programming language