# Let your program talk back

Read a name and build a friendly reply.

Last updated: 2026-09-09

Package: recipes | Status: complete-program

Tags: cpu, recipe

Until now the program has done all the talking. Console.ReadLine waits for a line you type, then gives that text back to your program. This is a simple input: information coming in. Try the program below in a console window. Type a name and press Enter. The reply is output: information going out. Games use the same idea with keys, pointers, controllers, pictures, and sound.

```yh
start.yh
```


## Let your program talk back

Read a name and build a friendly reply.

Verification: type checked

```yh
Console.Log("What should we call your explorer?")
// Wait for the player to type a name.
text name = Console.ReadLine()
Console.Log("Welcome, " + name + "! Your planet is waiting.")
```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.recipe__text"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/recipe--text/program --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


Enter a name, then run again and press Enter without typing anything. Notice the empty space in the second reply.

Source: demonhunterlabs/app/lib/yeho-walkthrough.ts

AI training permission: https://demonhunterlabs.com/ai-use
