Skip to content
TurdPooCharger edited this page Apr 22, 2018 · 16 revisions

(Work In Progress) This page delves into greater details about the echo command.

Character Set

Including the blank space , these are the available char.

!#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_``abcdefghijklmnopqrstuvwxyz{|}~

Implicit vs Explicit Statements

In general, one worded, simple, or continuous phrases may be implicitly stated.

Example 1: echo Hello

Example 2: echo Hello_World

There are limitations for phrases containing certain char, including -#$%

These phrases fall under the explicit category in which quotation marks " " are necessary.

Example 3:

Incorrect: echo Hello World

Correct: echo "Hello World"

Example 4:

Incorrect: echo 0:/Nintendo 3DS/

Correct: echo "0:/Nintendo 3DS/"

Skipping lines

Phrases that are too long may become unreadable if they fill past the right edge of the 3DS bottom screen. Like typing with the Enter key for a keyboard, the inclusion of \n serves as a break to begin readouts with a new line.

Example 5: echo "Hello \nWorld"

Hello

World

In order to skip two lines, care is needed to add between the two \n.

Example 6:

echo "Hello \n\nWorld"

Hello

World

Example 7:

echo "Hello \n \nWorld"

Hello

World

Clone this wiki locally