ANSI Colours. More...
Include dependency graph for ansi.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Data Structures | |
| struct | AnsiColor |
| An ANSI escape sequence. More... | |
Functions | |
| int | ansi_color_parse (const char *str, struct AnsiColor *ansi, struct AttrColorList *acl, bool dry_run) |
| Parse a string of ANSI escape sequence. | |
ANSI Colours.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Definition in file ansi.h.
| int ansi_color_parse | ( | const char * | str, |
| struct AnsiColor * | ansi, | ||
| struct AttrColorList * | acl, | ||
| bool | dry_run ) |
Parse a string of ANSI escape sequence.
| str | String to parse |
| ansi | AnsiColor for the result |
| acl | List to store the unique colours |
| dry_run | If true, parse but don't save the sequence |
| num | Total length of the escape sequences |
Parse (multiple) ANSI sequence(s) into ansi. If the colour hasn't been seen before, store the it in acl.
Definition at line 118 of file ansi.c.
Here is the call graph for this function:
Here is the caller graph for this function: