https://github.com/martelogan/web-terminal
Javascript class and basic layout for online terminal emulator.
https://github.com/martelogan/web-terminal
javascript web-terminal
Last synced: about 1 month ago
JSON representation
Javascript class and basic layout for online terminal emulator.
- Host: GitHub
- URL: https://github.com/martelogan/web-terminal
- Owner: martelogan
- License: gpl-2.0
- Created: 2015-08-29T05:18:11.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2018-06-28T22:26:25.000Z (almost 8 years ago)
- Last Synced: 2025-03-21T11:51:16.280Z (about 1 year ago)
- Topics: javascript, web-terminal
- Language: CoffeeScript
- Homepage: http://loganmartel.me/
- Size: 42 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# web-terminal
Ready to use on child or instance inheriting from Terminal prototype.
Add commands to prototype as desired. For default use, run **terminal.init()** on instance.
A basic example can be found at: JSFiddle
### Usage: terminal = new Terminal(target, PS1, welcome, guide, commands)
#### target
**Type:** String
target element for terminal (**default: ".shell .text"**)
#### PS1
**Type:** String
prompt string (**default: "$ "**)
#### welcome
**Type:** String
inital greeting (**default: "./hello_world"**)
#### guide
**Type:** String
user instructions for terminal (**default: "Run 'help' for basic commands"**)
#### commands
**Type:** Array
array of strings representing commands (**default: ["no commands available"]**)