Gecho
Developer Tool, Plugin, Programming

WRITE COLORFUL TEXT IN ONE LINE-GECHO

In CMD, users generally work in a black and white field, where the background is black and the characters typed are white. Even if we use plugins to alter output colors, we cannot affect sub-sections of the console with a specific color. To remove this limitation in CMD, the Gecho plugin was created. Gecho helps you write colorful texts in one line, with low latency. Gecho was created and written by Groophy Lifefor, and helped by MBausson, in the C# language. You can download this plugin from Groophy Lifefor’s Github.

RELATED VIDEO

SYNTAX

	call gecho "<COLORS> TEXT"

	call gecho "This is a <r>Red<gn>Green<gray>Grey<B>Blue"

Note: Because of cmd’s rules, you must enclose the string in double quotes for the command to work properly.

DEMONSTRATION

In the Gecho plugin, you can write colorful texts in one line without rewriting the command multiple times. We can use Gecho either by writing the color name before the text in angular brackets or writing the code of the respected color. Below, we will demonstrate the flexibility of the plugin with the provided examples.

-WRITING THE NAME OF THE COLOR

gecho "this is <red>red and <blue>blue<nl>this is <green>green and <magenta>magenta"
Using Gecho by writing the name of colors

WRITING THE CODE OF RESPECTED COLOR

The format of Gecho is similar to that of common markup languages such as HTML and XML. However, there is no need to use a closing tag, as there is a ‘reset color’ tag you can insert that will reset the screen colors at that point.

gecho "this is <r>red and <b>blue<nl>this is <gn>green and <dk>darkyellow"

Where the codes of respected colors are:

      <Black>                 <Gray> = <g>
      <Blue> = <b>            <DarkBlue> = <db>
      <Green> = <gn>          <DarkCyan> = <dc>
      <Cyan> = <c>            <DarkGray> = <dgy>
      <Red> = <r>             <DarkGreen> = <dgn>
      <White> = <w>           <DarkMagenta> = <dm>
      <Yellow> = <y>          <DarkRed> = <dr>
      <Magenta> = <m>         <DarkYellow> = <dy>
      </> = Reset Color       <nl> = NewLine without reset color
Using Gecho by writing the codes of respected colors

CONCLUSION

This article explains why the Gecho plugin was made and how to use it. Thank you for reading the article, I hope you enjoyed it. You can give your suggestion in the comments below. For more plugins like this check out the Batch-Man website and Github also follow us on Discord and Youtube.

Leave a Reply