version 1.92, 2012/04/29 07:33:41 |
version 1.93, 2012/07/09 09:55:57 |
|
|
char in[BUFSIZ], ch, *iptr, *optr; |
char in[BUFSIZ], ch, *iptr, *optr; |
size_t len; |
size_t len; |
|
|
|
if (fmt == NULL) |
|
return (xstrdup("")); |
|
|
len = strftime(in, sizeof in, fmt, localtime(&t)); |
len = strftime(in, sizeof in, fmt, localtime(&t)); |
in[len] = '\0'; |
in[len] = '\0'; |
|
|
|
|
c->prompt_string = status_replace(c, NULL, NULL, NULL, msg, |
c->prompt_string = status_replace(c, NULL, NULL, NULL, msg, |
time(NULL), 0); |
time(NULL), 0); |
|
|
if (input == NULL) |
|
input = ""; |
|
c->prompt_buffer = status_replace(c, NULL, NULL, NULL, input, |
c->prompt_buffer = status_replace(c, NULL, NULL, NULL, input, |
time(NULL), 0); |
time(NULL), 0); |
c->prompt_index = strlen(c->prompt_buffer); |
c->prompt_index = strlen(c->prompt_buffer); |
|
|
time(NULL), 0); |
time(NULL), 0); |
|
|
xfree(c->prompt_buffer); |
xfree(c->prompt_buffer); |
if (input == NULL) |
|
input = ""; |
|
c->prompt_buffer = status_replace(c, NULL, NULL, NULL, input, |
c->prompt_buffer = status_replace(c, NULL, NULL, NULL, input, |
time(NULL), 0); |
time(NULL), 0); |
c->prompt_index = strlen(c->prompt_buffer); |
c->prompt_index = strlen(c->prompt_buffer); |