Skip to content
This repository was archived by the owner on Apr 5, 2021. It is now read-only.

pietmichal/konsole.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

konsole.js

Command line/Terminal like application in browser. You can use and create commands and (in the future) add them to repository to make them available to download. My silly side project not being in active development. It was fun working on it ;)

Current version: 0.1.4

How to use

Working example:

<!doctype html>
<html>
    <head>
        <meta charset="utf-8">
        <title>konsole.js</title>
    </head>
    <style>
        html, body {
          height: 100%;
          padding: 0;
          margin: 0;
        }
        #console {
            width: 100%;
            height: 100%;
            background: black;
            color: white;
            font-family: monospace;
            font-size: 14px;
            margin: 0 auto;
        }
    </style>
    <body>
        <div id="console"></div>
        <script src="jsonfn.js"></script> <!-- required for get command to work -->
        <script src="konsole.js"></script>
        <script>konsole.init("#console")</script>
    </body>
</html>

Available commands

command arguments description
help command Prints information about given command, without arguments shows all commands
version - Shows konsole.js version
print text Prints given text, you can break lines by typing \n
cls - Clears screen
setPrompt string Replaces default '>' prompt with given string
asynctest - Test command. Example of command using asynchronous calls
get command Downloads command from online repository

Requirements

Modern browser supporting ES6.

About

Command line like application in browser.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published