summaryrefslogtreecommitdiff
path: root/Build
diff options
context:
space:
mode:
authorAkira Kakuto <kakuto@fuk.kindai.ac.jp>2014-05-13 09:57:40 +0000
committerAkira Kakuto <kakuto@fuk.kindai.ac.jp>2014-05-13 09:57:40 +0000
commit85642e6f37cb4f0544b05218eff569cd8061be96 (patch)
tree52d4a569cd0d190fcc17eab9d2409e5477434213 /Build
parent8f4a32f290a71df3686b9c7c381a3a9b62536b9b (diff)
print the promptfilenamehelpmsg as usual tex also in lua(jit)tex
git-svn-id: svn://tug.org/texlive/trunk@34005 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build')
-rw-r--r--Build/source/texk/web2c/luatexdir/ChangeLog5
-rw-r--r--Build/source/texk/web2c/luatexdir/tex/filename.w7
2 files changed, 12 insertions, 0 deletions
diff --git a/Build/source/texk/web2c/luatexdir/ChangeLog b/Build/source/texk/web2c/luatexdir/ChangeLog
index e2dfd6982b3..dca6d3900b3 100644
--- a/Build/source/texk/web2c/luatexdir/ChangeLog
+++ b/Build/source/texk/web2c/luatexdir/ChangeLog
@@ -1,3 +1,8 @@
+2014-05-13 Akira Kakuto <kakuto@fuk.kindai.ac.jp>
+
+ * tex/filename.w: print the promptfilenamehelpmsg as usual tex
+ also in lua(jit)tex.
+
2014-04-10 Taco Hoekwater <taco@luatex.org>
* luatex.c: hardwire the compilation date, preventing the
diff --git a/Build/source/texk/web2c/luatexdir/tex/filename.w b/Build/source/texk/web2c/luatexdir/tex/filename.w
index b797f04d761..9f9557b32d6 100644
--- a/Build/source/texk/web2c/luatexdir/tex/filename.w
+++ b/Build/source/texk/web2c/luatexdir/tex/filename.w
@@ -232,6 +232,11 @@ char *pack_job_name(const char *s)
ready for another attempt at file opening.
@c
+#ifdef WIN32
+#define promptfilenamehelpmsg "(Press Enter to retry, or Control-Z to exit)"
+#else
+#define promptfilenamehelpmsg "(Press Enter to retry, or Control-D to exit)"
+#endif
char *prompt_file_name(const char *s, const char *e)
{
int k; /* index into |buffer| */
@@ -256,6 +261,8 @@ char *prompt_file_name(const char *s, const char *e)
print_err(prompt);
if ((strcmp(e, ".tex") == 0) || (strcmp(e, "") == 0))
show_context();
+ if (strcmp(s, "input file name") == 0)
+ tprint_nl(promptfilenamehelpmsg);
tprint_nl("Please type another ");
tprint(s);
if (interaction < scroll_mode)