karaf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Guillaume Nodet <gno...@apache.org>
Subject [HEADS UP] New less page in Karaf
Date Fri, 16 May 2014 07:37:25 GMT
I've just pushed a new pager command which works like the less unix command
in master.
Supported features are:
  * line numbering
  * auto-quit at eof
  * line wrapping
  * horizontal and vertical movements
  * pattern searching / highlighting with movement
  * auto-adjustement with the terminal size
  * runtime change of options

It's far from a full less clone (missing customized prompt, line editing,
support for non printable chars, multiple files, etc...), but it provides
useful features.

The only real important thing missing is imho the buffering part: the input
is fully buffered and there's no special behavior difference between
standard input and files.  This means that if the file or standard input is
huge, it will end up being fully loaded in memory.

If anyone want to try it (or add features), especially on non-mac platforms
in order to make sure things work correctly, they're more than welcomed !

Cheers,
Guillaume

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message