Tk::More3pm
A 'more' or 'less' like text widget
Usage
use Tk::More;$more = $parent->More(...text widget options ...);$more->Load(FILENAME);
Overview
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
Key-g or Home
|
goto beginning of file |
|---|---|
Key-G or End
|
goto end of file |
Key-f or Next
|
forward screen |
Key-b or Prior
|
backward screen |
Key-k or Up
|
up one line |
Key-j or Down
|
down one line |
Key-/
|
search forward |
Key-?
|
search backward |
Key-n
|
find next match |
Key-N
|
find previous match |
Key-u
|
up half screen |
Key-d
|
down half screen |
Key-Return
|
down one line |
Key-h
|
invoke help window |
Options
- Name:
fixedFont
- Class:
FixedFont
- Switch:
-font -
Set the font of the viewer widget. This is by default a fixed font.
- Name:
searchCase
- Class:
SearchCase
- Switch:
-searchcase -
Set if searching should be done case-insensitive. Defaults to true.
- Switch:
-helpcommand -
Sets the command for the "h" (help) key.
Methods
- Load($file, %args)
-
Load $file into the widget. %args may be one of the following
- -encoding => $encoding
-
Assume the encoding of the file to be $encoding. If none is given, then assume no encoding (which is equivalent to iso-8859-1).
- AddQuitBindings
-
Convenience method to add the bindinds Key-q and Control-Key-q to close the Toplevel window containing this More widget.
Releases
10 releases since Debian 4.0 (Etch); the text changed 5 times.