Project

mancurses

0.0
No commit activity in last 3 years
No release in over 3 years
view manpages in an ncurses window and navigate with vim bindings
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3
>= 0

Runtime

 Project Readme

Mancurses

Browse manpages inside ncurses. Jump around to other man pages

Installation

$ gem install mancurses

Usage

Use Alt-c to enter program name to search such as "grep", "strcmp" etc. Use "/" to search for strings within the page displayed.

Use '?' to see bindings.

General

This gem is not really gonna make much difference to you. It's faster to just type man grep on the command line and 'q' to get out. It's not like you keep manning pages one after another.

I am writing this to test out a new text widget which uses a pad. I hope to replace the current text widgets such as textview and list and maybe tabular and tree in rbcurse-core with this.

Currently, using a window requires a lot of work each time one scrolls around. Too much string creation , truncation, sanitizing and gc going on repeatedly. Using a pad simplifies all this.

However, pad is not without its issues. If I have two pads on the screen, and a popup is displayed, then a black rectangle is left on the other pad. I would have to tab there and scroll for a prefresh to happen. Otherwise, the app needs to do some book-keeping of underlying pads created and refresh them when a messagebox or window closes.

If i cannot manage that reliably, then i cannot include this in the main rbcurse-core.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

https://rubygems.org/profiles/rkumar