From f9ee932b62fcaa73bf092537ae212e6ab9cd7285 Mon Sep 17 00:00:00 2001 From: Laurent Mazet Date: Tue, 28 Feb 2023 15:01:28 +0100 Subject: [PATCH] force parenthesis highlighting --- calc.c | 4 +++- inputrc | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) delete mode 100644 inputrc diff --git a/calc.c b/calc.c index cadb186..71bea56 100644 --- a/calc.c +++ b/calc.c @@ -198,8 +198,10 @@ int main (int argc, char *argv[]) completion_list = generate_completion_list (); rl_attempted_completion_function = completion; - /* startup hook */ + /* readline parameters */ rl_startup_hook = edit_hook; + rl_variable_bind ("blink-matching-paren", "On"); + //rl_set_screen_size (50, 40); /* read from input stream */ diff --git a/inputrc b/inputrc deleted file mode 100644 index 055d056..0000000 --- a/inputrc +++ /dev/null @@ -1 +0,0 @@ -set blink-matching-paren On -- 2.30.2