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:
parent
de1e0f2759
commit
791df4324f
10 changed files with 34 additions and 115 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue