diff --git a/README.md b/README.md index d1af1f0..2c4d919 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ sshch -h - If you want to use unsafe 'password' feature you must install 'sshpass' first. - If you want to use bash autocompletion function with sshch, copy autocompletion script to /etc/bash_completion.d/: ``` -sudo cp sshch_bash_completion.sh /etc/bash_completion.d/sshch +sudo cp completion/sshch_bash_completion.sh /etc/bash_completion.d/sshch ``` (changes will come into effect with new bash session) - If you want to use zsh autocompletion: diff --git a/setup.py b/setup.py index 9575f8c..affefc2 100644 --- a/setup.py +++ b/setup.py @@ -10,7 +10,7 @@ def main(): url='https://github.com/zlaxy/sshch/', description='Ssh connection manager', license='DWTWL 2.55', - version='0.997', + version='0.998', py_modules=['sshch'], scripts=['sshch/sshch'], diff --git a/sshch/sshch b/sshch/sshch index ac76b79..9597364 100755 --- a/sshch/sshch +++ b/sshch/sshch @@ -20,7 +20,7 @@ import curses from curses import textpad, panel # https://github.com/zlaxy/sshch -version = "0.997" +version = "0.998" # path to conf file, default: ~/.config/sshch.conf conf_file = path.expanduser("~") + '/.config/sshch.conf' # expand groups by default @@ -327,7 +327,7 @@ def CursesPanel(screen, h, w, y, x, text, position = position - 1 hidden_password = hidden_password[0:-1] if keych > 31 and keych < 127: - hidden_password += curses.keyname(keych) + hidden_password += curses.keyname(keych).decode('utf-8') sub_window.addstr(1, position, "*", text_colorpair) if position < w - 4: position += 1