Author Topic: Steve64 Repo  (Read 11648 times)

0 Members and 1 Guest are viewing this topic.

Offline SMcNeill

  • QB64 Developer
  • Forum Resident
  • Posts: 3972
    • View Profile
    • Steve’s QB64 Archive Forum
Re: Steve64 Repo
« Reply #30 on: August 25, 2019, 09:53:52 am »
And just when I'd thought I'd finished, I decided to take a look back at the Windows console library which I'd shared earlier, and I'd noticed that I'd forgotten a tool folks might like -- the ability to hide or show the console cursor.

So...

I went and added it.  Heck, I went a step further and even made it sizeable!

One last, new, command added:  _CONSOLECURSOR _SHOW|_HIDE, cursorsize

Usage would be like the following:
Code: QB64: [Select]
  1.  
  2. FOR i = 100 to 0 STEP -10
  3.     _CONSOLECURSOR , i 'set it to i% size
  4.     PRINT "Hello World"
  5.     SLEEP 'pause so we can see it.
  6.  
  7. _CONSOLECURSOR , 100 'set it to 100% size so it's nice and visible
  8.  
  9. _CONSOLECURSOR _HIDE 'hide the cursor
  10.  
  11. _CONSOLECURSOR _SHOW 'show the cursor
  12.  

Both parameters are optional, but if you call it without setting either, the world might be destroyed by your computer's laughing at you...

https://github.com/SteveMcNeill/Steve64 — A github collection of all things Steve!

Offline SMcNeill

  • QB64 Developer
  • Forum Resident
  • Posts: 3972
    • View Profile
    • Steve’s QB64 Archive Forum
Re: Steve64 Repo
« Reply #31 on: August 26, 2019, 09:26:42 am »
Added mouse support for the console.  I’m off to town with the wife, so will document it later, but you can see an example of the mouse working in the console in the demo I just posted earlier.  ;)
https://github.com/SteveMcNeill/Steve64 — A github collection of all things Steve!

Offline bplus

  • Global Moderator
  • Forum Resident
  • Posts: 8053
  • b = b + ...
    • View Profile
Re: Steve64 Repo
« Reply #32 on: August 26, 2019, 12:41:44 pm »
OK now I am trapped, a scrolling screen PLUS mouse access along with all the other basics, wow Steve!

Offline SMcNeill

  • QB64 Developer
  • Forum Resident
  • Posts: 3972
    • View Profile
    • Steve’s QB64 Archive Forum
Re: Steve64 Repo
« Reply #33 on: August 26, 2019, 12:47:00 pm »
OK now I am trapped, a scrolling screen PLUS mouse access along with all the other basics, wow Steve!

If you're testing it out, stop by the IRC chat channel and join us, while we try and debug any issues which might pop up with things.

http://www.qb64.org/ircpage.html
https://github.com/SteveMcNeill/Steve64 — A github collection of all things Steve!

Offline SMcNeill

  • QB64 Developer
  • Forum Resident
  • Posts: 3972
    • View Profile
    • Steve’s QB64 Archive Forum
Re: Steve64 Repo
« Reply #34 on: September 17, 2019, 06:59:21 pm »
Added an option into the QB64 IDE which allows us to Ignore Warnings.
Ignore Warnings.jpg
* Ignore Warnings.jpg (Filesize: 55.68 KB, Dimensions: 968x503, Views: 286)
https://github.com/SteveMcNeill/Steve64 — A github collection of all things Steve!

Offline Cobalt

  • QB64 Developer
  • Forum Resident
  • Posts: 878
  • At 60 I become highly radioactive!
    • View Profile
Re: Steve64 Repo
« Reply #35 on: September 21, 2019, 06:03:30 pm »
Excellent!
 Why was the Warning thing added to the IDE in the first place, may I ask?

I find it very distracting.
Granted after becoming radioactive I only have a half-life!

FellippeHeitor

  • Guest
Re: Steve64 Repo
« Reply #36 on: September 21, 2019, 06:16:38 pm »
My request and implementation.

Offline SMcNeill

  • QB64 Developer
  • Forum Resident
  • Posts: 3972
    • View Profile
    • Steve’s QB64 Archive Forum
Re: Steve64 Repo
« Reply #37 on: September 21, 2019, 06:29:38 pm »
Excellent!
 Why was the Warning thing added to the IDE in the first place, may I ask?

I find it very distracting.

Mainly as a compromise amongst the folks who work the most on developing QB64.  I brought up the idea that we really didn't need to toss errors when a CONST was set multiple times inside a program.  (Such as having CONST TRUE = -1, FALSE = 0 inside multiple library files which used to toss an error for multiple occurances.)  I figured, "Who cares if a CONST is declared over and over, as long as the VALUE remains the same?  We only really need an error when the values don't match."

After all, why would this toss an error?

CONST True = -1
CONST True = -1
CONST True = -1

True starts out -1 when we first type it.  It stays -1.  So why the heck do we actually need to stop compilation of the program and claim it's an error?  (Especially when "True" itself never appears anywhere in the C-code we generate, as we substitute the value -1 everywhere it appears in our code.)

I thought we should just ignore multiple instances, as long as  the values match.  Fellippe didn't want to break from the tradition of BASIC and wanted to keep the error message to make the programmer delete one of those values.  In the end, we settled on a middle ground compromise -- toss a warning to let folks know that they have more than one CONST with the same name and value, but don't actually stop compilation of the program. 

And, once the system was in place, it's usage has expanded to now toss warnings for various other things as well (such as for unused variables.)

But, like you, I just find the system to be a distraction.  There's even edge cases where I get warnings for "variables not in use", when the are, in fact, in use, (I think its a case where you define a variable, but only reference it via _MEM and not directly,  where I found this happening,) which either requires writing drivel code somewhere to shut up the warning system (foo = foo), or it means it's always going to be a warning message down in the bottom of the IDE to drive you batty...

So, a solution came to me:  Place a toggle in the IDE and let folks freely ignore those warnings, or not, as whichever method suits their preference.  (You can certainly bet that my personal version has it toggled on all the time now.  ;D)

IF nobody finds or reports a glitch in how it makes their programs work, I'll push the changes into the development build for widespread testing and usage there, and then we'll see that option full time in the next stable release which comes out (whenever that happens).

https://github.com/SteveMcNeill/Steve64 — A github collection of all things Steve!

Offline Cobalt

  • QB64 Developer
  • Forum Resident
  • Posts: 878
  • At 60 I become highly radioactive!
    • View Profile
Re: Steve64 Repo
« Reply #38 on: September 21, 2019, 10:37:57 pm »
Ahh, now I know.
 I was curious why there wasn't a toggle for it already, most of the other additions to the IDE can be turned on or off. I guess if you really REALLY wanted clean code in the end it would be helpful, though I don't know, can you even click on the warning to see whats causing it?

guess you can.
« Last Edit: September 22, 2019, 04:35:34 am by Cobalt »
Granted after becoming radioactive I only have a half-life!