Mercurial > hg > octave-thorsten
comparison 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 |
comparison
equal
deleted
inserted
replaced
1567:1da33230f424 | 1568:a8232861312c |
---|---|
375 | 375 |
376 case '$': | 376 case '$': |
377 temp = strsave (geteuid () == 0 ? "#" : "$"); | 377 temp = strsave (geteuid () == 0 ? "#" : "$"); |
378 goto add_string; | 378 goto add_string; |
379 | 379 |
380 case '[': | |
381 case ']': | |
382 temp = new char[3]; | |
383 temp[0] = '\001'; | |
384 temp[1] = ((c == '[') | |
385 ? RL_PROMPT_START_IGNORE | |
386 : RL_PROMPT_END_IGNORE); | |
387 temp[2] = '\0'; | |
388 goto add_string; | |
389 | |
380 case '\\': | 390 case '\\': |
381 temp = strsave ("\\"); | 391 temp = strsave ("\\"); |
382 goto add_string; | 392 goto add_string; |
383 | 393 |
384 default: | 394 default: |