Pastey Correct lines for attr_to_colors()
- Posted by Lnettnay Sep 29, 2012
sequence fgbg = and_bits({attr_code, attr_code/16}, 0x0F) return {find(fgbg[1],true_fgcolor)-1, find(fgbg[2],true_bgcolor)-1}
sequence fgbg = and_bits({attr_code, attr_code/16}, 0x0F) return {find(fgbg[1],true_fgcolor)-1, find(fgbg[2],true_bgcolor)-1}