diff options
author | zzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-07-29 13:25:46 +0000 |
---|---|---|
committer | zzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-07-29 13:25:46 +0000 |
commit | ffb9da9fa00e8b18ddf474a367dcfc6720dc018e (patch) | |
tree | 9ed708cc74d945652e5f308e981e08b38b6719e6 /ext/curses/hello.rb | |
parent | 16bf45bf38d5b7ce3024c3af324921da1e6ef07d (diff) | |
download | ruby-ffb9da9fa00e8b18ddf474a367dcfc6720dc018e.tar.gz |
* ext/curses/curses.c: [DOC] Update location of samples
* samples/curses/*: Move Curses samples and refactor from mixin
The samples are included in rdoc for module and use of mixin is
confusing
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42241 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/curses/hello.rb')
-rw-r--r-- | ext/curses/hello.rb | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/ext/curses/hello.rb b/ext/curses/hello.rb deleted file mode 100644 index f176583a95..0000000000 --- a/ext/curses/hello.rb +++ /dev/null @@ -1,30 +0,0 @@ -#!/usr/local/bin/ruby - -require "curses" -include Curses - -def show_message(message) - width = message.length + 6 - win = Window.new(5, width, - (lines - 5) / 2, (cols - width) / 2) - win.box('|', '-') - win.setpos(2, 3) - win.addstr(message) - win.refresh - win.getch - win.close -end - -init_screen -begin - crmode -# show_message("Hit any key") - setpos((lines - 5) / 2, (cols - 10) / 2) - addstr("Hit any key") - refresh - getch - show_message("Hello, World!") - refresh -ensure - close_screen -end |