Skip to content
Discussion options

You must be logged in to vote

It's really quite easy:

Assume a display (determined by font size and ideally mono-spaced, as proportional fonts will vary the amount of text on each line.

Example: 40-lines of 80-characters.

  1. Create an array of type string.

char *myStrings[] = {"String 1","String 2", ... "String 40"}; ideally all blank with ""

Create the array with 40 strings to initialise it.

  1. Create a function (MoveArray()) to display all 40 lines using the x,y coordinates, which will need a few tests, do starts be displaying all 40-lines, then on the next new line move the array elements by 1 so element 2 to element 1, repeat for all subsequent elements until line 40 then re-initialise line 40, add the new line to e…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@c0debabe
Comment options

Answer selected by c0debabe
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants