|
|
|
@ -182,10 +182,14 @@ command_result show_prompt(color_ostream &out, std::vector <std::string> & param
|
|
|
|
|
Screen::show(new viewscreen_commandpromptst(params));
|
|
|
|
|
return CR_OK;
|
|
|
|
|
}
|
|
|
|
|
bool hotkey_allow_all(df::viewscreen *top)
|
|
|
|
|
{
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
DFhackCExport command_result plugin_init ( color_ostream &out, std::vector <PluginCommand> &commands)
|
|
|
|
|
{
|
|
|
|
|
commands.push_back(PluginCommand(
|
|
|
|
|
"command-prompt","Shows a command prompt on window.",show_prompt,false,
|
|
|
|
|
"command-prompt","Shows a command prompt on window.",show_prompt,hotkey_allow_all,
|
|
|
|
|
"command-prompt [entry] - shows a cmd prompt in df window. Entry is used for default prefix (e.g. ':lua')"
|
|
|
|
|
));
|
|
|
|
|
return CR_OK;
|
|
|
|
|