From c907667f3a609e4b265f272005f443c7dffcea41 Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Tue, 30 Jan 2024 08:43:04 -0800 Subject: [PATCH] Improve 2018/poikola/try.sh + format fix README.md --- 2018/poikola/README.md | 2 +- 2018/poikola/try.sh | 11 ++++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/2018/poikola/README.md b/2018/poikola/README.md index c647de8cc..2271a795e 100644 --- a/2018/poikola/README.md +++ b/2018/poikola/README.md @@ -95,7 +95,7 @@ problem. The main reason for the header `unistd.h` is `getdelim(3)` but once I included it I also abused other functions and `#define`s. This header is mutually exclusive -with _-std=c11_. +with `-std=c11`. The program was developed with little-endian machines; I tried to support big-endian too, but this support is somewhat limited. diff --git a/2018/poikola/try.sh b/2018/poikola/try.sh index 734a07eba..9988aea3d 100755 --- a/2018/poikola/try.sh +++ b/2018/poikola/try.sh @@ -15,11 +15,12 @@ make CC="$CC" all >/dev/null || exit 1 # clear screen after compilation so that only the entry is shown clear - -clear -read -r -n 1 -p "Press any key to show code (space = next page, q = quit): " +read -r -n 1 -p "Press any key to show prog.c (space = next page, q = quit): " echo 1>&2 -less -EXF prog.c -read -r -n 1 -p "Press any key to run program: " +less -rEXFK prog.c +echo 1>&2 + +read -r -n 1 -p "Press any key to run: ./prog: " echo 1>&2 ./prog +echo 1>&2