开发者

How to make a full screen terminal with termlib.js? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 11 years ago.

I'm experimenting with mass:werk termlib.js

I'm interested in accomplishing something similar to this example, but am unsure how to style it full screen开发者_Go百科 and already opened when the page loads.

Any Suggestions?


What do you mean by "style it full screen"? If you mean that you want your terminal to have the entire width and height of the viewport, then adding css to this effect:

body, #terminal_container {
  height: 100%;
  width: 100%;
}

Should suffice in making a div with the id terminal_container consume the entire height and width of the document.

If you mean rather that you want to force "fullscreen" as in the browser full screen with no toolbars (F11 key in Firefox), then the answer is "no, you can't". There is no way to change the user's client view mode from a website script. This is a good thing - do you really want websites deciding you don't need your back button anymore? The user's client options are strictly the domain of the user.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