Feature #2666
closedext/curses: improved structure for view2
Description
=begin
Looking at bits of stdlib that ruby-doc.org considers insufficiently commented, I explored
ext/curses, and found some scroll methods in view2.rb. Examining this, it is an example program of how to use curses. However, it uses global variables, and puts methods (for scrolling) outside of a specific class. I've wrapped this in a class, and also added vi-like keybindings to the scrolling code. I'm calling it view3.rb for now, but maybe it would be an adequate replacement for view2.rb?
It was constructed from code in trunk, and tested on cygwin
(ruby 1.8.7 (2008-08-11 patchlevel 72) [i386-cygwin])
and seems to be working.
=end
Files
Updated by shugo (Shugo Maeda) about 14 years ago
- Status changed from Open to Assigned
- Assignee set to shugo (Shugo Maeda)
=begin
=end
Updated by shugo (Shugo Maeda) about 14 years ago
- Status changed from Assigned to Closed
=begin
I have replaced view2.rb with your version. Thank you.
=end
Updated by hgs (Hugh Sasse) about 14 years ago
=begin
Thank you. I'm glad I could help.
Hugh
On Sat, 6 Feb 2010, Shugo Maeda wrote:
Issue #2666 has been updated by Shugo Maeda.
Status changed from Assigned to Closed
I have replaced view2.rb with your version. Thank you.¶
http://redmine.ruby-lang.org/issues/show/2666
=end