Files
tpp/tpp.changes
Yiannis Bonatakis a8e730e6e9 - Rename patch to hardcoded_keys.patch
- Fix Release number
- Rename patch to hardcoded_keys.patch
- Fix Release number

D    c0a755be54bd69333adc6cfb0071fcb5260404d6.patch
A    fix_keystrokes.patch
M    tpp.changes
M    tpp.spec

Diff for working copy: .
Index: tpp.changes
===================================================================

--- tpp.changes	(revision 4)
+++ tpp.changes	(working copy)
@@ -1,3 +1,9 @@
+-------------------------------------------------------------------
+Thu Nov 12 04:43:11 UTC 2020 - Yiannis Bonatakis <ioannis.bonatakis@suse.com>
+
+- Rename patch to hardcoded_keys.patch
+- Fix Release number
+
 -------------------------------------------------------------------
 Mon Nov  9 21:53:07 UTC 2020 - Yiannis Bonatakis <ioannis.bonatakis@suse.com>
 

Index: tpp.spec
===================================================================

--- tpp.spec	(revision 4)
+++ tpp.spec	(working copy)
@@ -18,12 +18,12 @@
 
 Name:           tpp
 Version:        1.3.1
-Release:        1.1
+Release:        0
 Summary:        A ncurses-based presentation tool
 License:        GPL-2.0-only
 URL:            http://www.ngolde.de/tpp.html
 Source0:        http://www.ngolde.de/download/%{name}-%{version}.tar.gz
-Patch0:         c0a755be54bd69333adc6cfb0071fcb5260404d6.patch
+Patch0:         hardcoded_keys.patch
 Patch1:         15-optional-exec.patch
 BuildRequires: emacs
 BuildRequires: emacs-nox

Index: fix_keystrokes.patch
===================================================================
--- fix_keystrokes.patch	(revision 0)
+++ fix_keystrokes.patch	(revision 0)
@@ -0,0 +1,106 @@
+From c0a755be54bd69333adc6cfb0071fcb5260404d6 Mon Sep 17 00:00:00 2001
+From: Oliver Hu <hkqvictory@live.cn>
+Date: Fri, 26 Jul 2013 11:20:38 -0400
+Subject: [PATCH] simple modification to make it work
+
+---
+ tpp.rb | 38 +++++++++++++++++++++-----------------
+ 1 file changed, 21 insertions(+), 17 deletions(-)
+
+diff --git a/tpp.rb b/tpp.rb
+index 5aeb938..8296a8d 100755
+--- a/tpp.rb
++++ b/tpp.rb
+@@ -1,5 +1,5 @@
+ #!/usr/bin/env ruby
+-
++require 'io/console'
+ version_number = "1.3.1"
+ 
+ # Loads the ncurses-ruby module and imports "Ncurses" into the
+@@ -511,20 +511,24 @@ def initialize
+   end
+ 
+   def get_key
+-    ch = @screen.getch
++    ch = STDIN.getch
+     case ch
+-      when Ncurses::KEY_RIGHT
++      when 'd'#Ncurses::KEY_RIGHT
+         return :keyright
+-      when Ncurses::KEY_DOWN
++      when 's'
+         return :keydown
+-      when Ncurses::KEY_LEFT
++      when 'a'#Ncurses::KEY_LEFT
+         return :keyleft
+-      when Ncurses::KEY_UP
++      when 'w'
+         return :keyup
+-      when Ncurses::KEY_RESIZE
++      when 'z'
+         return :keyresize
+-      else
++      when 'r','e','s','j','l','c','h','q','b'
+         return ch
++ 
++      else
++        return :keyright
++        # return ch
+       end
+   end
+ 
+@@ -1396,17 +1400,17 @@ def do_run
+       loop do
+         ch = @vis.get_key
+         case ch
+-          when 'q'[0], 'Q'[0] # 'Q'uit
++          when 'q'#[0], 'Q'[0] # 'Q'uit
+             return
+-          when 'r'[0], 'R'[0] # 'R'edraw slide
++          when 'r'# 'R'edraw slide
+             changed_page = true # @todo: actually implement redraw
+-          when 'e'[0], 'E'[0]
++          when 'e', 'E'[0]
+             @cur_page = @pages.size - 1
+             break
+-          when 's'[0], 'S'[0]
++          when 's', 'S'[0]
+             @cur_page = 0
+             break
+-          when 'j'[0], 'J'[0] # 'J'ump to slide
++          when 'j', 'J'[0] # 'J'ump to slide
+             screen = @vis.store_screen
+             p = @vis.read_newpage(@pages,@cur_page)
+             if p >= 0 and p < @pages.size
+@@ -1417,15 +1421,15 @@ def do_run
+               @vis.restore_screen(screen)
+             end
+             break
+-          when 'l'[0], 'L'[0] # re'l'oad current file
++          when 'l', 'L'[0] # re'l'oad current file
+             @reload_file = true
+             return
+-          when 'c'[0], 'C'[0] # command prompt
++          when 'c', 'C'[0] # command prompt
+             screen = @vis.store_screen
+             @vis.do_command_prompt
+             @vis.clear
+             @vis.restore_screen(screen)
+-          when '?'[0], 'h'[0]
++          when '?'[0], 'h'
+             screen = @vis.store_screen
+             @vis.show_help_page
+             ch = @vis.get_key
+@@ -1438,7 +1442,7 @@ def do_run
+               @vis.new_page
+             end
+             break
+-          when 'b'[0], 'B'[0], :keyleft, :keyup
++          when 'b', 'B'[0], :keyleft, :keyup
+             if @cur_page > 0 then
+               @cur_page -= 1
+               @pages[@cur_page].reset_eop
+-- 
+1.8.5.1
+

