Project

General

Profile

Actions

Feature #2666

closed

ext/curses: improved structure for view2

Added by hgs (Hugh Sasse) about 14 years ago. Updated almost 13 years ago.

Status:
Closed
Target version:
-
[ruby-core:27894]

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

view3.rb (3.11 KB) view3.rb hgs (Hugh Sasse), 01/27/2010 09:42 PM
Actions #1

Updated by shugo (Shugo Maeda) about 14 years ago

  • Status changed from Open to Assigned
  • Assignee set to shugo (Shugo Maeda)

=begin

=end

Actions #2

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

Actions #3

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


http://redmine.ruby-lang.org

=end

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0