Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Examples and comments of how-to use Ncurses with ruby, based on the examples from the book "Programmers Guide To nCurses" by Dan Gookin
Ruby
Branch: master

Added example on how-to scroll windows, based on scrup1 and scrup2 ex…

…amples from chapter 10.

This introduces the methods scroll, scrl and scrollok
latest commit 8a620af56c
@zdennis authored
Failed to load latest commit information.
README updated the README, the book was not published nearly 20 years ago, b…
add1.rb
add2.rb
add3.rb walking through initial ncurses examples in the ncurses book by Dan G…
arrowkeys.rb added example from chapter 7 of how-to handle arrow key input
bgcolor1.rb
bgcolor2.rb
blah1.rb combined the examples in blah1, blah2, blah3, blah4, blah5 and blah6 …
change_colors.rb added example which shows how you can check to see if you can change …
colorme.rb
colortest.rb added the colortest example from chapter 3 for formatting text
corners1.rb added the corners1 example which explores moving the cursor around th…
corners2.rb added example of moving around screen while adding characters to the …
ctitle.rb added the ctitle example which shows how-to center text on the screen…
flush1.rb added the flush1 example to show how to read the input buffer using g…
goodbye.rb walking through initial ncurses examples in the ncurses book by Dan G…
hamlet1.rb added hamlet1 and hamlet2 examples in one file, shows how-to use #ins…
hamlet4.rb added an example for hamlet4 which shows how deleteln works
hamlet5.rb
hamlet6.rb added hamlet6 example which shows how delch and insch can be used tog…
helpmenu1.rb
kbhit.rb added the kbhit example from chapter 7
keywait1.rb added the keywait1 example from chapter 7 which shows how Ncurses.nod…
kid1.rb added kid1 example which beings showing how subwindows are used, intr…
kid2.rb
kid4.rb added examples from chapter 9 which show how-to create a sub-window u…
marquee1.rb added example from chapter 5 on how to use insch to create scrolling …
marquee2.rb added the marquee2 example which shows more clearly how insch works
menubar.rb added initial example of how-to write a basic menubar from chapter 7
quad1.rb
quad3.rb
screensize.rb added the screen size example which shows how to get the number of ro…
string1.rb adding the typewriter and string1 examples from chapter 2
twinkle.rb added the twinkle example from chapter 3
twowin1.rb added an example showing how to create windows, similar the twowin1 e…
typewriter.rb adding the typewriter and string1 examples from chapter 2
whereami.rb
whoru.rb added examples to how you can use getnstr, noecho and echo to ask a u…
whoru2.rb added examples to how you can use getnstr, noecho and echo to ask a u…
window_scrolling.rb Added example on how-to scroll windows, based on scrup1 and scrup2 ex…
window_scrolling2.rb Added example on how-to scroll windows, based on scrup1 and scrup2 ex…
yoda.rb walking through initial ncurses examples in the ncurses book by Dan G…

README

These examples are based on the book Programmer's Guide to nCurses by Dan Gookin. The book by Gookin was written targeted for C, and these examples are targeted for the Ncurses wrapper library in Ruby.

These are not to explain or introduce nCurses or its ruby library. I am simply sharing my journey of learning about nCurses with you by providing the examples free of charge. In my search for using nCurses I have seen a lot of questions asked and not very many answers given. Perhaps these examples will help provide some clarification.

If they do provide help for you I'd love to know! 

zach.dennis@gmail.com
Something went wrong with that request. Please try again.