Re: enhancing prompt() functions

new topic     » goto parent     » topic index » view thread      » older message » newer message
jimcbrown said...
euphoric said...

I'm going to try a puts(0,default) and see if that works. :)

That's hard to do (even in C) for reasons I previously stated.

On the Windows (non-MinGW) side, we can add support in be_runtime.c's key_gets() function. We already appear to be handling editing in there, so we'd just need to add a pushback buffer.

We don't use key_gets() on MinGW or POSIX, however. On MinGW we use the W32API console api, so it might be possible to push back characters that way.

I'm currently rewritting the console input functionality so that in Windows (regardless of compiler) it just uses the Windows API and thus putting characters into the console buffer is quite easy to do.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu