What I want: together with some friends we're working on an app, eventually leading to an
accounting application. Now, the problem is that the one is programming in C, and the
other has old (console only) code that needs to be updated and possibly enhanced. Both are
not very much into BCX.
So, can you advice me how I could be helpful, in the best and possibly the easiest way? I
can write functions in BCX, even in C, if it's not too complicated. Which of the
alternatives you mention could be the best way to go?
It depends on the platform.
If you are targeting only Windows, then I would:
* Find the best Conio library you can
* Or roll your own. It isn't that hard, just takes some time. I did for a shareware program I worked on years ago.
* Find a different console library, that meets your requirements. I have seen some on github.
* Play around with n(curses), and if it meets your needs, go for it!
If you are targeting Windows and Linux, then I would:
* Possibly use (n)curses. But note that I don't think it is as good on Windows as it is on Linux - that is why I wrote my own. But that was from 6 years ago, and maybe it was just my slow machine.
* Using VT100 escape sequences, write your own Windows/Linux library. As above, I have also done this - again, not that hard, just takes time.
* Find a different library that meets your requirements. As above, I have seen some on github.
And; you talk about GCC, how have you set that up, which commands to use? With batch
files?
I downloaded TDM gcc.
https://jmeubank.github.io/tdm-gcc/I downloaded ncurses from:
https://invisible-mirror.net/datafiles/release/mingw64.zipIt was several (or 6!) years ago when I did this, but I believe I just followed the directions in the ncurses .zip file.
I forgot to mention: I'm on Windows 10. And we want to use colors and position the cursor
in text mode; it should be highly interactive, as you should understand for an accounting
program!
Ok, so based on that, see my notes above.
Update: I just saw Mr. BCX's post. Yes, by all means, you can use the BCX console routines. And like he said, take ED for a spin to see just what it can do. I have, and ED works well. Much better than I do (pun intended).