Skip to content

Commit a34f132

Browse files
committed
Examples: correct author information and complete list in README
The deleted license file did not reflect the license given with the code examples on the NCURSES Programming HOWTO. Quoting the revision history of the HOWTO: "Revision 1.9 - 2005-06-20 - Revised by: ppadala The license has been changed to the MIT-style license used by NCURSES. Note that the programs are also re-licensed under this." (http://tldp.org/HOWTO/NCURSES-Programming-HOWTO/)
1 parent ca8fd6c commit a34f132

File tree

21 files changed

+43
-64
lines changed

21 files changed

+43
-64
lines changed

examples/COPYING

Lines changed: 0 additions & 18 deletions
This file was deleted.

examples/README.md

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Here are a few examples to get you started.
44

5-
The main site where these examples were originally found is here [tldp.org](http://tldp.org/HOWTO/NCURSES-Programming-HOWTO/)
5+
Most of these examples are part of the [NCURSES Programming HOWTO](http://tldp.org/HOWTO/NCURSES-Programming-HOWTO/). The examples which were not taken from the HOWTO are marked with (N).
66
These examples need some work, but they should demonstrate that most everything is in working order.
77

88
To run the examples, change to the specific directory and build and execute the example with "dub run".
@@ -11,11 +11,30 @@ To run the examples, change to the specific directory and build and execute the
1111
- [rdmd](http://github.com/D-Programming-Language/tools)
1212
- ncursesw
1313

14-
### Examples
15-
- helloWorld - a simple hello world example.
16-
- helloUnicode - a simple unicode example.
17-
- keyCode - returns the number code of the key you pressed.
18-
- simpleColor - a simple example that demonstrates color output.
14+
## Examples
15+
### Basics
16+
- acsvars - ACS variables example
17+
- chgat - chgat() usage example
18+
- hellounicode - a simple unicode example (N)
19+
- helloworld - a simple hello world example
20+
- keycode - returns the number code of the key you pressed
21+
- mousemenu - A menu accessible by mouse
22+
- otherborder - Shows usage of other border functions apart from box()
23+
- printbold - Gets a single character and displays it in bold (N)
24+
- printw - A very simple printw() example
25+
- simplecolor - a simple example that demonstrates color output
26+
- simplekey - A menu accessible with keyboard UP, DOWN arrows
27+
- simplespectrum - Sample of 256-colour output (N)
28+
- templeave - Demonstrates temporarily leaving curses mode
29+
- winborder - Shows Creation of windows and borders
30+
### Forms
31+
- form_attrib - Form attributes example
32+
### Menus
33+
- attribmenu - Usage of menu attributes
34+
- scrollmenu - Demonstrates scrolling capability of menus
35+
- simplemenu - A simple menu accessed by arrow keys
36+
### Panels
37+
- simplepanel - A simple panel example
1938

2039
### TODO
2140
[ ] review, and fix anything that's broken.

examples/acsvars/dub.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
"description": "Example application for the D ncurses library",
44
"homepage": "https://github.com/D-Programming-Deimos/ncurses",
55
"authors": [
6-
"Jon \"ylixir\" Allen",
7-
"Dejan Lekic",
6+
"Pradeep Padala",
87
"Jude \"1100110\" Young"
98
],
109
"license": "ncurses",

examples/attribmenu/dub.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
"description": "Example application for the D ncurses library",
44
"homepage": "https://github.com/D-Programming-Deimos/ncurses",
55
"authors": [
6-
"Jon \"ylixir\" Allen",
7-
"Dejan Lekic",
6+
"Pradeep Padala",
87
"Jude \"1100110\" Young"
98
],
109
"license": "ncurses",

examples/chgat/dub.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
"description": "Example application for the D ncurses library",
44
"homepage": "https://github.com/D-Programming-Deimos/ncurses",
55
"authors": [
6-
"Jon \"ylixir\" Allen",
7-
"Dejan Lekic",
6+
"Pradeep Padala",
87
"Jude \"1100110\" Young"
98
],
109
"license": "ncurses",

examples/form_attrib/dub.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
"description": "Example application for the D ncurses library",
44
"homepage": "https://github.com/D-Programming-Deimos/ncurses",
55
"authors": [
6-
"Jon \"ylixir\" Allen",
7-
"Dejan Lekic",
6+
"Pradeep Padala",
87
"Jude \"1100110\" Young"
98
],
109
"license": "ncurses",

examples/hellounicode/dub.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@
33
"description": "Example application for the D ncurses library",
44
"homepage": "https://github.com/D-Programming-Deimos/ncurses",
55
"authors": [
6-
"Jon \"ylixir\" Allen",
7-
"Dejan Lekic",
8-
"Jude \"1100110\" Young"
6+
"Wyatt"
97
],
108
"license": "ncurses",
119
"dependencies": {

examples/helloworld/dub.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
"description": "Example application for the D ncurses library",
44
"homepage": "https://github.com/D-Programming-Deimos/ncurses",
55
"authors": [
6-
"Jon \"ylixir\" Allen",
7-
"Dejan Lekic",
6+
"Pradeep Padala",
87
"Jude \"1100110\" Young"
98
],
109
"license": "ncurses",

examples/keycode/dub.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
"description": "Example application for the D ncurses library",
44
"homepage": "https://github.com/D-Programming-Deimos/ncurses",
55
"authors": [
6-
"Jon \"ylixir\" Allen",
7-
"Dejan Lekic",
6+
"Pradeep Padala",
87
"Jude \"1100110\" Young"
98
],
109
"license": "ncurses",

examples/mousemenu/dub.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
"description": "Example application for the D ncurses library",
44
"homepage": "https://github.com/D-Programming-Deimos/ncurses",
55
"authors": [
6-
"Jon \"ylixir\" Allen",
7-
"Dejan Lekic",
6+
"Pradeep Padala",
87
"Jude \"1100110\" Young"
98
],
109
"license": "ncurses",

0 commit comments

Comments
 (0)