eric7/DebugClients/Python/DebugClientBase.py

branch
eric7
changeset 8948
9ddea4f0ad87
parent 8947
579e286300d1
child 8954
c8b027c654bc
--- a/eric7/DebugClients/Python/DebugClientBase.py	Sun Feb 13 15:00:25 2022 +0100
+++ b/eric7/DebugClients/Python/DebugClientBase.py	Sun Feb 13 15:41:58 2022 +0100
@@ -39,7 +39,7 @@
 ###############################################################################
 
 
-def DebugClientInput(prompt=""):
+def DebugClientInput(prompt="", echo=True):
     """
     Replacement for the standard input() builtin.
     
@@ -47,13 +47,15 @@
     
     @param prompt prompt to be shown
     @type str
+    @param echo flag indicating echoing of the input
+    @type bool
     @return result of the input() call
     @rtype str
     """
     if DebugClientInstance is None or not DebugClientInstance.redirect:
         return DebugClientOrigInput(prompt)
     else:
-        return DebugClientInstance.input(prompt)
+        return DebugClientInstance.input(prompt, echo=echo)
 
 # Use our own input().
 try:
@@ -225,9 +227,12 @@
         """
         Public method to implement input() using the event loop.
         
-        @param prompt the prompt to be shown (string)
-        @param echo Flag indicating echoing of the input (boolean)
+        @param prompt prompt to be shown
+        @type str
+        @param echo flag indicating echoing of the input
+        @type bool
         @return the entered string
+        @rtype str
         """
         self.sendJsonCommand("RequestRaw", {
             "prompt": prompt,

eric ide

mercurial