rcurses 0.4 → 0.4.2
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 +4 -4
- data/README.md +3 -6
- data/lib/rcurses.rb +0 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d0086a66ce8e0bebb76a1ea0f56fc816fefccc48b36f6e3f9a862d8255ad2b4d
|
4
|
+
data.tar.gz: c781164e25ea1396daa5ffc7442a6a1b0b933db15b6ee84bfa9a9c0e35650d9a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 76b989c3dc607d1999ce35a76f345c1846d3dabc7d3e50f0586b29a9cf37b69fac849f9f9305763f270b7947df627a70364fa08000d54609b929f976d8bede2c
|
7
|
+
data.tar.gz: ab2271ca058b6496275abbad3b91ee25ef41e920374c479172fed80af9699cdf01dafad9268df0a771c24a41c252a8ec696ca0c21053e829ac0aaab594217924
|
data/README.md
CHANGED
@@ -121,14 +121,11 @@ scroll_up | Scroll display up one line
|
|
121
121
|
scroll_down | Scroll display down one line
|
122
122
|
clear_screen_down | Clear screen down from current row
|
123
123
|
|
124
|
-
#
|
124
|
+
# The function getchr
|
125
125
|
rcurses provides a vital extension to Ruby in reading characters entered by the user. This is especially needed for curses applications where readline inputs are required.
|
126
|
-
|
127
|
-
To include this into your curses program, first:
|
128
|
-
```
|
129
|
-
include Rinput
|
126
|
+
The function getchr is automatically included in your arsenal when you first do `include rcurses`.
|
130
127
|
```
|
131
|
-
|
128
|
+
Simply use `chr = getchr` in a program to read any character input by the user. The returning code (the content of `chr` in this example) could be any of the following:
|
132
129
|
|
133
130
|
Key pressed | string returned
|
134
131
|
----------------|----------------------------------------------------------
|
data/lib/rcurses.rb
CHANGED
Binary file
|
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:
|
4
|
+
version: 0.4.2
|
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-
|
11
|
+
date: 2024-11-19 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.4:
|
18
|
-
|
17
|
+
center align text in panes. Cursor movement around the terminal. New in 0.4.2: All
|
18
|
+
code except the String extension is now in the module Rcurses (thanks to user havenwood).'
|
19
19
|
email: g@isene.com
|
20
20
|
executables: []
|
21
21
|
extensions:
|