v/vlib/readline
2024-10-18 11:18:31 +03:00
..
readline.v fmt: fix and simplify align of struct fields (#21995) 2024-08-05 20:23:39 +03:00
readline_default.c.v utf8, readline: clarify UTF-8 vs UTF-32 usage (see also #22461) (#22558) 2024-10-18 11:18:31 +03:00
readline_js.js.v utf8, readline: clarify UTF-8 vs UTF-32 usage (see also #22461) (#22558) 2024-10-18 11:18:31 +03:00
readline_nix.c.v utf8, readline: clarify UTF-8 vs UTF-32 usage (see also #22461) (#22558) 2024-10-18 11:18:31 +03:00
readline_test.v
readline_windows.c.v utf8, readline: clarify UTF-8 vs UTF-32 usage (see also #22461) (#22558) 2024-10-18 11:18:31 +03:00
README.md readline: README.md change '?' to '!' (#17868) 2023-04-04 02:51:30 +03:00

Description

The readline module lets you await and read user input from a terminal in an easy and structured manner.

The module provides an easy way to prompt the user for questions or even make a REPL or an embedded console.

Usage:

import readline

mut r := readline.Readline{}
answer := r.read_line('hello: ')!
println(answer)

or just:

import readline { read_line }

input := read_line('What is your name: ')!
println('Your name is: ${input}')