par-term-emu-core-rust 0.27.0__cp313-cp313-win_amd64.whl → 0.29.0__cp313-cp313-win_amd64.whl

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.
@@ -84,7 +84,7 @@ except ImportError:
84
84
  encode_client_message = None
85
85
  decode_client_message = None
86
86
 
87
- __version__ = "0.27.0"
87
+ __version__ = "0.29.0"
88
88
  __all__ = [
89
89
  "AmbiguousWidth",
90
90
  "Attributes",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: par-term-emu-core-rust
3
- Version: 0.27.0
3
+ Version: 0.29.0
4
4
  Classifier: License :: OSI Approved :: MIT License
5
5
  Classifier: Environment :: Console
6
6
  Classifier: Development Status :: 4 - Beta
@@ -50,6 +50,53 @@ A comprehensive terminal emulator library written in Rust with Python bindings f
50
50
 
51
51
  [!["Buy Me A Coffee"](https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png)](https://buymeacoffee.com/probello3)
52
52
 
53
+ ## What's New in 0.28.0
54
+
55
+ ### 🏷️ Badge Format Support (OSC 1337 SetBadgeFormat)
56
+
57
+ iTerm2-style badge support for terminal overlays with variable interpolation:
58
+
59
+ ```python
60
+ from par_term_emu_core_rust import Terminal
61
+
62
+ term = Terminal(80, 24)
63
+
64
+ # Set badge format with variables
65
+ term.set_badge_format(r"\(username)@\(hostname)")
66
+
67
+ # Set session variables
68
+ term.set_badge_session_variable("username", "alice")
69
+ term.set_badge_session_variable("hostname", "server1")
70
+
71
+ # Evaluate badge - returns "alice@server1"
72
+ badge = term.evaluate_badge()
73
+ print(f"Badge: {badge}")
74
+
75
+ # Get all session variables
76
+ vars = term.get_badge_session_variables()
77
+ print(f"Columns: {vars['columns']}, Rows: {vars['rows']}")
78
+ ```
79
+
80
+ **New Methods:**
81
+ - `badge_format()` - Get current badge format template
82
+ - `set_badge_format(format)` - Set badge format with `\(variable)` placeholders
83
+ - `clear_badge_format()` - Clear badge format
84
+ - `evaluate_badge()` - Evaluate badge with session variables
85
+ - `get_badge_session_variable(name)` - Get a session variable value
86
+ - `set_badge_session_variable(name, value)` - Set a custom session variable
87
+ - `get_badge_session_variables()` - Get all session variables as a dictionary
88
+
89
+ **Built-in Variables:**
90
+ `hostname`, `username`, `path`, `job`, `last_command`, `profile_name`, `tty`, `columns`, `rows`, `bell_count`, `selection`, `tmux_pane_title`, `session_name`, `title`
91
+
92
+ **Security:** Badge formats are validated to reject shell injection patterns (backticks, `$()`, pipes, etc.)
93
+
94
+ ### 🔧 Tmux Control Mode Fixes
95
+
96
+ - Fixed CRLF line ending handling (strips `\r` from `\r\n` line endings)
97
+ - Fixed `%output` notifications to preserve trailing spaces
98
+ - Fixed OSC 133 exit code parsing from `OSC 133 ; D ; <exit_code> ST`
99
+
53
100
  ## What's New in 0.27.0
54
101
 
55
102
  ### 🔄 Tmux Control Mode Auto-Detection
@@ -0,0 +1,7 @@
1
+ par_term_emu_core_rust\__init__.py,sha256=GaNEzjMxQrDju_2o3HbgEvJAXt5ixZ7xAKgdrH2v7Ts,3395
2
+ par_term_emu_core_rust\_native.cp313-win_amd64.pyd,sha256=ZUiOMdGVU7KH4n2G7fuX4aiXINU373EQ7dc9dp5KUnk,8355328
3
+ par_term_emu_core_rust\debug.py,sha256=O8xPOr7lZ0nPxK91KZ3dJODl7zdTehG87femB8qpzfA,8316
4
+ par_term_emu_core_rust-0.29.0.dist-info\METADATA,sha256=tg-hY23v2jhUOI74UTwn84CsejmSx7TPqpQRjbSkqzA,49530
5
+ par_term_emu_core_rust-0.29.0.dist-info\WHEEL,sha256=n_BmF69IyGtioVWE9c3M_zsEfe6-xMZy1v5HCL_6qE0,97
6
+ par_term_emu_core_rust-0.29.0.dist-info\licenses\LICENSE,sha256=esuBP6CN3TdQ-jXrMm61j1ODcUTbgrkJNJ8Vhh2Otx8,1090
7
+ par_term_emu_core_rust-0.29.0.dist-info\RECORD,,
@@ -1,7 +0,0 @@
1
- par_term_emu_core_rust\__init__.py,sha256=hDyTdysAkETRCJ9a64id79UYipqr2iR0lK7l3YFzUqA,3395
2
- par_term_emu_core_rust\_native.cp313-win_amd64.pyd,sha256=QESGHZlYflHi3q_8NGFZlczXf0-1gGkrOxWRiiCCXoI,8021504
3
- par_term_emu_core_rust\debug.py,sha256=O8xPOr7lZ0nPxK91KZ3dJODl7zdTehG87femB8qpzfA,8316
4
- par_term_emu_core_rust-0.27.0.dist-info\METADATA,sha256=Zvm1ZqL6b2E_EuKS_o-dVOsxEYoE5-3mpXrPJ8iSSO8,47766
5
- par_term_emu_core_rust-0.27.0.dist-info\WHEEL,sha256=n_BmF69IyGtioVWE9c3M_zsEfe6-xMZy1v5HCL_6qE0,97
6
- par_term_emu_core_rust-0.27.0.dist-info\licenses\LICENSE,sha256=esuBP6CN3TdQ-jXrMm61j1ODcUTbgrkJNJ8Vhh2Otx8,1090
7
- par_term_emu_core_rust-0.27.0.dist-info\RECORD,,