/*
* Empire - A multi-player, client/server Internet based war game.
- * Copyright (C) 1986-2015, Dave Pare, Jeff Bailey, Thomas Ruschak,
+ * Copyright (C) 1986-2021, Dave Pare, Jeff Bailey, Thomas Ruschak,
* Ken Stevens, Steve McClure, Markus Armbruster
*
* Empire is free software: you can redistribute it and/or modify
#include "proto.h"
#include "secure.h"
-#ifdef HAVE_LIBREADLINE
-# if defined(HAVE_READLINE_READLINE_H)
-# include <readline/readline.h>
-# elif defined(HAVE_READLINE_H)
-# include <readline.h>
-# endif /* defined(HAVE_READLINE_H) */
-#endif /* HAVE_LIBREADLINE */
-
int eight_bit_clean;
FILE *auxfp;
int restricted;
static int redir_is_pipe;
static int executing;
-static void prompt(int, char *, char *);
static void doredir(char *p);
static void dopipe(char *p);
static int doexecute(char *p);
return 0;
}
-static void
-prompt(int code, char *prompt, char *teles)
-{
- char pr[1024];
-
- snprintf(pr, sizeof(pr), "%s%s", teles, prompt);
-#ifdef HAVE_LIBREADLINE
- rl_set_prompt(pr);
- rl_forced_update_display();
-#else /* !HAVE_LIBREADLINE */
- printf("%s", pr);
- fflush(stdout);
-#endif /* !HAVE_LIBREADLINE */
- if (auxfp) {
- fprintf(auxfp, "%s%s", teles, prompt);
- fflush(auxfp);
- }
-}
-
static char *
fname(char *s)
{