App-optex-up
view release on metacpan or search on metacpan
# OPTIONS
Module options must be specified before `--` separator.
- **-C** _N_, **--pane**=_N_
Set the number of columns (panes) directly.
- **-R** _N_, **--row**=_N_
Set the number of rows. The page height is calculated by dividing
the terminal height by this value.
- **-G** _CxR_, **--grid**=_CxR_
Set the grid layout. For example, `--grid=2x3` or `--grid=2,3`
creates a 2-column, 3-row layout (6-up). This is equivalent to
`-C2 -R3`.
- **-S** _N_, **--pane-width**=_N_
Set the pane width in characters. Default is 85. When **--pane** is
not specified, the number of panes is calculated by dividing the
terminal width by this value.
- **--bs**=_STYLE_, **--border-style**=_STYLE_
Set the border style for ansicolumn. Default is `heavy-box`.
See [App::ansicolumn](https://metacpan.org/pod/App%3A%3Aansicolumn) for available styles.
- **-F**, **--fold**
Enable fold mode (disable page mode). In fold mode, the entire
content is split evenly across columns without pagination. Page
mode is the default.
- **--pager**=_COMMAND_
Set the pager command. Default is `NUP_PAGER` or `less -F +Gg`.
- **--no-pager**
Disable pager. Output goes directly to stdout.
- Other options
Any unrecognized options are passed through to [App::ansicolumn](https://metacpan.org/pod/App%3A%3Aansicolumn).
For example, `--cm` option can be used to set colormap:
optex -Mup --cm=BORDER=R -- command
See [App::ansicolumn](https://metacpan.org/pod/App%3A%3Aansicolumn) for available options.
# EXAMPLES
Display perldoc output in multiple columns:
optex -Mup perldoc App::optex::up
<div>
<p><img width="750" src="https://raw.githubusercontent.com/kaz-utashiro/optex-up/main/images/perldoc.png">
</div>
List files in multiple columns with pager:
optex -Mup ls -l
Use 2 columns:
optex -Mup -C2 -- ls -l
Set pane width to 100:
optex -Mup -S100 -- ls -l
Use 2 rows (upper and lower):
optex -Mup -R2 -- ls -l
Use 2x2 grid (4-up):
optex -Mup -G2x2 -- ls -l
Fold mode (no pagination):
optex -Mup -F -- man perl
Use a different border style:
optex -Mup --bs=round-box -- ls -l
Output without pager (useful for piping):
optex -Mup --no-pager -C2 -- ls -l | head
Truncate long lines:
optex -Mup --ls=truncate -- ps aux
# INSTALL
## CPANMINUS
cpanm App::optex::up
# SEE ALSO
[App::optex](https://metacpan.org/pod/App%3A%3Aoptex), [https://github.com/kaz-utashiro/optex](https://github.com/kaz-utashiro/optex)
[App::optex::up](https://metacpan.org/pod/App%3A%3Aoptex%3A%3Aup), [https://github.com/kaz-utashiro/optex-up](https://github.com/kaz-utashiro/optex-up)
[App::ansicolumn](https://metacpan.org/pod/App%3A%3Aansicolumn)
# AUTHOR
Kazumasa Utashiro
# LICENSE
Copyright 2025 Kazumasa Utashiro.
( run in 0.936 second using v1.01-cache-2.11-cpan-788537b7465 )