Hey everyone...
Working on my first external program for SBBS... just trying to find out the best way to get a keyboard character from the user. I read up on getch() but see it is not available unless I use ncurses. I would like my program to be cross-platform... am I going in the right direction with ncurses or should I be trying something else?
The best way to write external programs for SBBS today, is by using JavaScript. It sounds like you might be using C. If you must use C, then I suggest you look into a door kit like OpenDoors or the Synchronet XSDK which takes cares of issues like drop files and reading keyboard input from the user for you.
Trying to expand my C knowledge. Which isn't much at the moment. ;)
Re: Get Keyboard Key... ncurses?quite
By: High Spirit to Digital Man on Tue May 26 2015 09:05 am
Trying to expand my C knowledge. Which isn't much at the moment. ;)
Screw it. Javascript it is! ;)
This is the exact reason I don't do much in C... other languages are
capable of doing what I need to do...
C is also a quite capable language - although personally I prefer more modern languages that at least support object-oriented programming (C does support some level of that through structs, but C doesn't have direct support for object-oriented programming).
I've created mods/doors for Synchronet using JavaScript, and I think it works well. The scripts only work with Synchronet, but the advantage is that they work in all environments where Synchronet runs without having to be re-compiled or re-written.
Sysop: | Ragnarok |
---|---|
Location: | Dock Sud, Bs As, Argentina |
Users: | 136 |
Nodes: | 10 (0 / 10) |
Uptime: | 06:31:14 |
Calls: | 15,171 |
Calls today: | 4 |
Files: | 19,857 |
D/L today: |
7 files (164K bytes) |
Messages: | 1,691,378 |