TP(1)
π TP(1) π
okay so welcome to TP(1), bestie β a User Contributed Perl Documentation moment for tp, the pure perl pager. No cap, this page is your group-chat cheat sheet for paging files like a main character. π
πΈ NAME πΈ
tp β a pure perl pager. That's the whole name section, iconic and concise.
β¨ SYNOPSIS β¨
tp -[JSenrs] [-cols] [-f STR] [-j|+ #] [-p|+/ STR] [FILE]...
Yes bestie, that line is literally the whole vibe check for how you call it.
π OPTIONS π
-eβ Exit at the end of the file. Bye at EOF, periodt.-f STRβ IfSTRis defined, the pager pauses when the character sequence specified bySTRis encountered in the input text. When enabled, the default value is formfeed, i.e.^L; that's to mimic the traditional behavior of"1"inmore, but because of the peculiarities ofGetopt::Longyou need to use the--argument separator to trigger this, e.g.:
tp -f -- foo #pauses on lines in foo with "^L" in them
You might also supply a regular expression as STR, e.g.:
tp -f '[ie]t' bar #pauses on lines in bar with "it" or "et" in them
-Jβ Add a column with markers indicating which lines match a search expression. Search girlies stay winning.-nβ Display line numbering. Toggleable at run time with#.-rβ Send raw control characters from input unadulterated to the terminal. By default, characters other than tab and newline are converted to caret notation, e.g.^@for null or^Lfor form feed.-sβ Squeeze multiple blank lines into one. Minimalism.-Sβ Do not fold long lines. Let them stretch, long-line main character energy.-[,--scrollbarβ Display an interactive scrollbar in the right-most column.-$,--tailβ Keep checking the displayed file for new content. Only available when paging a single file.--colsβ Set the number of columns for the pager. If absent, the terminal is queried directly withTerm::ReadKeyif loaded orsttyortput, and if these fail it defaults to80.
π«Ά User Interface π«Ά
Quick decoder ring, bestie: C- is Control, M- is Meta/Alt, S- is Shift, and \d+ is a sequence of digits. iykyk.
General
- help β
horH - close β
qorQor:qor:Q - refresh β
rorC-lorC-R - flush buffer β
R - save buffer β
:w - open file β
:e
Navigation
- down one line β
ENTERoreorjorJorC-eorC-nordown arrow - down half page β
dorC-d - down one page β
SPACEforzorC-forC-vorM-spaceorPgDn - up one page β
borworC-borM-vorPgUp - up half page β
uorC-u - up one line β
koryorKorYorC-KorC-PorC-Yorup arrow - to bottom β
Gor$or>orM->orEnd - to top β
gor<orM-< - left one tab β
left arrow - left half screen β
S-left arrow - right one tab β
right arrow - right half screen β
S-right arrow - jump to line number β
\d+ - next file β
:norS-M-right arrow - previous file β
:porS-M-left arrow
Bookmarks
- Save mark β
morIns - Goto mark β
' - Special mark: Beginning of file β
^ - Special mark: End of file β
$ - Special mark: Previous location β
' - Special mark: List user-created marks β
""" - Special mark:
"\d"β Top of file\dwhen viewing multiple files
Search
- forward β
/ - backward β
? - next match β
norP - previous match β
porN - grep (show only matching lines) β
&
Options
- toggle line-numbering β
# - toggle folding β
S - toggle raw/cooked output β
C
π ENVIRONMENT π
tp checks the LESS, MORE, TPOPT, TERM and TERMCAP variables.
The TPOPT variable is used to set options explicitly for tp, by concatenating undecorated options together β e.g. Sr for squished raw output.
LESS and MORE are checked for options that tp supports, and if detected they are enabled.
π₯ SEE ALSO π₯
IO::Pager::Perl, less(1). That's the crossover episode.
π AUTHORS π
Jerrad Pierce jpierce@cpan.org β the author, slay.
π LICENSE π
- Thou shalt not claim ownership of unmodified materials.
- Thou shalt not claim whole ownership of modified materials.
- Thou shalt grant the indemnity of the provider of materials.
- Thou shalt use and dispense freely without other restrictions.
Or, if you prefer:
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.0 or, at your option, any later version of Perl 5 you may have available.
π That's the TP(1) manual page, bestie β brought to you by perl v5.42.0 and dated 2025-12-14. Now go forth and page like the icon you are. π
β¨
π¦ where this page comes from
- arch rolling: perl-io-pager 2.10-6 Β· GPL AND PerlArtistic
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms