From fd5afa48338279853b0b40bbe0e4bcfcb626086c Mon Sep 17 00:00:00 2001 From: d6 Date: Sat, 4 Feb 2023 18:16:29 -0500 Subject: [PATCH] fix --- term.c | 4 ++-- term.tal | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/term.c b/term.c index 483354f..fddbeb5 100644 --- a/term.c +++ b/term.c @@ -13,14 +13,14 @@ int main(int argc, char **argv) { int fdm = -1; // allocate file descriptor // allocate a pty, fork, inititialize file descriptor - pid_t pid = forkpty(&fdm, NULL, NULL, NULL); + pid_t pid = forkpty(&fdm, NULL, NULL, NULL); if (pid < 0) { // failure perror("fork failed"); return 1; } else if (pid == 0) { // child setenv("TERM", "ansi", 1); - execlp("bash", "bash", NULL); // exec bash + execlp("bash", "bash", NULL); // exec bash perror("exec bash failed"); } else { // parent struct winsize ws = {23, 80, 8, 12}; // rows, cols, xps, ypx diff --git a/term.tal b/term.tal index 10c87ae..fb35b4d 100644 --- a/term.tal +++ b/term.tal @@ -11,6 +11,7 @@ ( c. etc. ) ( 6. add more ansi control seqs ) ( 7. stop hard coding terminal size in both term.py and term.tal ) +( 8. key repeat - not possible in general though ) ( ANSI sequences ) ( )