Mercurial > hg > octave-lyh
diff src/input.cc @ 3165:e4bbfc196e53
[project @ 1998-04-16 03:01:47 by jwe]
author | jwe |
---|---|
date | Thu, 16 Apr 1998 03:05:03 +0000 |
parents | bea2f5be3eab |
children | fccab8e7d35f |
line wrap: on
line diff
--- a/src/input.cc +++ b/src/input.cc @@ -86,6 +86,9 @@ // more than one state can be active at once. int Vecho_executing_commands; +// The time we last printed a prompt. +time_t Vlast_prompt_time; + // Character to append after successful command-line completion attempts. static char Vcompletion_append_char; @@ -192,6 +195,8 @@ { string retval; + Vlast_prompt_time = time (0); + if ((interactive || forced_interactive) && (! (reading_fcn_file || reading_script_file))) {