diff srogue/options.c @ 119:458df24e973d

srogue: use functions from mdport.c. Shell escape, passwd entries, terminal settings, and most signal handling is now done with the more portable md_* functions.
author John "Elwin" Edwards
date Wed, 30 Apr 2014 14:46:30 -0700
parents aa582a02eb5d
children 94a0d9dd5ce1
line wrap: on
line diff
--- a/srogue/options.c	Sun Apr 27 08:29:14 2014 -0700
+++ b/srogue/options.c	Wed Apr 30 14:46:30 2014 -0700
@@ -14,14 +14,11 @@
  * See the file LICENSE.TXT for full copyright and licensing information.
  */
 
-#include <termios.h>
 #include <ctype.h>
 #include <string.h>
 #include "rogue.h"
 #include "rogue.ext"
 
-extern struct termios terminal;
-
 /*
  * description of an option and what to do with it
  */
@@ -137,7 +134,7 @@
 		}
 		if (c == -1)
 			continue;
-		else if(c == terminal.c_cc[VERASE])	{	/* process erase char */
+		else if(c == md_erasechar())	{	/* process erase char */
 			if (sp > buf) {
 				reg int i;
 	
@@ -147,7 +144,7 @@
 			}
 			continue;
 		}
-		else if (c == terminal.c_cc[VKILL]) {   /* process kill character */
+		else if (c == md_killchar()) {   /* process kill character */
 			sp = buf;
 			wmove(awin, oy, ox);
 			continue;