Mercurial > octave
diff liboctave/oct-rl-edit.c @ 6979:2883ea1c5c18
[project @ 2007-10-08 20:23:48 by dbateman]
author | dbateman |
---|---|
date | Mon, 08 Oct 2007 20:26:01 +0000 |
parents | ace8d8d26933 |
children | 93c65f2a5668 |
line wrap: on
line diff
--- a/liboctave/oct-rl-edit.c Mon Oct 08 19:41:28 2007 +0000 +++ b/liboctave/oct-rl-edit.c Mon Oct 08 20:26:01 2007 +0000 @@ -47,6 +47,12 @@ \ strcpy (ss, s) +void +octave_rl_redisplay (void) +{ + rl_redisplay (); +} + int octave_rl_screen_height (void) { @@ -118,10 +124,16 @@ rl_insert_text (s); } -void -octave_rl_newline (void) +int +octave_rl_newline (int count, int key) { - rl_newline (1, '\n'); + return rl_newline (count, key); +} + +const char * +octave_rl_line_buffer (void) +{ + return rl_line_buffer; } void @@ -196,6 +208,14 @@ return retval; } +int +octave_rl_filename_quoting_desired (int arg) +{ + int retval = rl_filename_quoting_desired; + rl_filename_quoting_desired = arg; + return retval; +} + char * octave_rl_filename_completion_function (const char *text, int state) { @@ -227,6 +247,22 @@ } void +octave_rl_set_filename_quote_characters (const char *s) +{ + OCTAVE_RL_SAVE_STRING (ss, s); + + rl_filename_quote_characters = ss; +} + +void +octave_rl_set_completer_quote_characters (const char *s) +{ + OCTAVE_RL_SAVE_STRING (ss, s); + + rl_completer_quote_characters = ss; +} + +void octave_rl_set_completion_append_character (char c) { rl_completion_append_character = c; @@ -239,6 +275,24 @@ } void +octave_rl_set_quoting_function (rl_quoting_fcn_ptr f) +{ + rl_filename_quoting_function = f; +} + +void +octave_rl_set_dequoting_function (rl_dequoting_fcn_ptr f) +{ + rl_filename_dequoting_function = f; +} + +void +octave_rl_set_char_is_quoted_function (rl_char_is_quoted_fcn_ptr f) +{ + rl_char_is_quoted_p = f; +} + +void octave_rl_set_startup_hook (rl_startup_hook_fcn_ptr f) { rl_startup_hook = f;