rcurses 0.8.5 → 0.8.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/rcurses.rb +0 -0
  3. data/rcurses_example.rb +8 -4
  4. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 43ebe41b8898a66527520fad8434ebc9b6c394134f5d3eca1257931b98b342c7
4
- data.tar.gz: a2efcb656092bc8079c9e08d125c5e74e78aef2e93a30fa3853c060a33f3f1df
3
+ metadata.gz: d9d2693f52c0f0628f6f00554097c6f93e05a0f1c182407e6108b5a73e74a1aa
4
+ data.tar.gz: f5d8579c5752d0dcc0f5d182700ef6657a91e40f0bf67e26841bedd598acbca3
5
5
  SHA512:
6
- metadata.gz: c45e7719ef675d6c4d9366788b087d8def16d98a428576b57b6ac51ee1c0e34c23b573282cb85e672042d02c0166db7bd87f1d56cacc25d31ec17c270184caa0
7
- data.tar.gz: 0c71c87c2c193a83df22c70545e89931072c2c9dc2761efd43b8eebbcdfd9b00c5974414f78266e593b81a1e2572646ed6f8465aa635fe46a9304cd6a29181d8
6
+ metadata.gz: ac80a94ca39ff0a94796766c2c5723cf0630ba8904794e37b0fc29ee665fea58b4eb3a7f4df7af384e2fc8c35c99bfdb9d2982e05e18fce4b128532fe8edceee
7
+ data.tar.gz: 2742be44f50d3485a980b390d9567cca57b173355555b9c5e5cea141ba36fc0bb5ea2a60bd0df25821e845f8c8c4997a106674fd483dfdc09f428031112ebe4e
data/lib/rcurses.rb CHANGED
Binary file
data/rcurses_example.rb CHANGED
@@ -10,7 +10,7 @@ pane_right = Rcurses::Pane.new(Rcurses::MAXw/2 + 1, 2, Rcurses:
10
10
 
11
11
  pane_left.border = true
12
12
 
13
- pane_top.text = "This is an information line at the top".b.i
13
+ pane_top.text = Time.now.to_s[0..15].b + " Welcome to the rcurses example program"
14
14
  pane_left.text = `ls --color`
15
15
  pane_right.text = "Output of lsblk:\n\n" + `lsblk`
16
16
  pane_bottom.prompt = "Enter any text and press ENTER: ".b
@@ -20,8 +20,12 @@ pane_left.refresh
20
20
  pane_right.refresh
21
21
  pane_bottom.editline
22
22
 
23
- pane_bottom.prompt = "You wrote: " + pane_bottom.text.pure.i + " (now hit ENTER again)"
24
- pane_right.text += "\n\n" + pane_bottom.text.pure.i.b + " "
25
- pane_right.refresh
23
+ pane_mid = Rcurses::Pane.new(Rcurses::MAXw/2 - 10, Rcurses::MAXh/2 - 5, 20, 10, 18, 254)
24
+ pane_mid.border = true
25
+ pane_mid.text = "You wrote: \n \n" + pane_bottom.text.i
26
+ pane_mid.align = "c"
27
+ pane_mid.refresh
28
+
29
+ pane_bottom.prompt = "Now hit ENTER again "
26
30
  pane_bottom.text = ""
27
31
  pane_bottom.editline
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rcurses
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.5
4
+ version: 0.8.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Geir Isene
@@ -14,8 +14,8 @@ description: 'Create panes (with the colors and(or border), manipulate the panes
14
14
  add content. Dress up text (in panes or anywhere in the terminal) in bold, italic,
15
15
  underline, reverse color, blink and in any 256 terminal colors for foreground and
16
16
  background. Use a simple editor to let users edit text in panes. Left, right or
17
- center align text in panes. Cursor movement around the terminal. New in 0.8.5: Better
18
- rcurses_example.rb.'
17
+ center align text in panes. Cursor movement around the terminal. New in 0.8.8: Dropped
18
+ refresh upon pane creation. Even cooler rcurses_example.rb'
19
19
  email: g@isene.com
20
20
  executables: []
21
21
  extensions: