Bennu Game Development

English Forums => Suggestions => Topic started by: handsource-dyko on March 28, 2012, 09:16:35 AM

Title: input prompt functions
Post by: handsource-dyko on March 28, 2012, 09:16:35 AM
I just thought of something could be usefull addition: console input functions like those from C: scanf(), fscanf() and sscanf(). These functions would be usefull in combination with say(), so that you can have input prompts in console applications without using commandline arguments.

Maybe a "graphical" version for use in combination with the write functions in mod_text is possible too. I know it's possible to make your own textinput function, but it's nicer to have something standard for this.
Title: Re:input prompt functions
Post by: SplinterGU on March 28, 2012, 01:27:41 PM
imposible...
Title: Re:input prompt functions
Post by: handsource-dyko on March 28, 2012, 02:49:13 PM
Why would scanf be impossible?  ???
Title: Re:input prompt functions
Post by: SplinterGU on March 28, 2012, 03:00:03 PM
this was talk several times.

scanf* are insecure functions... and scanf* are wait functions that will block all system.

bennugd can't be blocked.

and... scanf* need std key input... we can implement a own scanf* that use SDL input, but this functions aren't a good idea.
Title: Re:input prompt functions
Post by: handsource-dyko on March 28, 2012, 03:35:26 PM
But what about a self made function that's compatible with bennu's design instead using standard C or SDL functions? Or would that be similair to re-inventing the wheel?  :-\ Or is it because of the "semi-parallel" design that makes something like that very complicated?
Title: Re:input prompt functions
Post by: SplinterGU on March 28, 2012, 04:04:41 PM
sorry, I don't have plans of add it to bennugd official release.