projects
/
unix-history
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
BSD 4_1c_2 release
[unix-history]
/
usr
/
src
/
usr.lib
/
libcurses
/
tstp.c
# include <signal.h>
# ifdef SIGTSTP
# include
"curses.ext"
/*
* handle stop and start signals
*
* 3/5/81 (Berkeley) @(#)tstp.c 1.1
*/
tstp
() {
SGTTY tty
;
# ifdef DEBUG
if
(
outf
)
fflush
(
outf
);
# endif
tty
=
_tty
;
mvcur
(
0
,
COLS
-
1
,
LINES
-
1
,
0
);
endwin
();
fflush
(
stdout
);
kill
(
0
,
SIGTSTP
);
signal
(
SIGTSTP
,
tstp
);
_tty
=
tty
;
stty
(
_tty_ch
, &
_tty
);
wrefresh
(
curscr
);
}
# endif