summary refs log tree commit diff
path: root/fp.c
diff options
context:
space:
mode:
authorNakidai <nakidai@disroot.org>2025-06-12 05:02:06 +0300
committerNakidai <nakidai@disroot.org>2025-06-12 05:02:06 +0300
commitef9729dc7e59370048d59d7c8791a6b562ccd5b4 (patch)
tree1008eb09190787d36d2b24714f1e5561ba4575a0 /fp.c
parentfc1f60f6fc9d541290802990ac638b91f1fdf66d (diff)
downloadfp-ef9729dc7e59370048d59d7c8791a6b562ccd5b4.tar.gz
fp-ef9729dc7e59370048d59d7c8791a6b562ccd5b4.zip
Add handling escape key
Diffstat (limited to 'fp.c')
-rw-r--r--fp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fp.c b/fp.c
index 1ab7026..043b0da 100644
--- a/fp.c
+++ b/fp.c
@@ -153,6 +153,9 @@ int main(int argc, char **argv)
 		{
 		case -1: case 4: case '\n': case '\r':
 			return 0;
+		case 27:
+			ischosen = 0;
+			return 0;
 		case 127:
 		{
 			if (!bufi)