diff options
author | Timo Sirainen <cras@irssi.org> | 2001-08-08 20:00:25 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-08-08 20:00:25 +0000 |
commit | 98b82723a126ca0c40982585c3754aa00bbed51f (patch) | |
tree | 1357ef3a32914fbbda442a358fca4d59a24ce424 /src/core/misc.h | |
parent | b667af72aa9df7b7a8b658cb0742b0c34cd6a3c2 (diff) | |
download | irssi-98b82723a126ca0c40982585c3754aa00bbed51f.zip |
Added function expand_escapes() which handles now escaping /EVAL and input
line if /SET expand_escapes is set. Supported escapes are \t, \r, \n, \e
(ESC), \x (HEX, \x1b), \c (CTRL char, \cA), \000 (octal, \033)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1727 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/core/misc.h')
-rw-r--r-- | src/core/misc.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/misc.h b/src/core/misc.h index 45c8ce11..804cffc2 100644 --- a/src/core/misc.h +++ b/src/core/misc.h @@ -101,4 +101,8 @@ int get_max_column_count(GSList *items, COLUMN_LEN_FUNC len_func, /* Return a column sorted copy of a list. */ GSList *columns_sort_list(GSList *list, int rows); +/* Expand escape string, the first character in data should be the + one after '\'. Returns the expanded character or -1 if error. */ +int expand_escape(const char **data); + #endif |