package mantra.io

Console

CLASS public class

Standard output and standard error stream controller supporting color escape formatting.

🏗️ Constructor Summary

Constructor Signature
def __init__(self)

⚙️ Method Summary

Modifier & Return Type Method Signature Description
Void print(val: Any) Outputs string representation to stdout followed by newline.
Void eprintln(val: Any) Outputs string representation to stderr.
String read_line() Reads single line from stdin.

🔍 Detailed Method Specifications

pub def print(val: Any) -> Void
Outputs string representation to stdout followed by newline.
pub def eprintln(val: Any) -> Void
Outputs string representation to stderr.
pub def read_line() -> String
Reads single line from stdin.

💡 Example Usage

console_example.mantra
Console.print("Server listening on port 8080")