You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+22-1Lines changed: 22 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,10 +19,31 @@ You can do a bunch of things with it:
19
19
## How do I use it?
20
20
It's really easy:
21
21
22
-
1. You include the ``terminal.css`` and ``terminal.js`` files and have a container element (e.g. a div) with a contenteditable element of class ``input``inside in your HTML document.
22
+
1. You include the ``terminal.css`` and ``terminal.js`` files and have a container element (e.g. a div) with a child element holding a contenteditable element of class ``input``and another span with the actual prompt line you wanna display.
23
23
2. You create an object with methods that will be your commands (see below for the details of how this works)
24
24
3. Call terminal.init and pass the container element and your commands object - **Ready to roll!**
0 commit comments