Skip to content

Commit

Permalink
Merge pull request #205 from dstein64/master
Browse files Browse the repository at this point in the history
Add @xterm package scope
  • Loading branch information
Tyriar authored Mar 2, 2024
2 parents ca68fb1 + 57e0035 commit 1c9eb49
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion _includes/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
First you need to install the module, we ship exclusively through [npm](https://www.npmjs.com/) so you need that installed and then add xterm.js as a dependency by running:

```
npm install xterm
npm install @xterm/xterm
```

To start using xterm.js on your browser, add the `xterm.js` and `xterm.css` to the head of your html page. Then create a `<div id="terminal"></div>` onto which xterm can attach itself. Finally instantiate the `Terminal` object and then call the `open` function with the DOM object of the `div`.
Expand Down
4 changes: 2 additions & 2 deletions _pages/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
</div>

<div class="npm-install">
<div class="text">npm install xterm</div>
<button class="copy" title="Copy to clipboard" onclick="navigator.clipboard.writeText('npm install xterm'); document.querySelector('.copy').textContent = '\u2713'">Copy</div>
<div class="text">npm install @xterm/xterm</div>
<button class="copy" title="Copy to clipboard" onclick="navigator.clipboard.writeText('npm install @xterm/xterm'); document.querySelector('.copy').textContent = '\u2713'">Copy</div>
</div>

{% include demo.html %}
Expand Down

0 comments on commit 1c9eb49

Please sign in to comment.