Index: c0a755be54bd69333adc6cfb0071fcb5260404d6.patch
===================================================================
--- c0a755be54bd69333adc6cfb0071fcb5260404d6.patch	(revision 4)
+++ c0a755be54bd69333adc6cfb0071fcb5260404d6.patch	(working copy)
@@ -1,106 +0,0 @@
-From c0a755be54bd69333adc6cfb0071fcb5260404d6 Mon Sep 17 00:00:00 2001
-From: Oliver Hu <hkqvictory@live.cn>
-Date: Fri, 26 Jul 2013 11:20:38 -0400
-Subject: [PATCH] simple modification to make it work
-
----
- tpp.rb | 38 +++++++++++++++++++++-----------------
- 1 file changed, 21 insertions(+), 17 deletions(-)
-
-diff --git a/tpp.rb b/tpp.rb
-index 5aeb938..8296a8d 100755
---- a/tpp.rb
-+++ b/tpp.rb
-@@ -1,5 +1,5 @@
- #!/usr/bin/env ruby
--
-+require 'io/console'
- version_number = "1.3.1"
- 
- # Loads the ncurses-ruby module and imports "Ncurses" into the
-@@ -511,20 +511,24 @@ def initialize
-   end
- 
-   def get_key
--    ch = @screen.getch
-+    ch = STDIN.getch
-     case ch
--      when Ncurses::KEY_RIGHT
-+      when 'd'#Ncurses::KEY_RIGHT
-         return :keyright
--      when Ncurses::KEY_DOWN
-+      when 's'
-         return :keydown
--      when Ncurses::KEY_LEFT
-+      when 'a'#Ncurses::KEY_LEFT
-         return :keyleft
--      when Ncurses::KEY_UP
-+      when 'w'
-         return :keyup
--      when Ncurses::KEY_RESIZE
-+      when 'z'
-         return :keyresize
--      else
-+      when 'r','e','s','j','l','c','h','q','b'
-         return ch
-+ 
-+      else
-+        return :keyright
-+        # return ch
-       end
-   end
- 
-@@ -1396,17 +1400,17 @@ def do_run
-       loop do
-         ch = @vis.get_key
-         case ch
--          when 'q'[0], 'Q'[0] # 'Q'uit
-+          when 'q'#[0], 'Q'[0] # 'Q'uit
-             return
--          when 'r'[0], 'R'[0] # 'R'edraw slide
-+          when 'r'# 'R'edraw slide
-             changed_page = true # @todo: actually implement redraw
--          when 'e'[0], 'E'[0]
-+          when 'e', 'E'[0]
-             @cur_page = @pages.size - 1
-             break
--          when 's'[0], 'S'[0]
-+          when 's', 'S'[0]
-             @cur_page = 0
-             break
--          when 'j'[0], 'J'[0] # 'J'ump to slide
-+          when 'j', 'J'[0] # 'J'ump to slide
-             screen = @vis.store_screen
-             p = @vis.read_newpage(@pages,@cur_page)
-             if p >= 0 and p < @pages.size
-@@ -1417,15 +1421,15 @@ def do_run
-               @vis.restore_screen(screen)
-             end
-             break
--          when 'l'[0], 'L'[0] # re'l'oad current file
-+          when 'l', 'L'[0] # re'l'oad current file
-             @reload_file = true
-             return
--          when 'c'[0], 'C'[0] # command prompt
-+          when 'c', 'C'[0] # command prompt
-             screen = @vis.store_screen
-             @vis.do_command_prompt
-             @vis.clear
-             @vis.restore_screen(screen)
--          when '?'[0], 'h'[0]
-+          when '?'[0], 'h'
-             screen = @vis.store_screen
-             @vis.show_help_page
-             ch = @vis.get_key
-@@ -1438,7 +1442,7 @@ def do_run
-               @vis.new_page
-             end
-             break
--          when 'b'[0], 'B'[0], :keyleft, :keyup
-+          when 'b', 'B'[0], :keyleft, :keyup
-             if @cur_page > 0 then
-               @cur_page -= 1
-               @pages[@cur_page].reset_eop
--- 
-1.8.5.1
-

OBS-URL: https://build.opensuse.org/package/show/home:ybonatakis/tpp?expand=0&rev=5
2020-11-12 04:47:11 +00:00

16 lines
583 B
Plaintext

-------------------------------------------------------------------
Thu Nov 12 04:43:11 UTC 2020 - Yiannis Bonatakis <ioannis.bonatakis@suse.com>
- Rename patch to hardcoded_keys.patch
- Fix Release number
-------------------------------------------------------------------
Mon Nov 9 21:53:07 UTC 2020 - Yiannis Bonatakis <ioannis.bonatakis@suse.com>
- Add files for Emacs to editing TextPraesentionProgram Files
-------------------------------------------------------------------
Sun Nov 1 12:48:27 UTC 2020 - Yiannis Bonatakis <ioannis.bonatakis@suse.com>
- Initial package