Merge branch 'master' into 638_retain_cursor_blink_interface
This commit is contained in:
@@ -19,6 +19,16 @@
|
|||||||
<p>
|
<p>
|
||||||
<label><input type="checkbox" id="option-cursor-blink"> cursorBlink</label>
|
<label><input type="checkbox" id="option-cursor-blink"> cursorBlink</label>
|
||||||
</p>
|
</p>
|
||||||
|
<p>
|
||||||
|
<label>
|
||||||
|
cursorStyle
|
||||||
|
<select id="option-cursor-style">
|
||||||
|
<option value="block">block</option>
|
||||||
|
<option value="underline">underline</option>
|
||||||
|
<option value="bar">bar</option>
|
||||||
|
</select>
|
||||||
|
</label>
|
||||||
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<label>scrollback <input type="number" id="option-scrollback" value="1000" /></label>
|
<label>scrollback <input type="number" id="option-scrollback" value="1000" /></label>
|
||||||
</p>
|
</p>
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ var term,
|
|||||||
var terminalContainer = document.getElementById('terminal-container'),
|
var terminalContainer = document.getElementById('terminal-container'),
|
||||||
optionElements = {
|
optionElements = {
|
||||||
cursorBlink: document.querySelector('#option-cursor-blink'),
|
cursorBlink: document.querySelector('#option-cursor-blink'),
|
||||||
|
cursorStyle: document.querySelector('#option-cursor-style'),
|
||||||
scrollback: document.querySelector('#option-scrollback'),
|
scrollback: document.querySelector('#option-scrollback'),
|
||||||
tabstopwidth: document.querySelector('#option-tabstopwidth')
|
tabstopwidth: document.querySelector('#option-tabstopwidth')
|
||||||
},
|
},
|
||||||
@@ -32,6 +33,9 @@ rowsElement.addEventListener('change', setTerminalSize);
|
|||||||
optionElements.cursorBlink.addEventListener('change', function () {
|
optionElements.cursorBlink.addEventListener('change', function () {
|
||||||
term.setOption('cursorBlink', optionElements.cursorBlink.checked);
|
term.setOption('cursorBlink', optionElements.cursorBlink.checked);
|
||||||
});
|
});
|
||||||
|
optionElements.cursorStyle.addEventListener('change', function () {
|
||||||
|
term.setOption('cursorStyle', optionElements.cursorStyle.value);
|
||||||
|
});
|
||||||
optionElements.scrollback.addEventListener('change', function () {
|
optionElements.scrollback.addEventListener('change', function () {
|
||||||
term.setOption('scrollback', parseInt(optionElements.scrollback.value, 10));
|
term.setOption('scrollback', parseInt(optionElements.scrollback.value, 10));
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user