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
...@@ -566,15 +566,14 @@ function erase_graphic_box() ...@@ -566,15 +566,14 @@ function erase_graphic_box()
function shitty_inkey(mode, timeout) function shitty_inkey(mode, timeout)
{ {
var b = console.inkey(mode|K_UTF8, timeout); var b = console.inkey(mode | K_UTF8, timeout);
var ab; var ab = ascii(b);
var bit; var bit;
var val; var val;
var tmp; var tmp;
var ret = b; var ret = b;
if (pmode & P_UTF8) { if (pmode & P_UTF8) {
ab = ascii(b); if (ab & 0x80) {
if (ascii(b[0]) & 0x80) {
for (bit = 7; ab & (1<<bit); bit--) for (bit = 7; ab & (1<<bit); bit--)
val = ab & ((1<<bit) - 1); 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