• Get Keyboard Key... ncurses?

    From High Spirit@VERT to All on Mon May 25 21:43:02 2015
    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?

    Thanks.


    -- High Spirit

    ---
    þ Synchronet þ Digital Creation BBS -- bbs.digitalcreationbbs.com:2323
  • From Digital Man@VERT to High Spirit on Mon May 25 21:58:21 2015
    Re: Get Keyboard Key... ncurses?
    By: High Spirit to All on Mon May 25 2015 09:43 pm

    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.

    digital man

    Synchronet "Real Fact" #18:
    The first Synchronet BBS (Vertrauen) went live in July of 1991 (replacing WWIV).
    Norco, CA WX: 59.0øF, 86.0% humidity, 5 mph SE wind, 0.00 inches rain/24hrs
    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From High Spirit@VERT to Digital Man on Tue May 26 09:05:13 2015
    Re: Get Keyboard Key... ncurses?
    By: Digital Man to High Spirit on Mon May 25 2015 09:58 pm

    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. ;)

    -- High Spirit

    ---
    þ Synchronet þ Digital Creation BBS -- bbs.digitalcreationbbs.com:2323
  • From High Spirit@VERT to Digital Man on Tue May 26 13:57:44 2015
    Re: Get Keyboard Key... ncurses?
    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 quite capable of doing what I need to do...


    -- High Spirit

    ---
    þ Synchronet þ Digital Creation BBS -- bbs.digitalcreationbbs.com:2323
  • From Nightfox@VERT to High Spirit on Tue May 26 12:42:00 2015
    Re: Get Keyboard Key... ncurses?
    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
    quite
    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.

    Nightfox

    ---
    þ Synchronet þ Digital Distortion: digitaldistortionbbs.com
  • From High Spirit@VERT to Nightfox on Tue May 26 17:29:29 2015
    Re: Get Keyboard Key... ncurses?
    By: Nightfox to High Spirit on Tue May 26 2015 12:42 pm

    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 have just touched the surface with C... I written a couple programs that don't do much other than what I need them to do over the years, I think the part that frustrates me is how strict it is with variables.

    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.

    That was my reason for going with Javascript in the end... what I am making is for Synchronet and I want it to run on any platform and little work to install.
    Javascript is the better way to go in that case. :)


    -- High Spirit

    ---
    þ Synchronet þ Digital Creation BBS -- bbs.digitalcreationbbs.com:2323