mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-04-04 23:06:08 +00:00
Fix lua imports, fix linux backspace behaviour in console
This commit is contained in:
@@ -116,14 +116,17 @@ void SetupConsole() {
|
||||
HandleInput(CInputBuff);
|
||||
CInputBuff.clear();
|
||||
}
|
||||
} else if (In == 8) {
|
||||
} else if (In == 8 || In == 127) {
|
||||
if (!CInputBuff.empty())
|
||||
CInputBuff.pop_back();
|
||||
} else if (In == 4) {
|
||||
CInputBuff = "exit";
|
||||
HandleInput(CInputBuff);
|
||||
CInputBuff.clear();
|
||||
} else if (!isprint(In)) {
|
||||
// ignore
|
||||
} else {
|
||||
// info(std::to_string(In));
|
||||
CInputBuff += char(In);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user