# Standard.Terminal

Standard.Terminal is a library of functions for interacting with the terminal.

## Contents

* [Functions](#functions)
  * [Standard.Terminal.Print](#standardterminalprint)
  * [Standard.Terminal.PrintLine](#standardterminalprintline)
  * [Standard.Terminal.Read](#standardterminalread)
* [Notes](#notes)

## Functions

### Standard.Terminal.Print

|                  |                                                            |
| ---------------- | ---------------------------------------------------------- |
| **Description**  | Prints a string to the terminal.                           |
| **Syntax**       | Print(*string*, *string*..)                                |
| **Parameters**   | *string* - Any number of strings to print to the terminal. |
| **Return Value** | The values printed to the terminal.                        |

#### Example

```nim
Print("Hello ")
Print("World!")
```

```powershell
Hello World!
```

### Standard.Terminal.PrintLine

|                  |                                                            |
| ---------------- | ---------------------------------------------------------- |
| **Description**  | Prints a string to the terminal, followed by a newline.    |
| **Syntax**       | PrintLine(*string*, *string*..)                            |
| **Parameters**   | *string* - Any number of strings to print to the terminal. |
| **Return Value** | The values printed to the terminal.                        |

#### Example

```nim
PrintLine("Hello, World!")

PrintLine("Hello, ", "World!")

PrintLine("Hello, ", "World!", "!")
```

```powershell
Hello, World!
Hello, World!
Hello, World!!
```

### Standard.Terminal.Read

|                  |                                                   |
| ---------------- | ------------------------------------------------- |
| **Description**  | Reads a string from the terminal.                 |
| **Syntax**       | Read()                                            |
| **Parameters**   | The line to write to the terminal before reading. |
| **Return Value** | The string read from the terminal.                |

#### Example

```nim
Read("Enter your name: ")
```

```powershell
Enter your name: 
```

## Notes

*{Notes}*


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://joerivanarkel.gitbook.io/piratelang/standard-library/standard.terminal.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
