about summary refs log tree commit diff
path: root/nixpkgs/pkgs/games/vessel/isatty.c
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/games/vessel/isatty.c')
-rw-r--r--nixpkgs/pkgs/games/vessel/isatty.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/games/vessel/isatty.c b/nixpkgs/pkgs/games/vessel/isatty.c
new file mode 100644
index 000000000000..38ee2b6ce2e8
--- /dev/null
+++ b/nixpkgs/pkgs/games/vessel/isatty.c
@@ -0,0 +1,6 @@
+// We override isatty to help 'automate' installers. 
+
+// Some installers (mojoinstall) have a stdio GUI that refuses to run if you
+// feed it a file on stdin. This should help that. 
+
+int isatty(int fd) { return 1; }