comparison util/human/io.lua @ 14121:7008869fcce2

Merge 13.0->trunk
author Matthew Wild <mwild1@gmail.com>
date Thu, 02 Apr 2026 20:54:46 +0100
parents cfe3e85e715f 519c16c2eb21
children 565debd9c37a
comparison
equal deleted inserted replaced
14118:221f3378e7f4 14121:7008869fcce2
41 else 41 else
42 io.write("\027[00m"); 42 io.write("\027[00m");
43 end 43 end
44 io.write("\n"); 44 io.write("\n");
45 if ok then 45 if ok then
46 return pass; 46 return (pass:gsub("\n$", ""));
47 end 47 end
48 end 48 end
49 49
50 local function show_yesno(prompt) 50 local function show_yesno(prompt)
51 io.write(prompt, " "); 51 io.write(prompt, " ");