jed-users mailing list

[2021 Date Index] [2021 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

[jed-users] Re: [slang-users] Getting Keyboard Input


On Wed, 22 Dec 2021 15:41:56 -0700
Duke Normandin <dukeofpurl@xxxxxxx> wrote:

> I've got the following in my code:
>
> variable c = 0;
> c = SLang_getkey ();
>
> But I'm euchered with this:
>
> rline_getkey is undefined
> ./tempConv.sl:28:<top-level>:Undefined Name
>
> Do I have to import/require something?
> I thought this function was a built-in?

Found this to clear the result stack?

() = fgets (&ch, stdin);

so I could do?

c = fgets (&ch, stdin);

Couldn't find it in the docs though. Had to wade through the
examples in the hope of finding something. I lucked in!! :-D
--
Duke
** Text only please. Bottom post is best. **
_______________________________________________
For list information, visit <http://jedsoft.org/jed/mailinglists.html>.


[2021 date index] [2021 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]