Tweak the escape sequence emission to unbreak the parsing
This commit is contained in:
parent
ab1d97e177
commit
94ec580d20
@ -1,4 +1,4 @@
|
||||
From f00537f18044702a05aba6ed9406b8a72caa63c8 Mon Sep 17 00:00:00 2001
|
||||
From 040c43f2edb0f3179febbed36f37bc1fbc77dbcf Mon Sep 17 00:00:00 2001
|
||||
From: Debarshi Ray <debarshir@gnome.org>
|
||||
Date: Wed, 7 Jan 2015 16:01:00 +0100
|
||||
Subject: [PATCH 1/5] Add sequences and signals for desktop notification
|
||||
@ -212,18 +212,22 @@ index eabcbbaa5eca..51b3a2c32c7f 100644
|
||||
2.14.4
|
||||
|
||||
|
||||
From 1ae011f8d4a45bb974d4ead4f66becd6af9fc30c Mon Sep 17 00:00:00 2001
|
||||
From bd6936635d4055c3434fac71fe3af405df4c0ba8 Mon Sep 17 00:00:00 2001
|
||||
From: Debarshi Ray <debarshir@gnome.org>
|
||||
Date: Thu, 29 Jan 2015 13:09:17 +0100
|
||||
Subject: [PATCH 2/5] vte.sh: Emit OSC 777 from PROMPT_COMMAND
|
||||
|
||||
For some reason, the three consecutive backslashes break the parsing.
|
||||
As Christian Persch suggested, replacing the double quotes with
|
||||
singles fixes it.
|
||||
|
||||
https://bugzilla.gnome.org/show_bug.cgi?id=711059
|
||||
---
|
||||
src/vte.sh | 4 +++-
|
||||
1 file changed, 3 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/vte.sh b/src/vte.sh
|
||||
index 6d1a8734c479..03dea2fa99ee 100644
|
||||
index 6d1a8734c479..b75c6dac6f6e 100644
|
||||
--- a/src/vte.sh
|
||||
+++ b/src/vte.sh
|
||||
@@ -50,9 +50,11 @@ __vte_osc7 () {
|
||||
@ -235,7 +239,7 @@ index 6d1a8734c479..03dea2fa99ee 100644
|
||||
local pwd='~'
|
||||
[ "$PWD" != "$HOME" ] && pwd=${PWD/#$HOME\//\~\/}
|
||||
- printf "\033]0;%s@%s:%s\033\\%s" "${USER}" "${HOSTNAME%%.*}" "${pwd}" "$(__vte_osc7)"
|
||||
+ printf "\033]777;notify;Command completed;%s\033\\\033]0;%s@%s:%s\033\\%s" "${command}" "${USER}" "${HOSTNAME%%.*}" "${pwd}" "$(__vte_osc7)"
|
||||
+ printf '\033]777;notify;Command completed;%s\033\\\033]0;%s@%s:%s\033\\%s' "${command}" "${USER}" "${HOSTNAME%%.*}" "${pwd}" "$(__vte_osc7)"
|
||||
}
|
||||
|
||||
case "$TERM" in
|
||||
@ -243,7 +247,7 @@ index 6d1a8734c479..03dea2fa99ee 100644
|
||||
2.14.4
|
||||
|
||||
|
||||
From e4649b3c31a9ef08c2b6ae5c079e1597fdb8e3cf Mon Sep 17 00:00:00 2001
|
||||
From 693355f62a7959ded9157493292742434ba066ed Mon Sep 17 00:00:00 2001
|
||||
From: Debarshi Ray <debarshir@gnome.org>
|
||||
Date: Thu, 22 Jan 2015 16:37:10 +0100
|
||||
Subject: [PATCH 3/5] Test the notification-received signal
|
||||
@ -310,7 +314,7 @@ index b155efa3f348..250d09d8b4c5 100644
|
||||
2.14.4
|
||||
|
||||
|
||||
From 08f238e068bbc1a4b84f9fa61b90641622aaeb9e Mon Sep 17 00:00:00 2001
|
||||
From 24c78bb06d9f85393fa4e715f0d01b40496c71a6 Mon Sep 17 00:00:00 2001
|
||||
From: Debarshi Ray <debarshir@gnome.org>
|
||||
Date: Fri, 13 May 2016 17:53:54 +0200
|
||||
Subject: [PATCH 4/5] Add a property to configure the scroll speed
|
||||
@ -512,7 +516,7 @@ index c5b24ffe2ca9..620bcf200af6 100644
|
||||
2.14.4
|
||||
|
||||
|
||||
From 356f8a6b601f4dab927853db13a657ef1891f97e Mon Sep 17 00:00:00 2001
|
||||
From 82cbdbbaa55696b422b409b9174d6df8cdb8ee4a Mon Sep 17 00:00:00 2001
|
||||
From: Debarshi Ray <debarshir@gnome.org>
|
||||
Date: Fri, 13 May 2016 17:54:57 +0200
|
||||
Subject: [PATCH 5/5] Test the scroll-speed property
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
|
||||
Name: vte291
|
||||
Version: 0.54.1
|
||||
Release: 2%{?dist}
|
||||
Release: 3%{?dist}
|
||||
Summary: Terminal emulator library
|
||||
|
||||
License: LGPLv2+
|
||||
@ -108,6 +108,9 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
|
||||
%{_sysconfdir}/profile.d/vte.sh
|
||||
|
||||
%changelog
|
||||
* Fri Oct 05 2018 Debarshi Ray <rishi@fedoraproject.org> - 0.54.1-3
|
||||
- Tweak the escape sequence emission to unbreak the parsing
|
||||
|
||||
* Fri Oct 05 2018 Debarshi Ray <rishi@fedoraproject.org> - 0.54.1-2
|
||||
- Tighten the dependencies a bit
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user