We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@chjj thank you for building an awesome terminal. How would I set up the terminal so that it has 100% width and height?
The text was updated successfully, but these errors were encountered:
here is my code for you, with angularjs
$scope.textSize = function () { function getCharSize() { var $span = $("<span>", {text: "qwertyuiopasdfghjklzxcvbnm"}); $('#terminal').append($span); var size = { width: $span.outerWidth()/26 , height: $span.outerHeight() }; $span.remove(); return size; } function getwindowSize() { var e = window, a = 'inner'; if (!('innerWidth' in window )) { a = 'client'; e = document.documentElement || document.body; } return {width: e[a + 'Width'], height: e[a + 'Height']}; } var charSize = getCharSize(); var windowSize = getwindowSize(); return { x: Math.floor(windowSize.width / charSize.width) , y: Math.floor(windowSize.height / charSize.height) }; }; var rc = $scope.textSize(); var term = new Terminal({ rows:rc.y, cols:rc.x, screenKeys: false, cursorBlink: false });
Sorry, something went wrong.
No branches or pull requests
@chjj thank you for building an awesome terminal. How would I set up the terminal so that it has 100% width and height?
The text was updated successfully, but these errors were encountered: