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");
load("scrollbar.js");
load("funclib.js");
load("filebrowser.js");
var Ansi = load({}, "ansiterm_lib.js");
var Sauce = load({}, "sauce_lib.js");
Frame.prototype.drawBorder = function(color) {
var theColor = color;
......@@ -83,18 +85,22 @@ var printFile = function(file) {
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);
console.printfile(file, (state.pausing ? P_NONE : P_NOPAUSE) |P_CPM_EOF);
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) {
console.printfile(file, (state.pausing ? P_NONE : P_NOPAUSE) |P_CPM_EOF);
console.pause();
} else {
} else { // TODO: terminate on Ctrl-Z char (CPM EOF)
var f = new File(file);
f.open("r");
......
......@@ -6,11 +6,11 @@ lbg = BG_CYAN
sfg = WHITE
sbg = BG_BLUE
;[ANSI Gallery]
;description = A local archive of ANSI and ASCII artwork
;module = local.js
;path = /path/to/my/ansi/art/collection
;hide = *.exe,*.com
[ANSI Gallery]
description = A local archive of ANSI and ASCII artwork
module = local.js
path = /xfer/sysop/ice
hide = *.exe,*.com
; Uncomment this section to enable access to 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