Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
CC = cc
CFLAGS = -I./src/quickjs -Wall -O2 -DCONFIG_VERSION=\"2020-11-08\" -D_GNU_SOURCE
LDFLAGS = -lm -ldl -lreadline -lncurses
CFLAGS = -I./src/quickjs -Wall -O2 -DCONFIG_VERSION=\"2020-11-08\" -D_GNU_SOURCE -I$(shell brew --prefix readline)/include
LDFLAGS = -lm -ldl -lreadline -lncurses -L$(shell brew --prefix readline)/lib

# core sources
SRC = src/main.c \
Expand Down Expand Up @@ -37,4 +37,4 @@ ifeq ($(NEED_SETCAP),yes)
endif

clean:
rm -f $(OBJ) bin/jssh
rm -f $(OBJ) bin/jssh
4 changes: 2 additions & 2 deletions src/utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#include "sys.h"
#include "env.h"
#include "utils.h"

#include <ctype.h>
static int g_color_mode = 8; // 8, 256, or 16777216 (truecolor)
int js_lib_count = 0; // Pure JS libs counter

Expand Down Expand Up @@ -484,7 +484,7 @@ void jssh_redisplay(void) {
char *hl = highlight_line(rl_line_buffer);
const char *line = hl ? hl : rl_line_buffer;

fputs(rl_display_prompt, stdout);
fputs(rl_prompt, stdout);
fputs(line, stdout);

prediction_t pred = jssh_predict(rl_line_buffer, rl_point);
Expand Down