v/vlib/readline
2025-09-02 18:01:26 +03:00
..
readline.v readline: fix doc comment example by removing it 2025-08-13 18:03:10 +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 readline: fix wide char display width for Chinese characters (fix #25219) (#25220) 2025-09-02 18:01:26 +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}')