Skip to content

Commit

Permalink
Log received hterm preferences in console
Browse files Browse the repository at this point in the history
  • Loading branch information
yudai committed Aug 29, 2015
1 parent b821754 commit 678258e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .gotty
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
// reconnec_ttime = false

// [bool] Accept only one client and exit gotty once the client exits
// Once = false
// once = false

// [object] Client terminal (hterm) preferences
// Examples below are some of commonly used options.
Expand Down
10 changes: 5 additions & 5 deletions app/resource.go

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions resources/gotty.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
case '2':
preferences = JSON.parse(data);
Object.keys(preferences).forEach(function(key) {
console.log("Setting " + key + ": " + preferences[key]);
term.getPrefs().set(key, preferences[key]);
});
break;
Expand Down

0 comments on commit 678258e

Please sign in to comment.