How to resolve the algorithm Terminal control/Cursor positioning step by step in the UNIX Shell programming language

Published on 12 May 2024 09:40 PM

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

Source code in the unix programming language

# The tput utility numbers from zero, so we have subtracted 1 from row and column
# number to obtain correct positioning.
tput cup 5 2


  

You may also check:How to resolve the algorithm Stack step by step in the 11l programming language
You may also check:How to resolve the algorithm Pascal's triangle step by step in the BCPL programming language
You may also check:How to resolve the algorithm Same fringe step by step in the Wren programming language
You may also check:How to resolve the algorithm Filter step by step in the Cowgol programming language
You may also check:How to resolve the algorithm RPG attributes generator step by step in the Quackery programming language