Initial import of the ircii-pana-1.1-final source tree.
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/tags/ircii-pana-1.1-final@1 13b04d17-f746-0410-82c6-800466cd88b0
This commit is contained in:
24
bitchx-docs/6_Functions/nohighlight
Normal file
24
bitchx-docs/6_Functions/nohighlight
Normal file
@@ -0,0 +1,24 @@
|
||||
Synopsis:
|
||||
$nohighlight(<string>)
|
||||
|
||||
Technical:
|
||||
This function returns <string> with all highlight characters escaped.
|
||||
All ^B, ^V, ^_, ^O, ^C, and ^[ characters will be replaced by an inverse
|
||||
of their control character, to remove all highlighting.
|
||||
|
||||
Practical:
|
||||
This is a very useful function, which has had many forms in scripts for
|
||||
a long time. It is especially good to mask out ^C and ANSI color codes
|
||||
in order to make for color-free output, or in a public message hook to
|
||||
immune yourself from ANSI-bombs that may mess up a terminal.
|
||||
|
||||
Returns:
|
||||
<string> with no parseable highlight characters, except the reverse used
|
||||
to show the control character.
|
||||
|
||||
Examples:
|
||||
$nohighlight(this is a test) Returns "this BisB a VtestV"
|
||||
|
||||
See Also:
|
||||
stripansi(6); tr(6)
|
||||
|
||||
Reference in New Issue
Block a user