8 Commits

Author SHA256 Message Date
0f067d56e2 Accepting request 1329249 from X11:terminals
OBS-URL: https://build.opensuse.org/request/show/1329249
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libtsm?expand=0&rev=6
2026-01-26 10:33:59 +00:00
b85626adc5 - Update to 4.4.1:
* tsm_vte_paste: check input
  * Add support to CSI b sequence (repeat last char)
- Update to 4.4.0:
  * Add support for CSI 18t command
  * Fix SGR and PIXEL mouse modes blocked by mouse_event check
  * Update readme to build without unit tests
  * Fix compilation issue on ppc64el
  * Fix mouse drag tracking in SGR and PIXEL modes
  * Fix tsm_screen_resize()
  * vte: Add bracketed paste support (DEC 2004)

OBS-URL: https://build.opensuse.org/package/show/X11:terminals/libtsm?expand=0&rev=11
2026-01-26 09:08:30 +00:00
a0071177f9 Accepting request 1325804 from X11:terminals
OBS-URL: https://build.opensuse.org/request/show/1325804
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libtsm?expand=0&rev=5
2026-01-08 14:26:20 +00:00
e9c304f571 - changed git repo to https://github.com/kmscon/libtsm
- update to 4.3.0
  - Add OSC 4, 10 and 11 support (only read color, not set it)
  - Add a new API, tsm_screen_selection_word() to select a word at a given position
- update to 4.2.0:
  - New features
    - Add shift arrow keys
    - Convert to Meson
  - Bug fixes
    - Meson: fix version-script

OBS-URL: https://build.opensuse.org/package/show/X11:terminals/libtsm?expand=0&rev=9
2026-01-07 15:25:35 +00:00
19b2ca4643 Accepting request 1297721 from X11:terminals
OBS-URL: https://build.opensuse.org/request/show/1297721
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libtsm?expand=0&rev=4
2025-08-06 12:33:19 +00:00
a6c8943350 For sr 1297435
- Update to release 4.1.0
  * Make code sent by backspace key configurable
  * Fix wrong background color of new cells after resize
  * Expose the VTE flags
  * Add mouse tracking
  * Add getters for scrollback buffer line count and line pos
  * Add EGA/VGA palette

OBS-URL: https://build.opensuse.org/package/show/X11:terminals/libtsm?expand=0&rev=7
2025-08-05 13:00:53 +00:00
e5163e6d7f Accepting request 1245396 from X11:terminals
OBS-URL: https://build.opensuse.org/request/show/1245396
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libtsm?expand=0&rev=3
2025-02-12 20:38:53 +00:00
2533e62eff - Update to snapshot 4.0.2+git24 (69922bde02c7)
* Add mouse support (modes: X10, SGR, SGR Pixel)
  * Fix wrong background color of new cells after resize
  * Add support for "\e[<num>E" and "\e[<num>F"
- Delete 0001-Add-new-palette-with-standard-VGA-colors.patch
  (merged)

OBS-URL: https://build.opensuse.org/package/show/X11:terminals/libtsm?expand=0&rev=5
2025-02-12 14:15:31 +00:00
5 changed files with 65 additions and 73 deletions

View File

