helpline 0.1.2 → 0.1.3

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: cd688cf98d651a7a983dc98cd527e256db5e8023162b3e09afb46a70bca846b9
4
- data.tar.gz: 709f63c433560fe94a0617c852d454c1ab809de94282be28914c5c61ccc62c5d
3
+ metadata.gz: 5dd76874e2f807e8190fd36cee7663e1069a5a768d0c0173960e6851ab8af2e4
4
+ data.tar.gz: 719d6aca5decbc28ca1090e509f382a9ffabac116e665173a4cb725688d7d6e2
5
5
  SHA512:
6
- metadata.gz: 7454699be41e97d93fbaf42aafcb4e848047635c16ec36da47b93f4cb1d822ab30e67adf6f14b6bc1f667058bbda823d908caa3e2fb8ea9071da765c3b28addd
7
- data.tar.gz: ff3f4fb051a14cdeddd8efa8f64c25e4d41f54ae0a6842c99abf50a9ce5869dd9bdc72784e4fde557222d08e2e5ba06cddc3fbd9918711eb088512d97e44da69
6
+ metadata.gz: a843524971789cd37936b9fe53110704851ce219f9addd944f7032a12ff767c493e57d00f84a79b39e5989b89079e9e0caf408ed380fc0122f30ce364d44af91
7
+ data.tar.gz: 8a369398fc30e8f69343327c96758808f970658e9187abff97eb4f430fd3d6e869af727ac3bb9c0d47ec038b04443ca18f7177b25d6cc41a12f0f5c5e0d4b04f
@@ -188,17 +188,17 @@ class HelpLine
188
188
  # process ESC
189
189
  elsif inputchars[0] == "\e" && inputchars.length == 2
190
190
  # 何もしない
191
- elsif inputchars == "\x06" || inputchars == "\e[C"
191
+ elsif inputchars == "\x06" || inputchars == "\e[C" || inputchars == "\eOC"
192
192
  # Curses.right
193
193
  inputchars = ''
194
- elsif inputchars == "\x02" || inputchars == "\e[D"
194
+ elsif inputchars == "\x02" || inputchars == "\e[D" || inputchars == "\eOD"
195
195
  # Curses.left
196
196
  inputchars = ''
197
- elsif inputchars == "\x0e" || inputchars == "\e[B"
197
+ elsif inputchars == "\x0e" || inputchars == "\e[B" || inputchars == "\eOB"
198
198
  Curses.down
199
199
  sel = (sel + 1) if sel < LINES-1
200
200
  inputchars = ''
201
- elsif inputchars == "\x10" || inputchars == "\e[A"
201
+ elsif inputchars == "\x10" || inputchars == "\e[A" || inputchars == "\eOA"
202
202
  Curses.up
203
203
  sel = sel - 1 if sel > 0
204
204
  inputchars = ''
@@ -188,17 +188,17 @@ class HelpLine
188
188
  # process ESC
189
189
  elsif inputchars[0] == "\e" && inputchars.length == 2
190
190
  # 何もしない
191
- elsif inputchars == "\x06" || inputchars == "\e[C"
191
+ elsif inputchars == "\x06" || inputchars == "\e[C" || inputchars == "\eOC"
192
192
  # Curses.right
193
193
  inputchars = ''
194
- elsif inputchars == "\x02" || inputchars == "\e[D"
194
+ elsif inputchars == "\x02" || inputchars == "\e[D" || inputchars == "\eOD"
195
195
  # Curses.left
196
196
  inputchars = ''
197
- elsif inputchars == "\x0e" || inputchars == "\e[B"
197
+ elsif inputchars == "\x0e" || inputchars == "\e[B" || inputchars == "\eOB"
198
198
  Curses.down
199
199
  sel = (sel + 1) if sel < LINES-1
200
200
  inputchars = ''
201
- elsif inputchars == "\x10" || inputchars == "\e[A"
201
+ elsif inputchars == "\x10" || inputchars == "\e[A" || inputchars == "\eOA"
202
202
  Curses.up
203
203
  sel = sel - 1 if sel > 0
204
204
  inputchars = ''
@@ -1,3 +1,3 @@
1
1
  module Helpline
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: helpline
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Toshiyuki Masui