*
* The MIT License (MIT)
*
- * Copyright (C) 2016 Kevin Lamonte
+ * Copyright (C) 2017 Kevin Lamonte
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
for (int i = x; i < width; i++) {
assert (logical[i][y].isBlank());
- // Physical is always updatesd
+ // Physical is always updated
physical[i][y].reset();
}
&& (lCell.isBlink() == lastAttr.isBlink())
) {
// Both colors changed, attributes the same
- sb.append(terminal.color(lCell.getForeColor(),
- lCell.getBackColor()));
+ sb.append(terminal.color(lCell.isBold(),
+ lCell.getForeColor(), lCell.getBackColor()));
if (debugToStderr) {
System.err.printf("1 Change only fore/back colors\n");
) {
// Attributes same, foreColor different
- sb.append(terminal.color(lCell.getForeColor(), true));
+ sb.append(terminal.color(lCell.isBold(),
+ lCell.getForeColor(), true));
if (debugToStderr) {
System.err.printf("3 Change foreColor\n");
&& (lCell.isBlink() == lastAttr.isBlink())
) {
// Attributes same, backColor different
- sb.append(terminal.color(lCell.getBackColor(), false));
+ sb.append(terminal.color(lCell.isBold(),
+ lCell.getBackColor(), false));
if (debugToStderr) {
System.err.printf("4 Change backColor\n");
terminal.getOutput().write(result);
terminal.flush();
}
+
+ /**
+ * Set the window title.
+ *
+ * @param title the new title
+ */
+ public void setTitle(final String title) {
+ terminal.getOutput().write(terminal.setTitle(title));
+ terminal.flush();
+ }
+
}