@@ -1,53 +0,0 @@
From 32ee7f91945f76f223a85fd5ff81e177c3ad8686 Mon Sep 17 00:00:00 2001
From: Fabian Vogt <fvogt@suse.com>
Date: Mon, 23 Jul 2018 13:59:36 +0200
Subject: [PATCH] Add new palette with standard VGA colors
The standard VGA colors are used by fbcon by default as well, which means
this is now as close to the linux console as possible.
---
src/tsm/tsm-vte.c | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
Index: libtsm-4.0.2/src/tsm/tsm-vte.c
===================================================================
--- libtsm-4.0.2.orig/src/tsm/tsm-vte.c
+++ libtsm-4.0.2/src/tsm/tsm-vte.c
@@ -343,6 +343,28 @@ static uint8_t color_palette_base16_ligh
[TSM_COLOR_BACKGROUND] = { 0xd8, 0xd8, 0xd8 }, /* light grey */
};
+static uint8_t color_palette_vga[TSM_COLOR_NUM][3] = {
+ [TSM_COLOR_BLACK] = { 0, 0, 0 },
+ [TSM_COLOR_RED] = { 170, 0, 0 },
+ [TSM_COLOR_GREEN] = { 0, 170, 0 },
+ [TSM_COLOR_YELLOW] = { 170, 85, 0 },
+ [TSM_COLOR_BLUE] = { 0, 0, 170 },
+ [TSM_COLOR_MAGENTA] = { 170, 0, 170 },
+ [TSM_COLOR_CYAN] = { 0, 170, 170 },
+ [TSM_COLOR_LIGHT_GREY] = { 170, 170, 170 },
+ [TSM_COLOR_DARK_GREY] = { 85, 85, 85 },
+ [TSM_COLOR_LIGHT_RED] = { 255, 85, 85 },
+ [TSM_COLOR_LIGHT_GREEN] = { 85, 255, 85 },
+ [TSM_COLOR_LIGHT_YELLOW] = { 255, 255, 85 },
+ [TSM_COLOR_LIGHT_BLUE] = { 85, 85, 255 },
+ [TSM_COLOR_LIGHT_MAGENTA] = { 255, 85, 255 },
+ [TSM_COLOR_LIGHT_CYAN] = { 85, 255, 255 },
+ [TSM_COLOR_WHITE] = { 255, 255, 255 },
+
+ [TSM_COLOR_FOREGROUND] = { 170, 170, 170 },
+ [TSM_COLOR_BACKGROUND] = { 0, 0, 0 },
+};
+
static uint8_t (*get_palette(struct tsm_vte *vte))[3]
{
if (!vte->palette_name)
@@ -362,6 +384,8 @@ static uint8_t (*get_palette(struct tsm_
return color_palette_base16_dark;
if (!strcmp(vte->palette_name, "base16-light"))
return color_palette_base16_light;
+ if (!strcmp(vte->palette_name, "vga"))
+ return color_palette_vga;
return color_palette;
}

View File

@@ -1,3 +1,53 @@
-------------------------------------------------------------------
Fri Jan 23 12:38:03 UTC 2026 - Fabian Vogt <fvogt@suse.com>
- Update to 4.4.1:
* tsm_vte_paste: check input
* Add support to CSI b sequence (repeat last char)
- Update to 4.4.0:
* Add support for CSI 18t command
* Fix SGR and PIXEL mouse modes blocked by mouse_event check
* Update readme to build without unit tests
* Fix compilation issue on ppc64el
* Fix mouse drag tracking in SGR and PIXEL modes
* Fix tsm_screen_resize()
* vte: Add bracketed paste support (DEC 2004)
-------------------------------------------------------------------
Wed Dec 3 21:20:34 UTC 2025 - Adam Mizerski <adam@mizerski.pl>
- changed git repo to https://github.com/kmscon/libtsm
- update to 4.3.0
- Add OSC 4, 10 and 11 support (only read color, not set it)
- Add a new API, tsm_screen_selection_word() to select a word at a given position
- update to 4.2.0:
- New features
- Add shift arrow keys
- Convert to Meson
- Bug fixes
- Meson: fix version-script
-------------------------------------------------------------------
Sat Aug 2 14:48:06 UTC 2025 - Jan Engelhardt <jengelh@inai.de>
- Update to release 4.1.0
* Make code sent by backspace key configurable
* Fix wrong background color of new cells after resize
* Expose the VTE flags
* Add mouse tracking
* Add getters for scrollback buffer line count and line pos
* Add EGA/VGA palette
-------------------------------------------------------------------
Tue Feb 4 16:47:23 UTC 2025 - Jan Engelhardt <jengelh@inai.de>
- Update to snapshot 4.0.2+git24 (69922bde02c7)
* Add mouse support (modes: X10, SGR, SGR Pixel)
* Fix wrong background color of new cells after resize
* Add support for "\e[<num>E" and "\e[<num>F"
- Delete 0001-Add-new-palette-with-standard-VGA-colors.patch
(merged)
-------------------------------------------------------------------
Mon Aug 29 07:54:47 UTC 2022 - Jan Engelhardt <jengelh@inai.de>

View File

@@ -1,7 +1,7 @@
#
# spec file for package libtsm
#
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2026 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -19,19 +19,16 @@
%global sover 4
%global lname libtsm%{sover}
Name: libtsm
Version: 4.0.2
Version: 4.4.1
Release: 0
Summary: DEC-VT terminal emulator state machine
License: LGPL-2.1-or-later AND MIT
Group: Development/Libraries/C and C++
URL: https://github.com/Aetf/libtsm
Source: https://github.com/Aetf/libtsm/archive/refs/tags/v%{version}.tar.gz
Patch1: 0001-Add-new-palette-with-standard-VGA-colors.patch
BuildRequires: cmake
BuildRequires: pkgconfig
BuildRequires: xz
BuildRequires: pkgconfig(check)
BuildRequires: pkgconfig(xkbcommon)
URL: https://github.com/kmscon/libtsm
Source: https://github.com/kmscon/libtsm/archive/refs/tags/v%version.tar.gz
BuildRequires: meson
BuildRequires: pkg-config
BuildRequires: pkgconfig(xkbcommon) >= 0.5.0
%description
TSM is a state machine for DEC VT100-VT520 compatible terminal
@@ -70,24 +67,22 @@ in %{lname}.
%autosetup -p1
%build
%cmake
%make_build
%meson -Dtests=false
%meson_build
%install
%cmake_install
%meson_install
%post -n %{lname} -p /sbin/ldconfig
%postun -n %{lname} -p /sbin/ldconfig
%ldconfig_scriptlets -n %{lname}
%files -n %{lname}
%license COPYING LICENSE_htable
%{_libdir}/libtsm.so.%{sover}*
%files devel
%doc README
%doc README.md
%{_includedir}/libtsm.h
%{_libdir}/libtsm.so
%{_libdir}/pkgconfig/*.pc
%{_libdir}/cmake/
%changelog

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ce51be564872d3e6a35fadab1f74b8804f72d8a92c0f378ca384155134d154e5
size 148135

3
v4.4.1.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:20f5c6fd69c4a701c25981ad6f3976f2578cdffb4b138c341b85d3a3b8a0017c
size 149426