Bug fix 2001/ctk and alt code added
Fixed bug where if one does not hit 'q' it would mess up the terminal on exit. I think (but I'm also distracted) this happened if you crashed as well. Now if you kill the game (ctrl-c for instance), you crash or you quit with 'q' it should still be a sane terminal. The alt code adds (it does not replace) vi(m) movement keys: h for left, l for right and k for straight. Format/typo check README.md file.
This commit is contained in:
1 parent
be64048e3d
commit
b127660a5c
4 files changed
+44
-22
No files matched your search
+5
-2
@@ -114,8 +114,8 @@ OBJ= ${PROG}.o
|
||||
DATA=
|
||||
TARGET= ${PROG}
|
||||
#
|
||||
ALT_OBJ=
|
||||
ALT_TARGET=
|
||||
ALT_OBJ= ${PROG}.alt.o
|
||||
ALT_TARGET= ${PROG}.alt
|
||||
|
||||
|
||||
#################
|
||||
@@ -138,6 +138,9 @@ ${PROG}: ${PROG}.c
|
||||
alt: data ${ALT_TARGET}
|
||||
@${TRUE}
|
||||
|
||||
${PROG}.alt: ${PROG}.alt.c
|
||||
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
|
||||
|
||||
# data files
|
||||
#
|
||||
data: ${DATA}
|
||||
|
||||
Reference in new issue
Block a user