diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2021-01-28 21:53:48 -0800 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2021-01-28 21:53:48 -0800 |
| commit | 657330ddd6d7a67e16c198b4e9ad2aac239d4799 (patch) | |
| tree | b3be13e0f3570332e255d8699b8b396a2c9e4d37 | |
| parent | e0af178df1abe3524a6b636405aa140765405fcf (diff) | |
Renamed bterm -> terminal
| -rw-r--r-- | Makefile | 2 | ||||
| -rw-r--r-- | bb.c | 1 | ||||
| -rw-r--r-- | bb.h | 4 | ||||
| -rw-r--r-- | draw.c | 2 | ||||
| -rw-r--r-- | terminal.c (renamed from bterm.c) | 4 | ||||
| -rw-r--r-- | terminal.h (renamed from bterm.h) | 7 |
6 files changed, 11 insertions, 9 deletions
@@ -8,7 +8,7 @@ CWARN=-Wall -Wpedantic -Wextra -Wsign-conversion -Wtype-limits -Wunused-result #CFLAGS += -fsanitize=address -fno-omit-frame-pointer CFLAGS += '-DBB_NAME="$(NAME)"' -CFILES=draw.c bterm.c +CFILES=draw.c terminal.c OBJFILES=$(CFILES:.c=.o) all: $(NAME) @@ -22,6 +22,7 @@ #include "bb.h" #include "draw.h" +#include "terminal.h" #ifndef BB_NAME #define BB_NAME "bb" @@ -8,7 +8,9 @@ #ifndef FILE_BB__H #define FILE_BB__H -#include "bterm.h" +#include <limits.h> + +#include "terminal.h" #include "entry.h" // Macros: @@ -10,9 +10,9 @@ #include <sys/stat.h> #include <time.h> -#include "bterm.h" #include "draw.h" #include "entry.h" +#include "terminal.h" #define E_ISDIR(e) (S_ISDIR(S_ISLNK((e)->info.st_mode) ? (e)->linkedmode : (e)->info.st_mode)) @@ -1,5 +1,5 @@ /* - * bterm.h + * terminal.c * Copyright 2019 Bruce Hill * Released under the MIT License * @@ -12,7 +12,7 @@ #include <time.h> #include <unistd.h> -#include "bterm.h" +#include "terminal.h" typedef struct { int key; @@ -1,5 +1,5 @@ /* - * bterm.h + * terminal.h * Copyright 2019 Bruce Hill * Released under the MIT License * @@ -7,8 +7,8 @@ * terminal escape sequences. */ -#ifndef FILE__BTERM_H -#define FILE__BTERM_H +#ifndef FILE__TERMINAL_H +#define FILE__TERMINAL_H #include <stdio.h> #include <time.h> @@ -17,7 +17,6 @@ // Maximum time in milliseconds between double clicks #define DOUBLECLICK_THRESHOLD 200 - typedef enum { // ASCII chars: KEY_CTRL_AT = 0x00, KEY_CTRL_A, KEY_CTRL_B, KEY_CTRL_C, KEY_CTRL_D, |
