blank method

void blank(
  1. int bgColor
)

Makes this cell a blank on the background bgColor: a space without attributes, hyperlink or the pixels of an image. A kitty placement over it stays.

Implementation

void blank(int bgColor) {
  text = ' ';
  fg = 0;
  bg = bgColor;
  ul = 0;
  attrs = 0;
  role = 0;
  link = null; // erasing removes hyperlinks
  image = null; // and pixels, not kitty placements
}