aboutsummaryrefslogtreecommitdiffstats
path: root/audio/tracker/files/patch-aa
diff options
context:
space:
mode:
authorswallace <swallace@FreeBSD.org>1994-10-03 07:15:02 +0800
committerswallace <swallace@FreeBSD.org>1994-10-03 07:15:02 +0800
commit56379a34200fbaee80e305a1f5419a6de6150d35 (patch)
tree9dd31a8c596ef1405204a967c51762041bb33082 /audio/tracker/files/patch-aa
parent741c1d699ce96dc2f5ea64f794e2c8ed9014e285 (diff)
downloadfreebsd-ports-gnome-56379a34200fbaee80e305a1f5419a6de6150d35.tar.gz
freebsd-ports-gnome-56379a34200fbaee80e305a1f5419a6de6150d35.tar.zst
freebsd-ports-gnome-56379a34200fbaee80e305a1f5419a6de6150d35.zip
Tracker 4.3 - plays soundtracker modules
Diffstat (limited to 'audio/tracker/files/patch-aa')
-rw-r--r--audio/tracker/files/patch-aa105
1 files changed, 105 insertions, 0 deletions
diff --git a/audio/tracker/files/patch-aa b/audio/tracker/files/patch-aa
new file mode 100644
index 000000000000..80cd4a40a1f3
--- /dev/null
+++ b/audio/tracker/files/patch-aa
@@ -0,0 +1,105 @@
+*** Unix/ui.c Sun Oct 2 15:28:51 1994
+--- Unix/ui.c Sun Oct 2 15:30:05 1994
+***************
+*** 82,88 ****
+--- 82,90 ----
+ #include <sys/termio.h>
+ #endif
+ #ifdef __386BSD__
++ #include <fcntl.h>
+ #include <sys/ioctl.h>
++ #define termio termios
+ #endif
+ #include <stdio.h>
+ #include <signal.h>
+***************
+*** 193,198 ****
+--- 195,201 ----
+ if (run_in_fg())
+ {
+ #ifdef __386BSD__
++ fcntl(fileno(stdin), F_SETFL, O_NONBLOCK);
+ tcgetattr(fileno(stdin), &zap);
+ #else
+ ioctl(fileno(stdin), TCGETA, &zap);
+***************
+*** 217,223 ****
+ #endif
+ zap.c_lflag &= ~(ICANON | ECHO);
+ #ifdef __386BSD__
+! tcsetattr(fileno(stdin, TCSANOW, &zap);
+ #else
+ ioctl(fileno(stdin), TCSETA, &zap);
+ #endif
+--- 220,226 ----
+ #endif
+ zap.c_lflag &= ~(ICANON | ECHO);
+ #ifdef __386BSD__
+! tcsetattr(fileno(stdin), TCSANOW, &zap);
+ #else
+ ioctl(fileno(stdin), TCSETA, &zap);
+ #endif
+***************
+*** 227,232 ****
+--- 230,244 ----
+ is_fg = FALSE;
+ }
+
++ /* if_fg_sane_tty():
++ * restore tty modes, if running in foreground
++ */
++ LOCAL void if_fg_sane_tty()
++ {
++ if (run_in_fg())
++ sane_tty();
++ }
++
+ /* nonblocking_io():
+ * try to setup the keyboard to non blocking io
+ */
+***************
+*** 240,252 ****
+ {
+ psanity = &sanity;
+ #ifdef __386BSD__
+! tcgetattr(fileno(stdin), &sanity);
+ #else
+ ioctl(fileno(stdin), TCGETA, psanity);
+ #endif
+ }
+ switch_mode();
+! at_end(sane_tty);
+ }
+
+
+--- 252,264 ----
+ {
+ psanity = &sanity;
+ #ifdef __386BSD__
+! tcgetattr(fileno(stdin), psanity);
+ #else
+ ioctl(fileno(stdin), TCGETA, psanity);
+ #endif
+ }
+ switch_mode();
+! at_end(if_fg_sane_tty);
+ }
+
+
+***************
+*** 255,261 ****
+ LOCAL void sane_tty()
+ {
+ #ifdef __386BSD__
+! tcsetattr(fileno(stdin), &sanity);
+ #else
+ ioctl(fileno(stdin), TCSETA, psanity);
+ #endif
+--- 267,273 ----
+ LOCAL void sane_tty()
+ {
+ #ifdef __386BSD__
+! tcsetattr(fileno(stdin), TCSADRAIN, psanity);
+ #else
+ ioctl(fileno(stdin), TCSETA, psanity);
+ #endif