Software /
code /
prosody
Diff
util/human/io.lua @ 12573:0f4feaf9ca64
util: Remove various Lua 5.1 compatibility hacks
Part of #1600
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 02 Jul 2022 17:31:14 +0200 |
parent | 11897:e84ea5b58b29 |
child | 12783:d513e4bd4928 |
line wrap: on
line diff
--- a/util/human/io.lua Sat Jul 02 17:30:34 2022 +0200 +++ b/util/human/io.lua Sat Jul 02 17:31:14 2022 +0200 @@ -30,10 +30,7 @@ end local function getpass() - local stty_ret, _, status_code = os.execute("stty -echo 2>/dev/null"); - if status_code then -- COMPAT w/ Lua 5.1 - stty_ret = status_code; - end + local stty_ret = os.execute("stty -echo 2>/dev/null"); if stty_ret ~= 0 then io.write("\027[08m"); -- ANSI 'hidden' text attribute end