Added input editing and buffer

Left and right arrows for inline editing.
Up arrow to go through history
This commit is contained in:
James Booth
2012-02-26 23:33:14 +00:00
parent 0a45044f1b
commit cc4c7f3e19
10 changed files with 151 additions and 14 deletions

View File

@@ -3,7 +3,7 @@ WARNS = -Werror -Wall -Wextra -Wno-unused-parameter -Wno-unused-but-set-variable
LIBS = -lxml2 -lexpat -lssl -lresolv -lncurses -L ~/lib -lstrophe
CFLAGS = -I ~/include -O3 $(WARNS) $(LIBS)
OBJS = log.o windows.o title_bar.o status_bar.o input_win.o jabber.o \
profanity.o util.o command.o main.o
profanity.o util.o command.o input_buffer.o main.o
profanity: $(OBJS)
$(CC) -o profanity $(OBJS) $(LIBS)
@@ -14,9 +14,10 @@ title_bar.o: windows.h
status_bar.o: windows.h util.h
input_win.o: windows.h
jabber.o: jabber.h log.h windows.h
profanity.o: log.h windows.h jabber.h command.h
profanity.o: log.h windows.h jabber.h command.h input_buffer.h
util.o: util.h
command.o: command.h util.h
command.o: command.h util.h input_buffer.h
input_buffer.o: input_buffer.h
main.o: log.h windows.h profanity.h
.PHONY: clean