Mercurial > hg > octave-nkf
diff src/input.cc @ 1568:a8232861312c
[project @ 1995-10-19 03:19:39 by jwe]
author | jwe |
---|---|
date | Thu, 19 Oct 1995 03:19:39 +0000 |
parents | 89c587478067 |
children | b221bae7ca15 |
line wrap: on
line diff
--- a/src/input.cc +++ b/src/input.cc @@ -377,6 +377,16 @@ temp = strsave (geteuid () == 0 ? "#" : "$"); goto add_string; + case '[': + case ']': + temp = new char[3]; + temp[0] = '\001'; + temp[1] = ((c == '[') + ? RL_PROMPT_START_IGNORE + : RL_PROMPT_END_IGNORE); + temp[2] = '\0'; + goto add_string; + case '\\': temp = strsave ("\\"); goto add_string;