Code Monkey home page Code Monkey logo

typewriterbatch's Introduction

typewriterbatch

A typewriter-style plugin for batch. Customize delay between characters printed to the screen. It can be useful for loading menus or adding aesthetic to console utilities. The delay can be customized in milliseconds.

How to use

typewriter "Hello, World!" 100 y

The above command will print "Hello, World!" with a 100 millisecond delay (1/10th of a second) and the 'y' flag will add a newline character to the end.

typewriter (string) (delay time) (y/n newline)

If y/n is not specified, a newline is added by default. The program will check to ensure the delay is a valid number and is not negative. I would not recommend using very large numbers. Here is a list of common delays:

100 - 1/10th a second

250 - 1/4 a second

500 - 1/2 a second

1000 - 1 second

5000 - 5 seconds

10000 - 10 seconds

The program has a delay by putting the current thread to sleep, so it should still be able to respond to Ctrl+C, but further batch processing can't happen until the program finishes typing.

typewriterbatch's People

Contributors

zeek05 avatar

Stargazers

ReZLone avatar  avatar Karanveer Chouhan avatar

Watchers

 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.