| T X T _ S T R I P A N S I ( )
| | | | | SOURCE: qdev_autodocs.txt 1.163 (12/09/2014) English INDEP - TXT_#?
----------------------------------------------------------------------------
NAME
txt_stripansi() - Strips ANSI sequences from string.
SYNOPSIS
len = txt_stripansi(out, in);
LONG txt_stripansi(UBYTE *, UBYTE *);
FUNCTION
This function allows to strip all the ANSI sequences
from given string.
INPUTS
out - Output buffer pointer. Always remember to add
1 to the allocation of space of that buffer!
in - NULL terminated input string.
RETURNS
Returns number of bytes written to the output buffer.
BASES
None.
NOTES
Output buffer must generally be equally sized as the
input string plus remember about additional one byte
for the NULL terminator!
Certain VT100 sequences(those who end with numbers)
cannot be stripped with this routine.
Do not use this function when working on streams! It
is unsuitable for this kind of processing.
SEE ALSO
txt_noansi()
EXAMPLE
None.
BUGS
None known.
----------------------------------------------------------------------------
| |
| |