Scrolling output with ccze

colorsterminal

I love the default fancy output of ccze, but I can't seem to get it scroll property. Executing

tail -f something.log | ccze

from an X terminal works, but I can't scroll back once the screen has been filled (shift+pgup doesn't do anything).

How can I get it to work as expected?

Best Answer

ccze uses the curses output mode by default. (n)curses is a screen drawing library typically used by fullscreen applications. It switches to the terminal emulator's so-called "alternate screen" which does not have a scrollbar buffer, and the contents of the other, "normal screen" is restored upon exit.

Instead of this, you should use its ansi output format which is enabled by any of the -A, --raw-ansi, -m ansi or --mode=ansi command line options.

Related Question