diff options
author | Kim Alvefur <zash@zash.se> | 2022-07-02 17:31:14 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2022-07-02 17:31:14 +0200 |
commit | 49a9a1e76a34d67cfa2be24cbb2e2a9db545f969 (patch) | |
tree | 6fed48b05f974d945d15a30b9726b06b091b5338 /util/human/io.lua | |
parent | ada68efcc9547519a636bc46fdd7a60216a578d5 (diff) | |
download | prosody-49a9a1e76a34d67cfa2be24cbb2e2a9db545f969.tar.gz prosody-49a9a1e76a34d67cfa2be24cbb2e2a9db545f969.zip |
util: Remove various Lua 5.1 compatibility hacks
Part of #1600
Diffstat (limited to 'util/human/io.lua')
-rw-r--r-- | util/human/io.lua | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/util/human/io.lua b/util/human/io.lua index 7d7dea97..4fce0e94 100644 --- a/util/human/io.lua +++ b/util/human/io.lua @@ -30,10 +30,7 @@ local function getline() 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 |