From 99e3c574a02fdb779e97186119891fbe46390d72 Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Mon, 9 Apr 2018 01:00:54 -0400 Subject: Replace #define with enum or const where possible --- client.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'client.c') diff --git a/client.c b/client.c index 6ad60d7..ef51ae0 100644 --- a/client.c +++ b/client.c @@ -29,8 +29,10 @@ #include "torus.h" -#define ESC (0x1B) -#define DEL (0x7F) +enum { + ESC = 0x1B, + DEL = 0x7F, +}; #define CH_COLOR(ch) (ch & A_BOLD ? COLOR_BRIGHT | ch >> 8 & 0xFF : ch >> 8 & 0xFF) -- cgit 1.4.1 t name='h' onchange='this.form.submit();'> some games for SSH - https://git.causal.agency/play
summary refs log tree commit diff
path: root/2048.c (unfollow)
Commit message (Expand)Author
2026-01-04feat(linux): some patchesLain Iwakura
2022-09-18Make copyrights consistentJune McEnroe
2021-10-17Remove capsicum supportJune McEnroe
2021-10-15Retry getch() after ERRJune McEnroe
2021-10-15Build chroot only on OpenBSDJune McEnroe
2021-09-30Handle KEY_BACKSPACE in freecellJune McEnroe
2021-09-28Add news of freecell mouse support to menuJune McEnroe
2021-09-28Add mouse support to freecellJune McEnroe
2021-09-28Add direct game selection tip to menuJune McEnroe
2021-09-27Extract chroot.tar with -pJune McEnroe
2021-09-26OpenBSD: Copy appropriate files for chrootJune McEnroe
2021-09-26Link with -lncurseswJune McEnroe
2021-09-26OpenBSD: pledge(2) and unveil(2)June McEnroe
2021-04-19Draw foundations in reverse orderJune McEnroe
2021-04-19Only print info atexit without -tJune McEnroe
2021-04-19Only use cells for moveColumnJune McEnroe
2021-04-19Force UTF-8 locale and add to chroot, link to curseswJune McEnroe
2021-04-18Add freecellJune McEnroe
2021-04-18Allow cumulative score gamesJune McEnroe
2021-01-31Check isattyJune McEnroe
2021-01-31Launch game immediately with SSH_ORIGINAL_COMMANDJune McEnroe
2021-01-29Handle getch ERR in menuJune McEnroe
2021-01-29Set process title to chosen gameJune McEnroe
2021-01-29Add pause to snakeJune McEnroe
2021-01-29Add menu to choose 2048 or snakeJune McEnroe
2021-01-29Actually wait for a non-direction keyJune McEnroe
2021-01-29Give the snake a tailJune McEnroe
2021-01-29Don't let the snake snap its own neckJune McEnroe