mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-30 20:43:02 +02:00
board/common: replace pager symlink with a tiny shell script
These are basically the same flags as was passed to klish, but now we use -R instead of -r to make sure only ANSI coloŕ escapes can affect the behavior of less. This change will make it posslbe to shop off too long lines and scroll vertically on really long lines instead for them breaking output. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
@@ -1 +0,0 @@
|
||||
less
|
||||
Executable
+13
@@ -0,0 +1,13 @@
|
||||
#!/bin/sh
|
||||
# -d ;; suppress error message "the terminal is dumb"
|
||||
# -F :: exit if the entire file can be displayed on the first screen
|
||||
# -I :: Ignore case, even for patterns
|
||||
# -K :: exit immediately when an interrupt character (usually ^C) is typed
|
||||
# -R :: Almost raw control charachters, only ANSI color escape sequences and
|
||||
# OSC 8 hyperlink sequences are output. Allows veritcal scrolling
|
||||
# -S :: lines longer than the screen width are chopped (truncated), not wrapped
|
||||
# -X :: No termcap initialization and deinitialization set to the terminal.
|
||||
# This is what leaves the contents of the output on screen.
|
||||
|
||||
export LESS="-P %f (press h for help or q to quit)"
|
||||
less -RISKd -FX "$@"
|
||||
Reference in New Issue
Block a user