Skip to content

Commit

Permalink
Update font size and geometry after terminal has finished loading
Browse files Browse the repository at this point in the history
  • Loading branch information
andfoy committed May 6, 2017
1 parent 739af7a commit ff4d947
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion spyder_terminal/server/static/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ var term,
pid,
charWidth,
charHeight,
path;
path,
curFont;

var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/x-www-form-urlencoded");
Expand Down Expand Up @@ -97,6 +98,7 @@ function setFont(font) {
}

function fitFont(font) {
curFont = font;
setFont(font);
setFont('ubuntu-powerline');
setFont(font);
Expand Down Expand Up @@ -133,4 +135,5 @@ function runRealTerminal() {
term.writeln("Loading...");
chdir(path);
clearTerm();
fitFont(curFont);
}

0 comments on commit ff4d947

Please sign in to comment.