Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Main
Synchronet
Commits
7ffada2d
Commit
7ffada2d
authored
Mar 27, 2022
by
Rob Swindell
💬
Browse files
Add from_attr_code[] table for mapping Ctrl-A attribute codes to CGA values
parent
8905f847
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
exec/load/cga_defs.js
exec/load/cga_defs.js
+25
-0
No files found.
exec/load/cga_defs.js
View file @
7ffada2d
...
...
@@ -56,5 +56,30 @@ var BG_MAGENTA =(MAGENTA<<4);
var
BG_BROWN
=
(
BROWN
<<
4
);
var
BG_LIGHTGRAY
=
(
LIGHTGRAY
<<
4
);
// Map Synchronet Ctrl-A attribute code to CGA color value
var
from_attr_code
=
{
'
K
'
:
BLACK
,
'
R
'
:
RED
,
'
G
'
:
GREEN
,
'
Y
'
:
YELLOW
,
'
B
'
:
BLUE
,
'
M
'
:
MAGENTA
,
'
C
'
:
CYAN
,
'
W
'
:
LIGHTGRAY
,
'
0
'
:
BG_BLACK
,
'
1
'
:
BG_RED
,
'
2
'
:
BG_GREEN
,
'
3
'
:
BG_BROWN
,
'
4
'
:
BG_BLUE
,
'
5
'
:
BG_MAGENTA
,
'
6
'
:
BG_CYAN
,
'
7
'
:
BG_LIGHTGRAY
,
'
H
'
:
HIGH
,
'
I
'
:
BLINK
,
'
-
'
:
ANSI_NORMAL
,
'
_
'
:
ANSI_NORMAL
,
'
N
'
:
ANSI_NORMAL
,
};
// Leave as last line:
this
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment