More(3pm)
๐ Tk::More โ the more/less text widget, but make it Perl ๐
okay bestie, gather round, because this is More(3pm) โ a User Contributed Perl Documentation page, aka the manual for Tk::More ๐
โจ NAME โจ
Tk::More โ a more or less like text widget. literally that's the whole vibe ๐ฆ
๐ธ SYNOPSIS ๐ธ
use Tk::More;
$more = $parent->More(...text widget options ...);
$more->Load(FILENAME);
๐ DESCRIPTION ๐
Tk::More is a readonly text widget, but with extra key bindings on top โ the same ones you'd find in those UNI* command line tools more or less. And just like in more, there's a bonus status/command line chillin' at the bottom. no cap ๐
๐ ADDITIONAL BINDINGS ๐
okay so here's the whole keybind menu, bestie. memorize it, it's giving cheat sheet ๐โจ
Key-gorHomeโ goto beginning of file ๐Key-GorEndโ goto end of file ๐Key-forNextโ forward screen โฉKey-borPriorโ backward screen โชKey-korUpโ up one line โฌ๏ธKey-jorDownโ 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 ๐
each one comes with its Name / Class / Switch trio, keep them straight bestie ๐ซถ
- Name:
fixedFontโ Class:FixedFontโ Switch:-fontโ sets the font of the viewer widget. by default it's a fixed font. iconic behavior honestly ๐๏ธ - Name:
searchCaseโ Class:SearchCaseโ Switch:-searchcaseโ sets whether searching should be done case-insensitive. defaults to true. yes queen, case-insensitive by default ๐ - Switch:
-helpcommandโ sets the command for the"h"(help) key. the help key needed a whole command, periodt ๐ข
๐ฆ METHODS ๐ฆ
Load($file, %args)
loads $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 toiso-8859-1). the math is mathing ๐
AddQuitBindings
convenience method to add the bindinds Key-q and Control-Key-q to close the Toplevel window containing this More widget. (yes, "bindinds" โ that's the original spelling, we don't touch the lore ๐) bye bye window ๐
๐ BUGS ๐
besides that, most of the more bindings are not implemented. and honestly? it bugs the author most. here's the list, 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)
not me listing the bugs with the same energy as a ranked tier list ๐ญ
โญ SEE ALSO โญ
Tk::ROText, more(1), tkmore, less(1) โ go read those too, bestie, iykyk ๐
๐ 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. ๐
and that's a wrap bestie!! this page shipped with perl v5.34.0 and got its lil timestamp on 2022-06-28 ๐ธ๐ slay, go forth and scroll ๐
โจ
๐ฆ where this page comes from
- debian bookworm: libtk-pod-perl 0.9943-2 ยท Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libtk-pod-perl 0.9943-2 ยท Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libtk-pod-perl 0.9943-2 ยท Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libtk-pod-perl 0.9943-2 ยท Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libtk-pod-perl 0.9943-2 ยท Artistic-1.0-Perl OR GPL-1.0-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms