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.
This commit is contained in:
John "Elwin" Edwards 2014-04-30 14:46:30 -07:00
parent de1e0f2759
commit 791df4324f
10 changed files with 34 additions and 115 deletions

View file

@ -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 @@ WINDOW *awin;
}
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 @@ WINDOW *awin;
}
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;