Skip to content

Instantly share code, notes, and snippets.

@Kirkman
Last active November 12, 2025 04:23
Show Gist options
  • Select an option

  • Save Kirkman/a7829b9fd99ba7106762c672f9df1a63 to your computer and use it in GitHub Desktop.

Select an option

Save Kirkman/a7829b9fd99ba7106762c672f9df1a63 to your computer and use it in GitHub Desktop.
Debugging black/black issue with Frame.js
load("sbbsdefs.js");
load("frame.js");
// COLOR CODES
var lowRed = '\1N\1R\10';
var lowBlue = '\1N\1B\10';
var lowWhite = '\1N\1W\10';
var highCyan = '\1H\1C\10';
var lowBlack = '\1N\1K\10';
var highBlack = '\1H\1K\10';
console.clear();
// PLAIN CONSOLE VERSION
console.gotoxy(1,1);
console.putmsg(lowWhite + 'PLAIN CONSOLE VERSION');
mswait(4000);
console.gotoxy(1,1);
console.putmsg(lowBlue + 'TEST1 TEST1' + highBlack + ' ... should say TEST1 TEST1 in low blue on black ');
mswait(4000);
console.gotoxy(1,1);
console.putmsg(lowBlack + 'TEST2 TEST2' + highBlack + ' ... should say TEST2 TEST2 in black on black ');
mswait(4000);
console.gotoxy(1,1);
console.putmsg(highCyan + 'TEST3 TEST3' + highBlack + ' ... should say TEST3 TEST3 in high cyan on black ');
mswait(4000);
// FRAME VERSION
testFrame = new Frame(1, 1, 80, 24, BG_BLACK);
testFrame.open();
testFrame.draw();
testFrame.gotoxy(1,1);
testFrame.putmsg(lowWhite + 'FRAME.JS VERSION');
testFrame.cycle();
mswait(4000);
testFrame.gotoxy(1,1);
testFrame.putmsg(lowBlue + 'TEST1 TEST1' + highBlack + ' ... should say TEST1 TEST1 in low blue on black ');
testFrame.cycle();
mswait(4000);
testFrame.gotoxy(1,1);
testFrame.putmsg(lowBlack + 'TEST2 TEST2' + highBlack + ' ... should say TEST2 TEST2 in black on black ');
testFrame.cycle();
mswait(4000);
testFrame.gotoxy(1,1);
testFrame.putmsg(highCyan + 'TEST3 TEST3' + highBlack + ' ... should say TEST3 TEST3 in high cyan on black ');
testFrame.cycle();
mswait(4000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment