';
for (x = 0; x < width; x++) {
var index = y * width + x;
if (index < charmap.length) {
var chr = charmap[index];
var chrText = chr ? String.fromCharCode(parseInt(chr[0], 10)) : ' ';
gridHtml += (
'' +
' ' +
chrText +
' ' +
' | '
);
} else {
gridHtml += ' | ';
}
}
gridHtml += '
';
}
gridHtml += '