Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit 0e692cf8 authored by Deucе's avatar Deucе 👌🏾

Add KEY_ALT_[0-9] for local console.

Too lazy to add everything, but I need these for l2cfg.
parent f3219fe5
......@@ -38,6 +38,26 @@ if (js.global.conio !== undefined && dk.console.local) {
return dk.console.key.KEY_PGUP;
case 0x51:
return dk.console.key.KEY_PGDOWN;
case 0x78:
return dk.console.key.KEY_ALT_1;
case 0x79:
return dk.console.key.KEY_ALT_2;
case 0x7a:
return dk.console.key.KEY_ALT_3;
case 0x7b:
return dk.console.key.KEY_ALT_4;
case 0x7c:
return dk.console.key.KEY_ALT_5;
case 0x7d:
return dk.console.key.KEY_ALT_6;
case 0x7e:
return dk.console.key.KEY_ALT_7;
case 0x7f:
return dk.console.key.KEY_ALT_8;
case 0x80:
return dk.console.key.KEY_ALT_9;
case 0x81:
return dk.console.key.KEY_ALT_0;
default:
if (ch >= 0x3a && ch <= 0x44)
return dk.console.key['KEY_F'+(ch - 0x39)];
......
......@@ -119,6 +119,16 @@ var dk = {
KEY_PGDOWN:'KEY_PGDOWN',
KEY_INS:'KEY_INS',
KEY_DEL:'KEY_DEL',
KEY_ALT_1:'KEY_ALT_1',
KEY_ALT_2:'KEY_ALT_2',
KEY_ALT_3:'KEY_ALT_3',
KEY_ALT_4:'KEY_ALT_4',
KEY_ALT_5:'KEY_ALT_5',
KEY_ALT_6:'KEY_ALT_6',
KEY_ALT_7:'KEY_ALT_7',
KEY_ALT_8:'KEY_ALT_8',
KEY_ALT_9:'KEY_ALT_9',
KEY_ALT_0:'KEY_ALT_0',
POSITION_REPORT:'POSITION_REPORT',
UNKNOWN_ANSI:'UNKNOWN_ANSI'
},
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment