tp 0.4.1 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
data/lib/screen.rb CHANGED
@@ -5,6 +5,10 @@ module Screen
5
5
  print "\e[2J\e[f"
6
6
  end
7
7
 
8
+ def hide_cursor
9
+ print "\e[#{height};#{width}H"
10
+ end
11
+
8
12
  def height
9
13
  `tput lines`.to_i
10
14
  end
data/lib/tp/renderer.rb CHANGED
@@ -13,6 +13,8 @@ module TP
13
13
 
14
14
  print text unless testing?
15
15
 
16
+ Screen.hide_cursor
17
+
16
18
  true
17
19
  end
18
20
 
data/lib/tp/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module TP
2
- VERSION = "0.4.1"
2
+ VERSION = "0.5.0"
3
3
  end
@@ -24,7 +24,7 @@ describe TP::Presenter do
24
24
 
25
25
  before :each do
26
26
  Keyboard.stub read: :return
27
- Screen.stub width: 20, height: 20, suggest: nil
27
+ Screen.stub width: 20, height: 20, suggest: nil, hide_cursor: nil
28
28
  end
29
29
 
30
30
  describe "#present" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.5.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: