Re: enhancing prompt() functions
- Posted by jimcbrown (admin) Sep 15, 2011
- 1056 views
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.