Skip to content

martelogan/web-terminal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Javascript class and basic layout for online terminal emulator.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published