You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Some readline implementations (e.g., libedit) may not support insert_text or redisplay
135
145
# In this case, we'll display the default value in the prompt as a fallback
136
146
pass
@@ -157,8 +167,9 @@ def prefill():
157
167
finally:
158
168
# Clean up hook; use try-except to prevent errors on unsupported systems
159
169
try:
160
-
readline.set_pre_input_hook()
161
-
except (AttributeError, OSError):
170
+
# Unset hook explicitly to avoid TypeError on some implementations
171
+
readline.set_pre_input_hook(None)
172
+
except (AttributeError, OSError, TypeError):
162
173
pass
163
174
164
175
defgenerate_config(
@@ -572,7 +583,13 @@ def _handle_string(
572
583
whileTrue:
573
584
# Build complete prompt information
574
585
ifdefault:
575
-
prompt_str=f"\n[{current}/{total}] {icon}{description} (current: {default}{''ifnot ('{'indefaultand'}'indefault) else', content in curly braces is a dynamic placeholder, no need to fill manually'}): "
586
+
default_str=str(default)
587
+
placeholder_hint= (
588
+
", content in curly braces is a dynamic placeholder, no need to fill manually"
0 commit comments