recipes · recipe ·
Let your program talk back
Read a name and build a friendly reply.
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.
start.yhStatus: complete-program
Let your program talk back
Read a name and build a friendly reply.
cpu · type checked
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.")project.mech
manifestVersion = "2"
package = "api.example.recipe__text"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"
[app]
kind = "headless"
Notes and source
Enter a name, then run again and press Enter without typing anything. Notice the empty space in the second reply.
demonhunterlabs/app/lib/yeho-walkthrough.ts