An open API service indexing awesome lists of open source software.

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.

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"]**)