Scroll to navigation

More(3pm) User Contributed Perl Documentation More(3pm)

NAME

Tk::More - a 'more' or 'less' like text widget

SYNOPSIS

    use Tk::More;
    $more = $parent->More(...text widget options ...);
    $more->Load(FILENAME);

DESCRIPTION

Tk::More is a readonly text widget with additional key bindings as found in UNI* command line tools "more" or "less". As in "more" an additional status/command line is added at the bottom.

ADDITIONAL BINDINGS

goto beginning of file
goto end of file
forward screen
backward screen
up one line
down one line
search forward
search backward
find next match
find previous match
up half screen
down half screen
down one line
invoke help window

OPTIONS

Set the font of the viewer widget. This is by default a fixed font.
Set if searching should be done case-insensitive. Defaults to true.
Sets the command for the "h" (help) key.

METHODS

Load $file into the widget. %args may be one of the following
Assume the encoding of the file to be $encoding. If none is given, then assume no encoding (which is equivalent to iso-8859-1).
Convenience method to add the bindinds Key-q and Control-Key-q to close the Toplevel window containing this More widget.

BUGS

Besides that most of more bindings are not implemented. This bugs me most (high to low priority):

* better status line implementation

* Cursor movement: up/down move displayed area regardless where
insert cursor is

* add History, Load, Search (also as popup menu)

SEE ALSO

Tk::ROText, more(1), tkmore, less(1)

AUTHOR

Achim Bohnet <ach@mpe.mpg.de>

Currently maintained by Slaven Rezic <slaven@rezic.de>.

Copyright (c) 1997-1998 Achim Bohnet. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

2022-06-28 perl v5.34.0