0 branches
Tree
Top files
Clone with HTTPS:
readline.v
readline: fix The read_char () of the readline module does not work in Windows OS. (fixes #24686)
last Apr 23
1.22 KB
readline_default.c.v
utf8, readline: clarify UTF-8 vs UTF-32 usage (see also #22461) (#22558)
1 year ago
3.0 KB
readline_js.js.v
utf8, readline: clarify UTF-8 vs UTF-32 usage (see also #22461) (#22558)
1 year ago
1009 bytes
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}')