[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [shell-script] Re: Probleminha com o comando LESS
From: |
Tiago Barcellos Peczenyj |
Subject: |
Re: [shell-script] Re: Probleminha com o comando LESS |
Date: |
Thu, 31 Jan 2008 09:13:00 -0200 |
Isso acontece pq o less substitui alguns caracteres escape pelos dele
para fazer highlight do texto e/ou das buscas.
Vc pode usar o more que não tem problema ou use as opções -r ou -R do less
man less:
-r or --raw-control-chars
Causes "raw" control characters to be displayed. The default is
to display control characters using the caret notation; for
example, a control-A (octal 001) is displayed as "^A". Warning:
when the -r option is used, less cannot keep track of the actual
appearance of the screen (since this depends on how the screen
responds to each type of control character). Thus, various dis-
play problems may result, such as long lines being split in the
wrong place.
-R or --RAW-CONTROL-CHARS
Like -r, but tries to keep track of the screen appearance where
possible. This works only if the input consists of normal text
and possibly some ANSI "color" escape sequences, which are
sequences of the form:
ESC [ ... m
where the "..." is zero or more characters other than "m". For
the purpose of keeping track of screen appearance, all control
characters and all ANSI color escape sequences are assumed to
not move the cursor. You can make less think that characters
other than "m" can end ANSI color escape sequences by setting
the environment variable LESSANSIENDCHARS to the list of charac-
ters which can end a color escape sequence.
2008/1/31 bossonaroesao06 <address@hidden>:
> Se eu colocar no final, ele funciona a paginacao mas as informacoes
> coloridas feitas pelo AWK nao funcionam.
--
Tiago B Peczenyj
Linux User #405772
http://peczenyj.blogspot.com/
"what does not kill us makes us stronger"