PyTermGUI 7.8.0__tar.gz → 7.8.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. {pytermgui-7.8.0 → pytermgui-7.8.1}/CHANGELOG.md +6 -0
  2. {pytermgui-7.8.0 → pytermgui-7.8.1}/PKG-INFO +8 -2
  3. {pytermgui-7.8.0 → pytermgui-7.8.1}/pytermgui/__init__.py +1 -1
  4. {pytermgui-7.8.0 → pytermgui-7.8.1}/pytermgui/widgets/input_field.py +12 -4
  5. {pytermgui-7.8.0 → pytermgui-7.8.1}/.gitignore +0 -0
  6. {pytermgui-7.8.0 → pytermgui-7.8.1}/LICENSE +0 -0
  7. {pytermgui-7.8.0 → pytermgui-7.8.1}/README.md +0 -0
  8. {pytermgui-7.8.0 → pytermgui-7.8.1}/pyproject.toml +0 -0
  9. {pytermgui-7.8.0 → pytermgui-7.8.1}/pytermgui/animations.py +0 -0
  10. {pytermgui-7.8.0 → pytermgui-7.8.1}/pytermgui/ansi_interface.py +0 -0
  11. {pytermgui-7.8.0 → pytermgui-7.8.1}/pytermgui/cmd.py +0 -0
  12. {pytermgui-7.8.0 → pytermgui-7.8.1}/pytermgui/color_info.py +0 -0
  13. {pytermgui-7.8.0 → pytermgui-7.8.1}/pytermgui/colors.py +0 -0
  14. {pytermgui-7.8.0 → pytermgui-7.8.1}/pytermgui/context_managers.py +0 -0
  15. {pytermgui-7.8.0 → pytermgui-7.8.1}/pytermgui/enums.py +0 -0
  16. {pytermgui-7.8.0 → pytermgui-7.8.1}/pytermgui/exceptions.py +0 -0
  17. {pytermgui-7.8.0 → pytermgui-7.8.1}/pytermgui/exporters.py +0 -0
  18. {pytermgui-7.8.0 → pytermgui-7.8.1}/pytermgui/fancy_repr.py +0 -0
  19. {pytermgui-7.8.0 → pytermgui-7.8.1}/pytermgui/file_loaders.py +0 -0
  20. {pytermgui-7.8.0 → pytermgui-7.8.1}/pytermgui/helpers.py +0 -0
  21. {pytermgui-7.8.0 → pytermgui-7.8.1}/pytermgui/highlighters.py +0 -0
  22. {pytermgui-7.8.0 → pytermgui-7.8.1}/pytermgui/input.py +0 -0
  23. {pytermgui-7.8.0 → pytermgui-7.8.1}/pytermgui/inspector.py +0 -0
  24. {pytermgui-7.8.0 → pytermgui-7.8.1}/pytermgui/markup/__init__.py +0 -0
  25. {pytermgui-7.8.0 → pytermgui-7.8.1}/pytermgui/markup/aliases.py +0 -0
  26. {pytermgui-7.8.0 → pytermgui-7.8.1}/pytermgui/markup/language.py +0 -0
  27. {pytermgui-7.8.0 → pytermgui-7.8.1}/pytermgui/markup/macros.py +0 -0
  28. {pytermgui-7.8.0 → pytermgui-7.8.1}/pytermgui/markup/parsing.py +0 -0
  29. {pytermgui-7.8.0 → pytermgui-7.8.1}/pytermgui/markup/style_maps.py +0 -0
  30. {pytermgui-7.8.0 → pytermgui-7.8.1}/pytermgui/markup/tokens.py +0 -0
  31. {pytermgui-7.8.0 → pytermgui-7.8.1}/pytermgui/palettes.py +0 -0
  32. {pytermgui-7.8.0 → pytermgui-7.8.1}/pytermgui/prettifiers.py +0 -0
  33. {pytermgui-7.8.0 → pytermgui-7.8.1}/pytermgui/pretty.py +0 -0
  34. {pytermgui-7.8.0 → pytermgui-7.8.1}/pytermgui/py.typed +0 -0
  35. {pytermgui-7.8.0 → pytermgui-7.8.1}/pytermgui/regex.py +0 -0
  36. {pytermgui-7.8.0 → pytermgui-7.8.1}/pytermgui/serialization.py +0 -0
  37. {pytermgui-7.8.0 → pytermgui-7.8.1}/pytermgui/term.py +0 -0
  38. {pytermgui-7.8.0 → pytermgui-7.8.1}/pytermgui/widgets/__init__.py +0 -0
  39. {pytermgui-7.8.0 → pytermgui-7.8.1}/pytermgui/widgets/base.py +0 -0
  40. {pytermgui-7.8.0 → pytermgui-7.8.1}/pytermgui/widgets/boxes.py +0 -0
  41. {pytermgui-7.8.0 → pytermgui-7.8.1}/pytermgui/widgets/button.py +0 -0
  42. {pytermgui-7.8.0 → pytermgui-7.8.1}/pytermgui/widgets/checkbox.py +0 -0
  43. {pytermgui-7.8.0 → pytermgui-7.8.1}/pytermgui/widgets/collapsible.py +0 -0
  44. {pytermgui-7.8.0 → pytermgui-7.8.1}/pytermgui/widgets/color_picker.py +0 -0
  45. {pytermgui-7.8.0 → pytermgui-7.8.1}/pytermgui/widgets/containers.py +0 -0
  46. {pytermgui-7.8.0 → pytermgui-7.8.1}/pytermgui/widgets/fancy_repr.py +0 -0
  47. {pytermgui-7.8.0 → pytermgui-7.8.1}/pytermgui/widgets/frames.py +0 -0
  48. {pytermgui-7.8.0 → pytermgui-7.8.1}/pytermgui/widgets/inline.py +0 -0
  49. {pytermgui-7.8.0 → pytermgui-7.8.1}/pytermgui/widgets/keyboard_button.py +0 -0
  50. {pytermgui-7.8.0 → pytermgui-7.8.1}/pytermgui/widgets/pixel_matrix.py +0 -0
  51. {pytermgui-7.8.0 → pytermgui-7.8.1}/pytermgui/widgets/slider.py +0 -0
  52. {pytermgui-7.8.0 → pytermgui-7.8.1}/pytermgui/widgets/styles.py +0 -0
  53. {pytermgui-7.8.0 → pytermgui-7.8.1}/pytermgui/widgets/toggle.py +0 -0
  54. {pytermgui-7.8.0 → pytermgui-7.8.1}/pytermgui/win32console.py +0 -0
  55. {pytermgui-7.8.0 → pytermgui-7.8.1}/pytermgui/window_manager/__init__.py +0 -0
  56. {pytermgui-7.8.0 → pytermgui-7.8.1}/pytermgui/window_manager/compositor.py +0 -0
  57. {pytermgui-7.8.0 → pytermgui-7.8.1}/pytermgui/window_manager/layouts.py +0 -0
  58. {pytermgui-7.8.0 → pytermgui-7.8.1}/pytermgui/window_manager/manager.py +0 -0
  59. {pytermgui-7.8.0 → pytermgui-7.8.1}/pytermgui/window_manager/window.py +0 -0
