Crach when ENTER key is pressed in the Alpine minimal image #2658

pull/2661/head
nicolargo 2024-01-20 10:21:45 +01:00
parent f59a683626
commit 42f95f3cb7
1 changed files with 3 additions and 2 deletions

View File

@ -1020,6 +1020,7 @@ class _GlancesCurses(object):
# Add the message
for y, m in enumerate(sentence_list):
if len(m) > 0:
popup.addnstr(2 + y, 2, m, len(m))
if popup_type == 'info':
@ -1048,7 +1049,7 @@ class _GlancesCurses(object):
logger.debug("User enters the following string: %s" % textbox.gather())
return textbox.gather()[:-1]
else:
logger.debug("User centers an empty string")
logger.debug("User enters an empty string")
return None
elif popup_type == 'yesno':
# # Create a sub-window for the text field