From b2de469c0ed8f5554f66b51506fc153762a2b09c Mon Sep 17 00:00:00 2001 From: The Yellow Architect Date: Sun, 19 Nov 2023 15:55:29 +0200 Subject: [PATCH] On the input prompt of compression ratio (0 to 51) it automatically enters on entering the 2nd character. No need to press 2 digits then press enter. Now you write 2 digits and the enter is pressed automatically. --- .config/lf/lfrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/lf/lfrc b/.config/lf/lfrc index 842f870c..792ff6c7 100644 --- a/.config/lf/lfrc +++ b/.config/lf/lfrc @@ -93,7 +93,7 @@ cmd compressvideo ${{ converted_files_count=0; #notify-send variable echo "Compression Rate? (default: 31, maximum: 50)"; - read compressionRate; + read -N 2 compressionRate; #If not a number (e.g. empty), give default 31 value if ! [[ $compressionRate =~ ^[0-5][0-9]$ ]]; then