Skip to content
Snippets Groups Projects
Commit 409b85d6 authored by rswindell's avatar rswindell
Browse files

Use sauce_lib.js and ansiterm_lib.js to enable support for iCE colored ANSis....

Use sauce_lib.js and ansiterm_lib.js to enable support for iCE colored ANSis. We should look into .bin file support too
parent d08254ee
No related branches found
No related tags found
No related merge requests found
...@@ -4,6 +4,8 @@ load("tree.js"); ...@@ -4,6 +4,8 @@ load("tree.js");
load("scrollbar.js"); load("scrollbar.js");
load("funclib.js"); load("funclib.js");
load("filebrowser.js"); load("filebrowser.js");
var Ansi = load({}, "ansiterm_lib.js");
var Sauce = load({}, "sauce_lib.js");
Frame.prototype.drawBorder = function(color) { Frame.prototype.drawBorder = function(color) {
var theColor = color; var theColor = color;
...@@ -83,18 +85,22 @@ var printFile = function(file) { ...@@ -83,18 +85,22 @@ var printFile = function(file) {
if(state.syncTerm) { if(state.syncTerm) {
console.putmsg("\x1B[0;" + state.speed + "*r"); Ansi.send("speed", "set", state.speed);
var sauce = Sauce.read(file);
if(sauce.ice_color)
Ansi.send("ext_mode", "set", "bg_bright_intensity");
mswait(500); mswait(500);
console.printfile(file, (state.pausing ? P_NONE : P_NOPAUSE) |P_CPM_EOF); console.printfile(file, (state.pausing ? P_NONE : P_NOPAUSE) |P_CPM_EOF);
console.pause(); console.pause();
console.putmsg("\x1B[0;0*r"); Ansi.send("ext_mode", "clear", "bg_bright_intensity");
Ansi.send("speed", "clear");
} else if(state.speed == 0) { } else if(state.speed == 0) {
console.printfile(file, (state.pausing ? P_NONE : P_NOPAUSE) |P_CPM_EOF); console.printfile(file, (state.pausing ? P_NONE : P_NOPAUSE) |P_CPM_EOF);
console.pause(); console.pause();
} else { } else { // TODO: terminate on Ctrl-Z char (CPM EOF)
var f = new File(file); var f = new File(file);
f.open("r"); f.open("r");
......
...@@ -6,11 +6,11 @@ lbg = BG_CYAN ...@@ -6,11 +6,11 @@ lbg = BG_CYAN
sfg = WHITE sfg = WHITE
sbg = BG_BLUE sbg = BG_BLUE
;[ANSI Gallery] [ANSI Gallery]
;description = A local archive of ANSI and ASCII artwork description = A local archive of ANSI and ASCII artwork
;module = local.js module = local.js
;path = /path/to/my/ansi/art/collection path = /xfer/sysop/ice
;hide = *.exe,*.com hide = *.exe,*.com
; Uncomment this section to enable access to sixteencolors.net ; Uncomment this section to enable access to sixteencolors.net
;[sixteencolors.net] ;[sixteencolors.net]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment