termpix 0.3.0 → 0.3.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 763bacec25caa2a40043e19c2319b44c9433848e307281a761c4933ce345c227
4
- data.tar.gz: e5fe48498bcf92d6cfccea1fedbec3d4cd33945096682e769a1464bb2248d0d2
3
+ metadata.gz: f02b355cf61a8cfd00292a79423a428d071cbc333674c1e2324901f62bd10a38
4
+ data.tar.gz: d55c9be1b6e0e2de2b0d093ec25cfc4bb462f165197db5cbae20039eee4d7d53
5
5
  SHA512:
6
- metadata.gz: b55c954c5ccc8f78922973a8efd3c20a4891509fe9adc7c6baa71f91620d28952379096dbbeab6703799f0c58f6401ef3820e83f89eb0368d37d6e36e5db42b5
7
- data.tar.gz: 890174a649f8cdc54d4506f3ff21075aa5d5f82f2be282101b19ad6e107b37271673272ac8c582ed96d2210a50375435ed31ee9d47fa2ce2259fdfba1749a0c8
6
+ metadata.gz: 8d4d33f281c9fb9346f978dc764c3ce66f9c42b6be11c5a1cc1869f1054798ac8a3230a76450f0be66c063efda2284ad28dcfb0e9c5f34155a07a2bcfb79a19a
7
+ data.tar.gz: e155d39ed7003b6c5c405a5f703d526d54c6732add1494e0a0f4eae1390660c591f257e0e44114da1aa9c3801d63979b8405a56047a7194bdafca5d9fb86130c
@@ -1,3 +1,3 @@
1
1
  module Termpix
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
data/lib/termpix.rb CHANGED
@@ -84,6 +84,11 @@ module Termpix
84
84
  return :kitty if check_dependency('convert')
85
85
  end
86
86
 
87
+ # Check for WezTerm - supports Kitty graphics protocol
88
+ if ENV['TERM_PROGRAM'] == 'WezTerm' || ENV['WEZTERM_EXECUTABLE']
89
+ return :kitty if check_dependency('convert')
90
+ end
91
+
87
92
  # Check for Sixel support - works well with curses apps
88
93
  # Note: urxvt/rxvt-unicode does NOT support sixel unless specially compiled
89
94
  if ENV['TERM']&.match(/^xterm(?!-kitty)|^mlterm|^foot/)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: termpix
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Geir Isene
@@ -10,10 +10,10 @@ bindir: bin
10
10
  cert_chain: []
11
11
  date: 2026-01-16 00:00:00.000000000 Z
12
12
  dependencies: []
13
- description: 'Termpix v0.3.0: Native Kitty graphics protocol - no more flash in kitty
14
- terminal. Provides clean API for displaying images in terminal using best available
15
- protocol (Kitty, Sixel, or w3m). Auto-detects terminal capabilities and falls back
16
- gracefully.'
13
+ description: 'Termpix v0.3.1: WezTerm support added. Uses Kitty graphics protocol
14
+ for kitty, WezTerm, and Ghostty terminals. Provides clean API for displaying images
15
+ in terminal using best available protocol (Kitty, Sixel, or w3m). Auto-detects terminal
16
+ capabilities and falls back gracefully.'
17
17
  email: g@isene.com
18
18
  executables: []
19
19
  extensions: []