|
|
@ -60,11 +60,11 @@ function openTerminal(options) {
|
|
|
|
rowHeight = localStorage.getItem('term-row');
|
|
|
|
rowHeight = localStorage.getItem('term-row');
|
|
|
|
colWidth = localStorage.getItem('term-col');
|
|
|
|
colWidth = localStorage.getItem('term-col');
|
|
|
|
} catch (err) {
|
|
|
|
} catch (err) {
|
|
|
|
rowHeight = 24;
|
|
|
|
rowHeight = 35;
|
|
|
|
colWidth = 80
|
|
|
|
colWidth = 100
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(rowHeight){}else{rowHeight=24};
|
|
|
|
if(rowHeight){}else{rowHeight=35};
|
|
|
|
if(colWidth){}else{colWidth=80};
|
|
|
|
if(colWidth){}else{colWidth=100};
|
|
|
|
|
|
|
|
|
|
|
|
var term = new Terminal({
|
|
|
|
var term = new Terminal({
|
|
|
|
rows: rowHeight,
|
|
|
|
rows: rowHeight,
|
|
|
@ -128,8 +128,8 @@ $(document).ready(function () {
|
|
|
|
$('#term-row')[0].value = localStorage.getItem('term-row');
|
|
|
|
$('#term-row')[0].value = localStorage.getItem('term-row');
|
|
|
|
$('#term-col')[0].value = localStorage.getItem('term-col');
|
|
|
|
$('#term-col')[0].value = localStorage.getItem('term-col');
|
|
|
|
} catch (err) {
|
|
|
|
} catch (err) {
|
|
|
|
$('#term-row')[0].value = 24;
|
|
|
|
$('#term-row')[0].value = 35;
|
|
|
|
$('#term-col')[0].value = 80;
|
|
|
|
$('#term-col')[0].value = 100;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$('#col-row').click(function () {
|
|
|
|
$('#col-row').click(function () {
|
|
|
|
var col = $('#term-col').val();
|
|
|
|
var col = $('#term-col').val();
|
|
|
|