par-term-emu-core-rust 0.28.0__cp314-cp314-win_amd64.whl → 0.30.0__cp314-cp314-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.28.0"
87
+ __version__ = "0.30.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.28.0
3
+ Version: 0.30.0
4
4
  Classifier: License :: OSI Approved :: MIT License
5
5
  Classifier: Environment :: Console
6
6
  Classifier: Development Status :: 4 - Beta
@@ -50,6 +50,73 @@ 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.30.0
54
+
55
+ ### ⌨️ modifyOtherKeys Protocol Support
56
+
57
+ XTerm extension for enhanced keyboard input reporting, enabling applications to receive modifier keys with regular characters:
58
+
59
+ ```python
60
+ from par_term_emu_core_rust import Terminal
61
+
62
+ term = Terminal(80, 24)
63
+
64
+ # Enable modifyOtherKeys mode via escape sequence
65
+ term.process(b"\x1b[>4;2m") # Mode 2: report all keys with modifiers
66
+ print(f"Mode: {term.modify_other_keys_mode()}") # Output: 2
67
+
68
+ # Or set directly
69
+ term.set_modify_other_keys_mode(1) # Mode 1: special keys only
70
+
71
+ # Query mode (response in drain_responses())
72
+ term.process(b"\x1b[?4m")
73
+ response = term.drain_responses() # Returns b"\x1b[>4;1m"
74
+ ```
75
+
76
+ **Modes:**
77
+ - `0` - Disabled (default)
78
+ - `1` - Report modifiers for special keys only
79
+ - `2` - Report modifiers for all keys
80
+
81
+ **New Methods:**
82
+ - `modify_other_keys_mode()` - Get current mode
83
+ - `set_modify_other_keys_mode(mode)` - Set mode directly (values > 2 clamped to 2)
84
+
85
+ **Sequences:**
86
+ - `CSI > 4 ; mode m` - Set mode
87
+ - `CSI ? 4 m` - Query mode (response: `CSI > 4 ; mode m`)
88
+
89
+ **Note:** Mode resets to 0 on terminal reset and when exiting alternate screen.
90
+
91
+ ### 🎨 Faint Text Alpha Control
92
+
93
+ Configurable alpha multiplier for SGR 2 (dim/faint) text, allowing fine-grained control over how dim text is rendered:
94
+
95
+ ```python
96
+ from par_term_emu_core_rust import Terminal
97
+
98
+ term = Terminal(80, 24)
99
+
100
+ # Get current faint text alpha (default: 0.5 = 50% dimming)
101
+ print(f"Alpha: {term.faint_text_alpha()}") # Output: 0.5
102
+
103
+ # Set faint text to be more transparent (more dimmed)
104
+ term.set_faint_text_alpha(0.3) # 30% opacity
105
+
106
+ # Set faint text to be less transparent (less dimmed)
107
+ term.set_faint_text_alpha(0.7) # 70% opacity
108
+
109
+ # Values are clamped to 0.0-1.0 range
110
+ term.set_faint_text_alpha(1.5) # Clamped to 1.0
111
+ term.set_faint_text_alpha(-0.5) # Clamped to 0.0
112
+ ```
113
+
114
+ **New Methods:**
115
+ - `faint_text_alpha()` - Get current alpha multiplier (0.0-1.0)
116
+ - `set_faint_text_alpha(alpha)` - Set alpha multiplier (clamped to valid range)
117
+
118
+ **Usage:** This setting is used by the screenshot renderer and can be queried by frontends for consistent rendering of dim text (SGR 2).
119
+
53
120
  ## What's New in 0.28.0
54
121
 
55
122
  ### 🏷️ Badge Format Support (OSC 1337 SetBadgeFormat)
@@ -576,6 +643,7 @@ make streamer-build-release
576
643
  - Mouse encoding control: `mouse_encoding()`, `set_mouse_encoding()`
577
644
  - Mode setters: `set_focus_tracking()`, `set_bracketed_paste()`, `set_title()`
578
645
  - Bold brightening control: `bold_brightening()`, `set_bold_brightening()`
646
+ - Faint text alpha control: `faint_text_alpha()`, `set_faint_text_alpha()`
579
647
  - Color getters for all theme colors (link, bold, cursor guide, badge, match, selection)
580
648
 
581
649
  ## What's New in 0.12.0
@@ -0,0 +1,7 @@
1
+ par_term_emu_core_rust\__init__.py,sha256=Vok8-9PMwoaDlr_gr9oe2Zy2_weez_tVnofQLdWVDCM,3395
2
+ par_term_emu_core_rust\_native.cp314-win_amd64.pyd,sha256=DGMmqxbP3ocIZXpEc_2ykqFTPcCjXE_-9old8ra6yws,8547328
3
+ par_term_emu_core_rust\debug.py,sha256=O8xPOr7lZ0nPxK91KZ3dJODl7zdTehG87femB8qpzfA,8316
4
+ par_term_emu_core_rust-0.30.0.dist-info\METADATA,sha256=_kcosOJL8UWHUEtw28YIA6U4WYeY5iahDC22FNhDd6g,51811
5
+ par_term_emu_core_rust-0.30.0.dist-info\WHEEL,sha256=TASrtxyeL-Pi7odwPBMCgR1YebCHdBFZvgqiADG_4b0,97
6
+ par_term_emu_core_rust-0.30.0.dist-info\licenses\LICENSE,sha256=esuBP6CN3TdQ-jXrMm61j1ODcUTbgrkJNJ8Vhh2Otx8,1090
7
+ par_term_emu_core_rust-0.30.0.dist-info\RECORD,,
@@ -1,7 +0,0 @@
1
- par_term_emu_core_rust\__init__.py,sha256=hCo0CXovLjXVIGrW_MYN-APe4NHQAyjKcXciaoy7uf4,3395
2
- par_term_emu_core_rust\_native.cp314-win_amd64.pyd,sha256=5w5sOwBoqulyNEo81X13FsoTXOb4GSa1TTZrbfME9II,8246784
3
- par_term_emu_core_rust\debug.py,sha256=O8xPOr7lZ0nPxK91KZ3dJODl7zdTehG87femB8qpzfA,8316
4
- par_term_emu_core_rust-0.28.0.dist-info\METADATA,sha256=7IcObVd1J9PQBplRRmiYqlU2wq12Dg2lO8MfPb6vqPY,49530
5
- par_term_emu_core_rust-0.28.0.dist-info\WHEEL,sha256=TASrtxyeL-Pi7odwPBMCgR1YebCHdBFZvgqiADG_4b0,97
6
- par_term_emu_core_rust-0.28.0.dist-info\licenses\LICENSE,sha256=esuBP6CN3TdQ-jXrMm61j1ODcUTbgrkJNJ8Vhh2Otx8,1090
7
- par_term_emu_core_rust-0.28.0.dist-info\RECORD,,