Compare commits
4 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 19b2ca4643 | |||
| a6c8943350 | |||
| e5163e6d7f | |||
| 2533e62eff |
@@ -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;
|
||||
}
|
||||
@@ -1,3 +1,24 @@
|
||||
-------------------------------------------------------------------
|
||||
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>
|
||||
|
||||
|
||||
12
libtsm.spec
12
libtsm.spec
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package libtsm
|
||||
#
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -19,16 +19,15 @@
|
||||
%global sover 4
|
||||
%global lname libtsm%{sover}
|
||||
Name: libtsm
|
||||
Version: 4.0.2
|
||||
Version: 4.1.0
|
||||
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
|
||||
Source: https://github.com/Aetf/libtsm/archive/refs/tags/v%version.tar.gz
|
||||
BuildRequires: cmake
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: pkg-config
|
||||
BuildRequires: xz
|
||||
BuildRequires: pkgconfig(check)
|
||||
BuildRequires: pkgconfig(xkbcommon)
|
||||
@@ -76,8 +75,7 @@ in %{lname}.
|
||||
%install
|
||||
%cmake_install
|
||||
|
||||
%post -n %{lname} -p /sbin/ldconfig
|
||||
%postun -n %{lname} -p /sbin/ldconfig
|
||||
%ldconfig_scriptlets -n %{lname}
|
||||
|
||||
%files -n %{lname}
|
||||
%license COPYING LICENSE_htable
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:ce51be564872d3e6a35fadab1f74b8804f72d8a92c0f378ca384155134d154e5
|
||||
size 148135
|
||||
3
v4.1.0.tar.gz
Normal file
3
v4.1.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:879a166a07aed63146ffe3e2afe803c0c3e22f264db0f1fa6fdb44687adeeef8
|
||||
size 157478
|
||||
Reference in New Issue
Block a user