rcurses 0.8 → 0.8.5

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 +11 -10
  4. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 91c5ff77f281ce2112361ba7229fd917b5c7472436562e84fe6675c32565cc9c
4
- data.tar.gz: 48e2a8f32b3d9ffb33d21c6825660bd7e0afc260ce3142e3df0af57ad5836c08
3
+ metadata.gz: 43ebe41b8898a66527520fad8434ebc9b6c394134f5d3eca1257931b98b342c7
4
+ data.tar.gz: a2efcb656092bc8079c9e08d125c5e74e78aef2e93a30fa3853c060a33f3f1df
5
5
  SHA512:
6
- metadata.gz: b1bbfb0302dc1b91762f96b297bcaa40110d4edc7e5c675834a7a6df137c4c81f11baa122f1aec3c78f8639d59e692049b0269914f433946008ffeedafb65ba5
7
- data.tar.gz: 23ce5601d185f451d2a89eecf5bc8e7312192d983e3ca0cb069485d694dcc82460309a525a34f5aa1660dddd325da9b99b92446af7eefacf5b3d9192a8092512
6
+ metadata.gz: c45e7719ef675d6c4d9366788b087d8def16d98a428576b57b6ac51ee1c0e34c23b573282cb85e672042d02c0166db7bd87f1d56cacc25d31ec17c270184caa0
7
+ data.tar.gz: 0c71c87c2c193a83df22c70545e89931072c2c9dc2761efd43b8eebbcdfd9b00c5974414f78266e593b81a1e2572646ed6f8465aa635fe46a9304cd6a29181d8
data/lib/rcurses.rb CHANGED
Binary file
data/rcurses_example.rb CHANGED
@@ -2,18 +2,17 @@
2
2
 
3
3
  require 'rcurses'
4
4
 
5
- # pane = Rcurses::Pane.new( startx, starty, width, height, fg, bg)
6
- pane_top = Rcurses::Pane.new( 1, 1, Rcurses::MAXw, 1, 255, 236)
7
- pane_bottom = Rcurses::Pane.new( 1, Rcurses::MAXh, Rcurses::MAXw, 1, 236, 254)
8
- pane_left = Rcurses::Pane.new( 1, 2, Rcurses::MAXw/2, Rcurses::MAXh - 2, 17, 117)
9
- pane_right = Rcurses::Pane.new(Rcurses::MAXw/2 + 1, 2, Rcurses::MAXw/2, Rcurses::MAXh - 2, 255, 52)
5
+ # pane = Rcurses::Pane.new( startx, starty, width, height, fg, bg)
6
+ pane_top = Rcurses::Pane.new( 1, 1, Rcurses::MAXw, 1, 255, 236)
7
+ pane_bottom = Rcurses::Pane.new( 1, Rcurses::MAXh, Rcurses::MAXw, 1, 236, 254)
8
+ pane_left = Rcurses::Pane.new( 2, 3, Rcurses::MAXw/2 - 2, Rcurses::MAXh - 4, 52, nil)
9
+ pane_right = Rcurses::Pane.new(Rcurses::MAXw/2 + 1, 2, Rcurses::MAXw/2, Rcurses::MAXh - 2, 255, 52)
10
10
 
11
- pane_left.align = "c"
12
- pane_right.align = "r"
11
+ pane_left.border = true
13
12
 
14
13
  pane_top.text = "This is an information line at the top".b.i
15
- pane_left.text = "\n\n" + "Here is a pane to be reckoned with".b.u
16
- pane_right.text = "\n\n" + "And here is the right pane. "
14
+ pane_left.text = `ls --color`
15
+ pane_right.text = "Output of lsblk:\n\n" + `lsblk`
17
16
  pane_bottom.prompt = "Enter any text and press ENTER: ".b
18
17
 
19
18
  pane_top.refresh
@@ -22,5 +21,7 @@ pane_right.refresh
22
21
  pane_bottom.editline
23
22
 
24
23
  pane_bottom.prompt = "You wrote: " + pane_bottom.text.pure.i + " (now hit ENTER again)"
25
- pane_bottom.text = ""
24
+ pane_right.text += "\n\n" + pane_bottom.text.pure.i.b + " "
25
+ pane_right.refresh
26
+ pane_bottom.text = ""
26
27
  pane_bottom.editline
metadata CHANGED
@@ -1,21 +1,21 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rcurses
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.8'
4
+ version: 0.8.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Geir Isene
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-11-21 00:00:00.000000000 Z
11
+ date: 2024-11-22 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: 'Create panes (with the colors and(or border), manipulate the panes and
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: Bugfixes.
18
- Tested and fully functional.'
17
+ center align text in panes. Cursor movement around the terminal. New in 0.8.5: Better
18
+ rcurses_example.rb.'
19
19
  email: g@isene.com
20
20
  executables: []
21
21
  extensions: