}
this[key] = value;
this.options[key] = value;
+ switch (key) {
+ case 'cursorBlink': this.element.classList.toggle('xterm-cursor-blink', value); break;
+ }
};
/**
this.element.classList.add('terminal');
this.element.classList.add('xterm');
this.element.classList.add('xterm-theme-' + this.theme);
+ this.element.classList.toggle('xterm-cursor-blink', this.options.cursorBlink);
this.element.style.height
this.element.setAttribute('tabindex', 0);
}
if (data !== this.defAttr) {
if (data === -1) {
- out += '<span class="reverse-video terminal-cursor';
- if (this.cursorBlink) {
- out += ' blinking';
- }
- out += '">';
+ out += '<span class="reverse-video terminal-cursor">';
} else {
var classNames = [];