@ -2,6 +2,7 @@ DFHack Future
Internals
A method for caching screen output is now available to Lua (and C++)
Developer plugins can be ignored on startup by setting the DFHACK_NO_DEV_PLUGINS environment variable
The console on Linux and OS X now recognizes keyboard input between prompts
Lua
New internal commands
New plugins
@ -397,7 +397,7 @@ namespace DFHack
// We want read to return every single byte, without timeout.
raw.c_cc[VMIN] = 1; raw.c_cc[VTIME] = 0;// 1 byte, no timer
// put terminal in raw mode after flushing
if (tcsetattr(STDIN_FILENO,TCSAFLUSH,&raw) < 0)
if (tcsetattr(STDIN_FILENO,TCSADRAIN,&raw) < 0)
return -1;
rawmode = 1;
return 0;