The Terminal module provides console input and output. It's the most commonly used standard library module. |
|
Include the terminal module to get the term object. |
include "lang/terminal.vel";
|
print outputs text without a newline. println adds a newline.
|
term.print("Hello "); # no newline
term.println("World"); # with newline
|
input() reads a line from the console.
|
term.print("Enter your name: ");
str name = term.input();
term.println("Hello, ".con(name));
|