summaryrefslogtreecommitdiff
path: root/math/yacas/patches/patch-ad
blob: 6fd2ca2dbc881608e41267079352dd5635b8eca9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
$NetBSD: patch-ad,v 1.1.1.1 2000/02/20 14:40:35 dmcmahill Exp $

--- /dev/null	Sun Feb 20 09:00:11 2000
+++ yacas.sh.in	Sun Feb 20 09:07:01 2000
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+# save the tty settings
+stty -a | grep "\-extproc" 2>&1 > /dev/null
+if [ $? = 0 ]; then
+  OLD=-extproc
+else
+  OLD=extproc
+fi
+#OLD=`stty -g`
+
+# make sure one critical tty setting is correct
+stty -extproc
+
+# run yacas
+@prefix@/bin/yacas $*
+
+# restore the tty setting
+stty $OLD
+