1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-27 05:10:36 +00:00
freebsd-ports/games/freebsd-games/files/patch-snake_snake_move.c
Juergen Lock 805f53212b Convert freebsd-games to use termios.h instead of sgtty.h
PR:		ports/110731
Submitted by:	Alex Kozlov <spam@rm-rf.kiev.ua>
Approved by:	miwi (mentor)
2007-03-23 23:02:33 +00:00

25 lines
555 B
C

Index: snake/snake/move.c
@@ -677,10 +674,10 @@
gtty(0, &orig);
new=orig;
- new.sg_flags &= ~(ECHO|CRMOD|ALLDELAY|XTABS);
- new.sg_flags |= CBREAK;
+ new.c_lflag &= ~(ECHO|ICRNL|OXTABS);
+ new.c_lflag &= ~ICANON;
signal(SIGINT,stop);
- ospeed = orig.sg_ospeed;
+ ospeed = cfgetospeed(&orig);
#ifdef TIOCGLTC
ioctl(0, TIOCGLTC, &olttyc);
nlttyc = olttyc;
@@ -689,7 +686,7 @@
#endif
raw();
- if ((orig.sg_flags & XTABS) == XTABS) TA=0;
+ if ((orig.c_lflag & OXTABS) == OXTABS) TA=0;
putpad(KS);
putpad(TI);
point(&cursor,0,LINES-1);