feat: update

parent 0a63c010
......@@ -22,13 +22,13 @@ export class ElementTermComponent implements OnInit, AfterViewInit {
ngAfterViewInit() {
term.col = Math.floor(jQuery(this.el.nativeElement).width() / jQuery('#liuzheng').width() * 8) - 3;
term.row = Math.floor(jQuery(this.el.nativeElement).height() / jQuery('#liuzheng').height()) - 5;
console.log(term);
// term.term = Terminal({
// cols: term.col,
// rows: term.row,
// useStyle: true,
// screenKeys: true,
// });
term.term.resize(term.col, term.row);
term.term.open(this.el.nativeElement, true);
const that = this;
window.onresize = function () {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment