Sponsored Content
Full Discussion: What are <84>, <82>?
Top Forums UNIX for Beginners Questions & Answers What are <84>, <82>? Post 303003883 by Don Cragun on Friday 22nd of September 2017 06:05:41 AM
Old 09-22-2017
The <hex_digits> (in blue if you're using a color terminal is the hexadecimal value of a byte that is not part of a valid character in your current locale.

You can translate the hex value(s) to octal using printf. And then you can use tr to delete those characters. For example, if vi shows you <82>, <84>, and <fe>; you could use:
Code:
printf '\\%03o\n' 0x82 0x84 0xfe

which would give you:
Code:
\202
\204
\376

and then you could use:
Code:
LC_ALL=C tr -d '\202\204\376' < input_file > output_file

to remove all occurrences of those three byte values from input_file with the updated contents stored in the file output_file.
 
set_color(1)							       fish							      set_color(1)

NAME
set_color - set_color - set the terminal color set_color - set the terminal color Synopsis set_color [-v --version] [-h --help] [-b --background COLOR] [COLOR] Description Change the foreground and/or background color of the terminal. COLOR is one of black, red, green, brown, yellow, blue, magenta, purple, cyan, white and normal. o -b, --background Set the background color o -c, --print-colors Prints a list of all valid color names o -h, --help Display help message and exit o -o, --bold Set bold or extra bright mode o -u, --underline Set underlined mode o -v, --version Display version and exit Calling set_color normal will set the terminal color to whatever is the default color of the terminal. Some terminals use the --bold escape sequence to switch to a brighter color set. On such terminals, set_color white will result in a grey font color, while set_color --bold white will result in a white font color. Not all terminal emulators support all these features. This is not a bug in set_color but a missing feature in the terminal emulator. set_color uses the terminfo database to look up how to change terminal colors on whatever terminal is in use. Some systems have old and incomplete terminfo databases, and may lack color information for terminals that support it. Download and install the latest version of ncurses and recompile fish against it in order to fix this issue. Version 1.23.1 Sun Jan 8 2012 set_color(1)
All times are GMT -4. The time now is 06:25 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy