aboutsummaryrefslogtreecommitdiffhomepage
path: root/input.h
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2013-04-15 13:07:17 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2013-04-15 13:07:17 -0700
commitbcf3accb7425f2cee3c679f49776bc08d78d323a (patch)
tree0a132b01f695420aa815ed5c8a4321da5fa39305 /input.h
parent1c5556334dc6fde832db9c8fe232efe117e2381e (diff)
Eliminate a static string from input_terminfo_get_sequence
Diffstat (limited to 'input.h')
-rw-r--r--input.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/input.h b/input.h
index 48455144..bc68fbe0 100644
--- a/input.h
+++ b/input.h
@@ -117,10 +117,10 @@ bool input_mapping_get(const wcstring &sequence, wcstring &cmd);
/**
Return the sequence for the terminfo variable of the specified name.
- If no terminfo variable of the specified name could be found, return 0 and set errno to ENOENT.
- If the terminfo variable does not have a value, return 0 and set errno to EILSEQ.
+ If no terminfo variable of the specified name could be found, return false and set errno to ENOENT.
+ If the terminfo variable does not have a value, return false and set errno to EILSEQ.
*/
-const wchar_t *input_terminfo_get_sequence(const wchar_t *name);
+bool input_terminfo_get_sequence(const wchar_t *name, wcstring *out_seq);
/** Return the name of the terminfo variable with the specified sequence */
bool input_terminfo_get_name(const wcstring &seq, wcstring &name);