Skip to content

Commit

Permalink
ignore SIGTSTP
Browse files Browse the repository at this point in the history
  • Loading branch information
freakout42 committed Nov 3, 2024
1 parent 3dffd53 commit 1e2abce
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ help.c: help_c.eng
cp help_c.eng $@

clean:
rm -f *.o core* mex me curkeys.h help.c curkey2 libmex.a
rm -f *.o core* mex me curkeys.h help.c curkey2 libmex.a mex.exe
28 changes: 28 additions & 0 deletions Makefile.ML
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Makefile for MEX static

LDFLAGS=-static
LIBS=-lcurses
OBJ=main.o buffer.o cursor.o display.o files.o line.o random.o search.o term.o window.o word.o help.o

mex: main.o $(OBJ)
$(CC) -o $@ $(LDFLAGS) $(OBJ) /opt/o2/lib/ctypeb.o $(LIBS)
strip $@

$(SRC): ed.h

main.o: main.c curkeys.h
$(CC) $(CFLAGS) -Wno-missing-braces -c main.c

term.o: term.c ed.h
$(CC) $(CFLAGS) -I/usr/include/ncurses -c term.c

curkeys.h: curkeys.c
$(CC) -I/usr/include/ncurses curkeys.c -o curkey2
./curkey2 >$@
rm curkey2

help.c: help_c.eng
cp help_c.eng $@

clean:
rm -f *.o core* mex me curkeys.h help.c curkey2 libmex.a
2 changes: 1 addition & 1 deletion Makefile.UNX
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ help.c: help_c.eng
cp help_c.eng $@

clean:
rm -f *.o *.OBJ core mex me curkeys.h help.c curkey2
rm -f *.o *.OBJ core mex me curkeys.h help.c curkey2 mex.exe
3 changes: 2 additions & 1 deletion ed.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* which were changed to char.
* um: for UN*X System V set the defines V7 ``and'' SYS_V to 1 !!
*/
#define VERSION "6.2"
#define VERSION "6.3"

#if (VT100)
#define V7 1 /* V7 UN*X or Coherent */
Expand Down Expand Up @@ -251,6 +251,7 @@

#if (TERMC & CURSES)
#include <curses.h>
#include <signal.h>
#include <term.h>
#include <termios.h>
#endif
Expand Down
1 change: 1 addition & 0 deletions term.c
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ if (windw1 == NULL) {
#endif
term.t_ncol = columns;
term.t_nrow = lines - 1;
signal(SIGTSTP, SIG_IGN);
tcgetattr (fileno(stdin), &t);
t.c_cc[VINTR] = 0;
t.c_cc[VSUSP] = 0;
Expand Down

0 comments on commit 1e2abce

Please sign in to comment.