curses-extension 3.0 → 3.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/README.md +10 -0
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8d9568f3eed2466b89924a005fc6485ecf29f6f467afdd59b6fb4b43f0e8cb32
|
4
|
+
data.tar.gz: c23d4f0dd8eabf8faaa4dfc0cea96ddfc86fe27719c309d560594fb586ae908e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ab02ce10740c935fcdf86d284b89db3dc12a956493cc81d4aad4b6ced5653ae9aa9f3ffff69661aae04106d2c5c9ca3759c7119853ef417c9f4dec06a7fdef80
|
7
|
+
data.tar.gz: 3d64c7ae37d3b506b195544eb872e8b8806614ff5e3209c0ef94f096a64ca56c74dcef2d67f04b3fb2cc9ef568bf03eb9ab5d50cc22b13707e7038661fd78f6e
|
data/lib/README.md
CHANGED
@@ -23,6 +23,16 @@ spaces and (optional) background color, making it an effective newline.
|
|
23
23
|
And then there is the convenient `frame`method that toggles a frame for the
|
24
24
|
window.
|
25
25
|
|
26
|
+
You may ask why the methods `xy`, `x?`, `y?`, `mx?` and `my?` as these must
|
27
|
+
surely be covered already by the original Ruby Curses::Window library? They
|
28
|
+
serve a special purpose as they take into account that a window can be framed.
|
29
|
+
In a framed window, the top left corner is not `0,0`as that would be the top
|
30
|
+
left frame position. The inside top left of the frame is actually `1,1`, but
|
31
|
+
these functions treat that position as `0,0` if the window is framed and as
|
32
|
+
`1,1` if it is not. So - when using these functions you don't have to think
|
33
|
+
about compensating for the frame. Everything works just fine whether the
|
34
|
+
window is framed or not.
|
35
|
+
|
26
36
|
The `curses-template.rb` contains code that helps you understand how you can
|
27
37
|
easily create curses applications in Ruby. It is a fully runnable app that
|
28
38
|
doesn't do much - but you can fiddle around with the code and test
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: curses-extension
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 3.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Geir Isene
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-07-
|
11
|
+
date: 2023-07-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: curses
|
@@ -35,7 +35,8 @@ description: 'The Ruby curses library is sorely lacking some important features.
|
|
35
35
|
terminal curses applications in Ruby. See the Github page for information on what
|
36
36
|
properties and functions are included: https://github.com/isene/Ruby-Curses-Class-Extension.
|
37
37
|
The curses_template.rb is also installed in the lib directory and serves as the
|
38
|
-
basis for my own curses applications. New in 3.0: Major rewrite. Lots of changes/improvements.
|
38
|
+
basis for my own curses applications. New in 3.0: Major rewrite. Lots of changes/improvements.
|
39
|
+
3.0.1: Updated Readme.'
|
39
40
|
email: g@isene.com
|
40
41
|
executables: []
|
41
42
|
extensions: []
|