Search found 25 matches

by Desert Polar Bear
Mon Feb 15, 2021 5:20 pm
Forum: Coding Questions
Topic: Old 8-bit computer command ideas in a console program
Replies: 8
Views: 1553

Re: Old 8-bit computer command ideas in a console program

Bitblazer wrote:Seems you refer to windows API calls.
Running on a Mac, so not sure that's gonna work.

Thanks all the same, though! :)
by Desert Polar Bear
Mon Feb 15, 2021 3:19 pm
Forum: Coding Questions
Topic: Old 8-bit computer command ideas in a console program
Replies: 8
Views: 1553

Re: Old 8-bit computer command ideas in a console program

TI-994A wrote:
Desert Polar Bear wrote:...some kind of Mac magic behind the curtains?
These might be of interest:

> MacOS Carbon APIs

> MacOS Cocoa APIs
Sakes! I've stepped in it now. Gonna have to put on my thinking cap for this stuff. Many thanks!
by Desert Polar Bear
Mon Feb 15, 2021 2:47 pm
Forum: Coding Questions
Topic: Old 8-bit computer command ideas in a console program
Replies: 8
Views: 1553

Re: Old 8-bit computer command ideas in a console program

Demivec wrote:Define all variables, both numeric and string, within a structure.
Very cool. I have no experience with the Structure command, so I'm looking forward to learning more about it. Thanks!
by Desert Polar Bear
Sun Feb 14, 2021 9:39 pm
Forum: Coding Questions
Topic: Old 8-bit computer command ideas in a console program
Replies: 8
Views: 1553

Old 8-bit computer command ideas in a console program

Short version: Trying to replicate three old 8-bit computer commands in a console program running on a Mac, so I can't cheat with DLLs, but maybe some kind of Mac magic behind the curtains?

1) BEEP. I accidentally found the command NSBeep_() in some source code on a forum message. It works, but I ...
by Desert Polar Bear
Sun Feb 14, 2021 4:35 pm
Forum: Coding Questions
Topic: Scroll starts to bump/flicker
Replies: 20
Views: 5049

Re: Scroll starts to bump/flicker

StarWarsFan wrote:^^^Cool, how did you do that animation?
Snagit video capture saved as gif.
by Desert Polar Bear
Sun Feb 14, 2021 5:18 am
Forum: Tricks 'n' Tips
Topic: Perlin Noise
Replies: 7
Views: 4660

Re: Perlin Noise

Not sure if this helps, but the number I'm getting fluctuates between 9 and 10 on a mid-2015 MacBook Pro 2.5 GHz Quad-Core Intel Core i7 running Catalina. :?
by Desert Polar Bear
Sun Feb 14, 2021 5:11 am
Forum: Coding Questions
Topic: New to PB - questions to clear confusion
Replies: 16
Views: 3124

Re: New to PB - questions to clear confusion

I'm very new here as well. I found this post extremely helpful.
viewtopic.php?f=22&t=64684
by Desert Polar Bear
Sat Feb 13, 2021 5:13 pm
Forum: Coding Questions
Topic: Scroll starts to bump/flicker
Replies: 20
Views: 5049

Re: Scroll starts to bump/flicker

I'm not sure if this is any help at all, but running this on a Mac shows a rapidly flickering red bar with very smooth blue text. The gif below doesn't capture just how fast the red bar is flickering. I suspect it's a timing issue with the video capture software.

https://i.postimg.cc/dQN1Z8DX ...
by Desert Polar Bear
Sat Feb 13, 2021 4:56 pm
Forum: Mac OSX
Topic: So much want this to work
Replies: 23
Views: 7135

Re: So much want this to work

Interesting. I can understand the mouse up issue easily enough, but timing is less obvious to me. Curious.

I'm just thrilled it's behaving better now, but I would eventually enjoy learning more about the IDE source. I'm an intermediate programmer at best, so it will be a while before I can dive in ...
by Desert Polar Bear
Sat Feb 13, 2021 4:26 pm
Forum: Mac OSX
Topic: So much want this to work
Replies: 23
Views: 7135

Re: So much want this to work

Sakes. That was a bit condescending, mk.

Sure, I can delete the prefs and start over. That wasn't the point of my message. I was merely trying to share the steps I experienced in attempting to replicate the condition.

No good deed goes unpunished, eh?
by Desert Polar Bear
Fri Feb 12, 2021 11:15 pm
Forum: Mac OSX
Topic: So much want this to work
Replies: 23
Views: 7135

Re: So much want this to work

The fact that the tabs sometimes get stuck on the mouse when moving them has improved. This only occurs under macOS and I had completely forgotten about it. I wanted to have a look at it.
I managed to get the tabs to stop "sticking" to the mouse. Although I'm not entirely sure how. I'm not sure if ...
by Desert Polar Bear
Fri Feb 12, 2021 4:04 am
Forum: Mac OSX
Topic: Close Mac terminal after console app ends?
Replies: 6
Views: 4318

Re: Close Mac terminal after console app ends?

deseven wrote:Please try doing that:
That did the trick. I thought I had already tried that, but I think I was also issue an automatic "clear" command in a second console. Once I shut that off too it worked fine.

Many thanks! :)
by Desert Polar Bear
Thu Feb 11, 2021 5:01 pm
Forum: Mac OSX
Topic: Close Mac terminal after console app ends?
Replies: 6
Views: 4318

Re: Close Mac terminal after console app ends?

sh = RunProgram("sh","","",#PB_Program_Open|#PB_Program_Write)
WriteProgramString(sh,"killall Terminal")
WriteProgramData(sh,#PB_Program_Eof,0)
CloseProgram(sh)
That looks like what I'm used to, thanks. And you're right, it is a bit overkill. Now, if I could just figure out how to keep Mac ...
by Desert Polar Bear
Wed Feb 10, 2021 6:03 pm
Forum: Mac OSX
Topic: So much want this to work
Replies: 23
Views: 7135

Re: So much want this to work

Thanks for the confirmation @deseven!

Frankly, I consider myself very lucky to have any decent option for a proper BASIC programming language in 2021 for the Mac at all. After all, Mac holds a fractional market share compared to Windows and BASIC is considered by many to be a dead language after ...