Skip to content
loading...
Cover image for HELLOWORLD.BAT - VanillaJS plain text editor

HELLOWORLD.BAT - VanillaJS plain text editor

5t3ph profile image Stephanie Eckles twitter logo github logo ・1 min read

Inspired by this week's Codepen challenge to create something related to "HELLO WORLD" using Javascript, I decided to mimic an old-school DOS terminal.

If you missed the typing animation, click "Rerun" in the bottom right of the Codepen frame.

This uses Javascript to "type" the content, and CSS animation for the cursor.

The layout was made in a snap with CSS grid 😎

While not truly a full editor, you can type in your own content thanks to the humble contenteditable HTML attribute.

It would be neat to level this up by actually moving the cursor animation wherever you click, and perhaps provide some kind of fun functionality to create working menus 😊 Feel free to fork and make it happen!

twitter logo DISCUSS (19)
Discussion
markdown guide
 

this is like turbo c++ when I was in uni. gives me creeps.

 
 

Loved turbo pascal back in the day. Its the language I learned to program in. It's crazy how you could add little chunks of assembly right in the code.

 

Looks ancient (before my time), but really nice Steph.

 

Lol, before my "programming" time, but in my lifetime πŸ˜‰

 
 

Wow, this brings back memories of my school days when we used to code in Turbo C++. Great job recreating it!

 
 

someone please make vim keybindingsπŸ˜‚

 

Man I am glad I wasn't born during that time. I would have been discouraged from becoming a programmer 😏 , but you really painted a good picture of where it all started. Thanks

 
 
 
 
 
Classic DEV Post from Aug 1 '19

Which dev.to loading GIF do you prefer?

I made some dev.to loading gifs

Stephanie Eckles profile image
Girl Geek, Web Dev (frontend/JS/React) building a design system, teaching a code video series, authoring ModernCSS.dev, egghead instructor, mom to 2 girls