mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-30 12:33:02 +02:00
- cli: add '-r' to log/pager/follow for "raw" control chars, including unicode - sysklogd: backport unicode fix for em-dash character (—) in slogan - sysklogd: drop old patches - sysklogd: run in 8-bit safe mode Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
16 lines
713 B
Bash
Executable File
16 lines
713 B
Bash
Executable File
#!/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
|
|
# -r :: Causes "raw" control characters to be displayed, including unicode.
|
|
# -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)"
|
|
export LANG=en_US.UTF-8
|
|
|
|
less -rIKd -FX "$@"
|