wishlist for BricxCC

Discussion specific to NXT-G, NXC, NBC, RobotC, Lejos, and more.
HaWe
Posts: 2500
Joined: 04 Nov 2014, 19:00

Re: wishlist for BricxCC

Post by HaWe »

why compatibility with legacy programs if it's weird and ambiguous? Legacy programs can be re-written.
And maybe we will have overloaded functions some day :P
But anyway,

ButtonDirection
GetButtonDirection
ButtonDirectionPressed

... far too much to type,
and what do you want to say by "direction"?

in C it's getchar() (which we already have)
C also uses cin (analog to cout), getchar, getch, getche(), kbhit(), scanf, fscanf, sscanf, vfscanf, vscanf, vsscanf (stdio.h, conio.h, partially for files)

so I suggest for a substitute to
char Buttonpressed
it could also be something C-like (short and consise)

Code: Select all

char scanchar() or
char scanbtn() or
char btnstate() or
char kbhit() or
char btnhit() or
char btnpressed()
Meanwhile kbhit() I like most. ;)

(I know that ANSI C hasn't got this Buttonpressed functionality (Pascal has got it), but there are workarounds using cin and conio- (non-ANSI) kbhit)
Last edited by HaWe on 27 Dec 2010, 19:14, edited 1 time in total.
muntoo
Posts: 834
Joined: 01 Oct 2010, 02:54
Location: Your Worst Nightmare
Contact:

Re: wishlist for BricxCC

Post by muntoo »

Well, for now, just use some hacks:

Code: Select all

#define BP(btn) ButtonPressed(btn,0)
#define GBD(resetCount) GetButtonDirection(resetCount)
#define BDP(ButtonDirection,btn) ButtonDirectionPressed(ButtonDirection,btn)
Image

Commit to LEGO Mindstorms Robotics Stack Exchange:
bit.ly/MindstormsSE


Commit to LEGO Stack Exchange: bit.ly/Area51LEGOcommit
HaWe
Posts: 2500
Joined: 04 Nov 2014, 19:00

Re: wishlist for BricxCC

Post by HaWe »

I already have my own workarounds, but for the next fw update I'd prefer the simplified and enhanced

Code: Select all

char ButtonPressed()
or
char getch()
instead of

Code: Select all

bool ButtonPressed(const byte btn, bool  resetCount = false) // should be obsolete
(particularly as bool in C is actually char and could be fully used like that to return the exact btn code, not just 0 or 1)
muntoo
Posts: 834
Joined: 01 Oct 2010, 02:54
Location: Your Worst Nightmare
Contact:

Re: wishlist for BricxCC

Post by muntoo »

When I click Help->Index, I get BricxCC help, unless I have an NXC file open. I'd like there to be a menu, so you can choose between which help you want (BricxCC/NBC/NXC/NQC). Sort of like Help->Guide PDFs, but with Help->Documentationi->NXC or something.
Image

Commit to LEGO Mindstorms Robotics Stack Exchange:
bit.ly/MindstormsSE


Commit to LEGO Stack Exchange: bit.ly/Area51LEGOcommit
nxt-ai
Posts: 36
Joined: 10 Jan 2011, 05:02

Re: wishlist for BricxCC

Post by nxt-ai »

fuzzball27 wrote:I think that a full BricxCC GUI for Mac would be great. I've been using NeXT Tools, Terminal, and AppleScript for my programming, its nice, but a more organized programming environment would be excellent.
Why not make an Xcode plugin: Xcode already has NQC syntax coloring BTW which is what I use

I personally dislike the look of BricxCC, kind of cluttered and slow
No offense meant to John Hanson (King of NXC/NBC)

Or does anyone remember NXTCode; (someone dropped in on nxtasy for one post to say they were working on a mac nxc/nbc ide with an Xcode-like look, and were never heard from again).

If there is to be a Mac BricxCC instead of Xcode plugin could it have an Xcode-similar UI?

What do you think?

PS: More stuff on Xcode plugins:
muntoo
Posts: 834
Joined: 01 Oct 2010, 02:54
Location: Your Worst Nightmare
Contact:

Re: wishlist for BricxCC

Post by muntoo »

nxt-ai wrote:If there is to be a Mac BricxCC instead of Xcode plugin could it have an Xcode-similar UI?
IMHO, the perfect BricxCC would be Notepad++ + BricxCC integrated. (Or a plugin/plugin kit isn't too bad, I suppose.)

(And no, I don't mean Notepad+++BricxCC = Notepad+BrixCC = What is wrong with me??)

Unfortunately, there's no Notepad++ for mac. :( Perhaps some genius out there could do something with Netbeans IDE (plugin) or [Bloodshed!] DevC++ (plugin) or something?

I was going to look at Notepad++ plugins earlier, but I still haven't figured out "Hello World!" (plus, I'm too busy taking over the world), so don't get your hopes up. And even if I did, I'd need lots of help from the creator of BricxCC (all hail the king*). **

*Did I mention John Hansen carries the blade that was broken, Andúril?
** EDIT: Just so it's clear, I was giving an idea. No one is obligated to do anything I wrote in this post. If they were, it'd be because of the robot assassins I would've sent, threatening them.
Image

Commit to LEGO Mindstorms Robotics Stack Exchange:
bit.ly/MindstormsSE


Commit to LEGO Stack Exchange: bit.ly/Area51LEGOcommit
HaWe
Posts: 2500
Joined: 04 Nov 2014, 19:00

Re: wishlist for BricxCC

Post by HaWe »

is it possible to get syntax highlighting also for self-defined constants or #define macros like
#define dbOffset 60

in this case in my code dbOffset may be highlighted in RED just like constant numbers, e.g. as if I had used 60 instead.
On the other hand, it might be highlighted GREEN, e.g. like API-predefined constants like S1 or MAX_INT
muntoo
Posts: 834
Joined: 01 Oct 2010, 02:54
Location: Your Worst Nightmare
Contact:

Re: wishlist for BricxCC

Post by muntoo »

And another thing... *

I can't see anything. Can you enable the ability to resize the Keystroke editor?
Image


Can we have alt text (aka "title text") which tells us what each feature does? So, if we wonder what the option "DO NOT CHECK THIS, OR YOU WILL DIE" does, we won't check it? There's some that confuse me... [Including "Blow up on exit".]
Image


* WARNING. Contains the phrase "shut up". If you are really, really offended by "shut up", and believe it to be inappropriate, please shut up, and DO NOT view the spoiler. I'm working under the assumption that if you've read H2G2, you won't be offended by "shut up". Shut up. Shut up. Shut up. Oh, and please... Shut up.
Haven't read it yet, so shut up :), and if you're going to say anything about it, use spoilers.
Image

Commit to LEGO Mindstorms Robotics Stack Exchange:
bit.ly/MindstormsSE


Commit to LEGO Stack Exchange: bit.ly/Area51LEGOcommit
muntoo
Posts: 834
Joined: 01 Oct 2010, 02:54
Location: Your Worst Nightmare
Contact:

Re: wishlist for BricxCC

Post by muntoo »

And another thing. Should be easy (I hope?):
Remove the Message Box popup when I Select some text, Ctrl+click on text to copy.
Image

Commit to LEGO Mindstorms Robotics Stack Exchange:
bit.ly/MindstormsSE


Commit to LEGO Stack Exchange: bit.ly/Area51LEGOcommit
HaWe
Posts: 2500
Joined: 04 Nov 2014, 19:00

Re: wishlist for BricxCC

Post by HaWe »

acc to nxt explorer:
can't rename files - neither on the nxt side nor on the PC side
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests