Hi

- Version: Latest (readline-7.0 patch 5)

- OS: Fedora

- Description: Function rl_tty_set_echoing is currently lacking definition in the readline.h unlike other terminal management functions. I guess this is unintentional as it seems like the function is purely for external users?

- Recreating: attempt to call rl_tty_set_echoing from readline library

- Fix: patch attached


--
BR
Niko Kortström

>From 2c9498e604d5c56071956eb654dda4346186ab66 Mon Sep 17 00:00:00 2001
From: Niko Kortstrom <[email protected]>
Date: Thu, 7 Jun 2018 13:20:54 +0300
Subject: [PATCH] Include rl_tty_set_echoing to readline headers

Function rl_tty_set_echoing is currently lacking definition
in the readline.h unlike other terminal management functions.
Let's add the missing definitions to make it callable for
external users.
---
 readline.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/readline.h b/readline.h
index 924bbfb..5649095 100644
--- a/readline.h
+++ b/readline.h
@@ -410,6 +410,7 @@ extern char *rl_copy_text PARAMS((int, int));
 /* Terminal and tty mode management. */
 extern void rl_prep_terminal PARAMS((int));
 extern void rl_deprep_terminal PARAMS((void));
+extern int rl_tty_set_echoing PARAMS((int));
 extern void rl_tty_set_default_bindings PARAMS((Keymap));
 extern void rl_tty_unset_default_bindings PARAMS((Keymap));
 
-- 
2.17.1

_______________________________________________
Bug-readline mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-readline

Reply via email to