@@ -1,3 +1,9 @@
1
+ ## [7.8.1] - 2026-09-10
2
+
3
+ ### Bugfixes
4
+
5
+ - Fix multiline input navigation and joining lines with Backspace
6
+
1
7
  ## [7.8.0] - 2026-08-10
2
8
 
3
9
  ### Additions
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: PyTermGUI
3
- Version: 7.8.0
3
+ Version: 7.8.1
4
4
  Summary: Python TUI framework with mouse support, modular widget system, customizable and rapid terminal markup language and more!
5
5
  Project-URL: homepage, https://github.com/bczsalba/PyTermGUI
6
6
  Project-URL: repository, https://github.com/bczsalba/PyTermGUI
@@ -107,7 +107,13 @@ on the emulator forwarding the requested events.
107
107
 
108
108
  ## Latest release
109
109
 
110
- ### [7.8.0] - 2026-08-10
110
+ ### [7.8.1] - 2026-09-10
111
+
112
+ ### Bugfixes
113
+
114
+ - Fix multiline input navigation and joining lines with Backspace
115
+
116
+ ## [7.8.0] - 2026-08-10
111
117
 
112
118
  ### Additions
113
119
 
@@ -40,7 +40,7 @@ if "-m" in sys.argv: # pragma: no cover
40
40
 
41
41
  warnings.filterwarnings("ignore")
42
42
 
43
- __version__ = "7.8.0"
43
+ __version__ = "7.8.1"
44
44
 
45
45
 
46
46
  def auto(data: Any, **widget_args: Any) -> Optional[Widget | list[Splitter]]:
@@ -178,6 +178,15 @@ class InputField(Widget): # pylint: disable=too-many-instance-attributes
178
178
 
179
179
  line = self._lines[row]
180
180
 
181
+ if col == 0 and row > 0 and count == 1:
182
+ previous = self._lines[row - 1]
183
+ self._lines[row - 1] = previous + line
184
+ self._lines.pop(row)
185
+ self.move_cursor((row - 1, len(previous)), absolute=True)
186
+ self._styled_cache = None
187
+
188
+ return "\n"
189
+
181
190
  start, end = sorted([col, col - count])
182
191
  start = max(0, start)
183
192
  self._lines[row] = line[:start] + line[end:]
@@ -435,7 +444,6 @@ class InputField(Widget): # pylint: disable=too-many-instance-attributes
435
444
  row, col = self.cursor
436
445
 
437
446
  line = self._lines[row]
438
- width = len(line)
439
447
 
440
448
  # Going left, possibly upwards
441
449
  if col < 0:
@@ -445,17 +453,17 @@ class InputField(Widget): # pylint: disable=too-many-instance-attributes
445
453
  else:
446
454
  self.cursor.row -= 1
447
455
  line = self._lines[self.cursor.row]
448
- self.cursor.col = width
456
+ self.cursor.col = len(line)
449
457
 
450
458
  # Going right, possibly downwards
451
- elif col > width and line != "":
459
+ elif col > len(line) and line != "":
452
460
  if len(self._lines) > row + 1:
453
461
  self.cursor.row += 1
454
462
  self.cursor.col = 0
455
463
 
456
464
  line = self._lines[self.cursor.row]
457
465
 
458
- self.cursor.col = max(0, min(self.cursor.col, width))
466
+ self.cursor.col = max(0, min(self.cursor.col, len(line)))
459
467
 
460
468
  def get_lines(self) -> list[str]:
461
469
  """Builds the input field's lines."""
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes