/usr/share/doc/instead/manual/examples/keyboard/main.lua is in instead-doc-base 1.9.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | instead_version "1.7.0"
require "keyboard"
require "xact"
input.verbose = true
main = room {
nam = '?';
dsc = function(s)
if read.text ~= '' then
p "Привет, "
p (read.text,"!")
else
p [[Как вас {xwalk(read)|зовут}?]];
end
end
}
read = keyboard {
nam = 'Имя:';
msg = "Поле ввода:";
}
|