Skip to content
Snippets Groups Projects
Commit 1388056c authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Some cleanup, no functional change.

parent 89bfc61c
No related branches found
No related tags found
No related merge requests found
Pipeline #5800 passed
......@@ -567,14 +567,13 @@ function erase_graphic_box()
function shitty_inkey(mode, timeout)
{
var b = console.inkey(mode | K_UTF8, timeout);
var ab;
var ab = ascii(b);
var bit;
var val;
var tmp;
var ret = b;
if (pmode & P_UTF8) {
ab = ascii(b);
if (ascii(b[0]) & 0x80) {
if (ab & 0x80) {
for (bit = 7; ab & (1<<bit); bit--)
val = ab & ((1<<bit) - 1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment