{"id":"recipe--text","name":"Let your program talk back","owner":"yeho","package":"recipes","kind":"recipe","signature":"start.yh","description":"Read a name and build a friendly reply.","context":"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.","parameters":[],"returns":"","members":[],"tags":["cpu","recipe"],"updated":"2026-09-09","source":{"repository":"demonhunterlabs","path":"app/lib/yeho-walkthrough.ts"},"status":"complete-program","notes":["Enter a name, then run again and press Enter without typing anything. Notice the empty space in the second reply."],"examples":[{"id":"program","title":"Let your program talk back","description":"Read a name and build a friendly reply.","code":"Console.Log(\"What should we call your explorer?\")\n// Wait for the player to type a name.\ntext name = Console.ReadLine()\nConsole.Log(\"Welcome, \" + name + \"! Your planet is waiting.\")","manifest":"manifestVersion = \"2\"\npackage = \"api.example.recipe__text\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n","tags":["cpu"],"run":"cpu-oracle","expected":null,"verification":"type checked","sha256":"51f35a7cbc3b51820ec4e7a2a9c2f5bf28964e2d7099cc05212cec41552d9f4e","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":[],"url":"https://demonhunterlabs.com/academy/api?item=recipe--text","json":"https://demonhunterlabs.com/reference/items/recipe--text.json","markdown":"https://demonhunterlabs.com/reference/text/recipe--text.md"}
