summaryrefslogtreecommitdiffstats
path: root/sh/input.c
diff options
context:
space:
mode:
authorJack Palevich <jackpal@google.com>2010-06-04 12:03:14 +0800
committerJack Palevich <jackpal@google.com>2010-06-04 12:03:14 +0800
commitad5431d2ca9c4dd454dfb3bc8e9de3ee0ad28a27 (patch)
tree1cf34b2f81ce28ef5c6c81513d33e8ec97741003 /sh/input.c
parent1bc4eae3492b5e5fd8afdb3bb92c63287e8e994c (diff)
downloadsystem_core-ad5431d2ca9c4dd454dfb3bc8e9de3ee0ad28a27.zip
system_core-ad5431d2ca9c4dd454dfb3bc8e9de3ee0ad28a27.tar.gz
system_core-ad5431d2ca9c4dd454dfb3bc8e9de3ee0ad28a27.tar.bz2
Emit shell prompt even when in non-interactive mode.
Change-Id: If85c509efe13e4bdb40216c79d560ea7f83ba813
Diffstat (limited to 'sh/input.c')
-rw-r--r--sh/input.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sh/input.c b/sh/input.c
index bfb80f4..056ee8b 100644
--- a/sh/input.c
+++ b/sh/input.c
@@ -175,6 +175,9 @@ pgetc(void)
return pgetc_macro();
}
+int in_interactive_mode() {
+ return parsefile != NULL && parsefile->fd == 0;
+}
static int
preadfd(void)