CLS - Incorrect documentation

Anything QL Software or Programming Related.
Post Reply
EmmBee
Trump Card
Posts: 245
Joined: Fri Jan 13, 2012 5:29 pm
Location: Kent

CLS - Incorrect documentation

Post by EmmBee »

Hi all,

The other day I wanted to use CLS with a parameter to clear a part of the screen, but could not remember which one of 1,2,3,4 was needed. I could, of course, experiment with the parameter numbers to find the one I wanted but doing that would be time consuming. Instead, I decided to look up the documentation.

http://superbasic-manual.readthedocs.io/en/latest/

Finding the info wanted was easy enough, but then I noticed some inaccuracy in the notes.
After using this command, the text cursor is placed at the top left-hand corner of the window (if cls_type=0) or at the start of the next line below the cursor position for other values.
The above is incorrect for the values 1,2,3 & 4. The cursor does in fact remain in the same place.

Can someone do the necessary and correct this, please?

EmmBee


User avatar
XorA
Site Admin
Posts: 1608
Joined: Thu Jun 02, 2011 11:31 am
Location: Shotts, North Lanarkshire, Scotland, UK

Re: CLS - Incorrect documentation

Post by XorA »

Go to top right of the page, click on "edit on github" and submit the change you wish!


User avatar
NormanDunbar
Forum Moderator
Posts: 2454
Joined: Tue Dec 14, 2010 9:04 am
Location: Buckie, Scotland
Contact:

Re: CLS - Incorrect documentation

Post by NormanDunbar »

Edited CLS as requested.
Merged a commit that I was nearest of from 2023 for the QPC commands.

Latest version is currently building....give it half an hour or so. Assuming it builds of course! Edit the build is complete.

FYI, "Edit on github" only works if you are logged in to github and have editing privileges on the repo.

Cheers,
Norm.


Why do they put lightning conductors on churches?
Author of Arduino Software Internals
Author of Arduino Interrupts

No longer on Twitter, find me on https://mastodon.scot/@NormanDunbar.
Post Reply