Git Product home page Git Product logo

command-console-html-canvas-javascript-'s Introduction

Command-Console-HTML-Canvas-Javascript-

Command Console in your browser via HTML5 Canvas & JavaScript - raddevus 28 Apr 2016

Introduction Update Note 2016-04-28: I fixed the problem with handling the backspace and enter keys. For some time it was only FireFox which didn't work, but then Chrome stopped working also. It's all fixed now. You can see the code change in the last code sample.

I have been learning about the power of the HTML5 Canvas element and what you can do. I wanted to see if I could duplicate the command-line console in the browser which I could later use for fun and pranks. Here is how I did it.

In the image below, I've taken a snapshot of my Console in the Browser (it's the one in the back) which includes a snapshot of a real Console window (for comparison). I was able to capture the image showing both cursors even though the cursors blink -- to show users the console window is ready for input. My version blinks the cursor also.

See Live Demo You can see it live in your browser at: http://raddev.us/console/console.htm (opens in new tab/window)

Original Source https://www.codeproject.com/Articles/1066735/Command-Console-in-your-browser-via-HTML-Canvas-J

command-console-html-canvas-javascript-'s People

Contributors

badursun avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.