Make key_reader build and work

This commit is contained in:
ridiculousfish 2012-05-09 03:30:09 -07:00
parent eca2100312
commit 7cae1ae415
2 changed files with 4 additions and 3 deletions

View file

@ -792,8 +792,8 @@ fish_indent: $(FISH_INDENT_OBJS)
# Neat little program to show output from terminal
#
key_reader: key_reader.o input_common.o common.o env_universal.o env_universal_common.o wutil.o
$(CXX) key_reader.o input_common.o common.o env_universal.o env_universal_common.o wutil.o $(LDFLAGS_FISH) -o $@
key_reader: key_reader.o input_common.o common.o env_universal.o env_universal_common.o wutil.o iothread.o
$(CXX) key_reader.o input_common.o common.o env_universal.o env_universal_common.o wutil.o iothread.o $(LDFLAGS_FISH) -o $@
#

View file

@ -15,6 +15,7 @@
#include <locale.h>
#include <termcap.h>
#include "common.h"
#include "fallback.h"
#include "input_common.h"
@ -36,7 +37,7 @@ int main( int argc, char **argv)
{
static char term_buffer[2048];
char *termtype = getenv ("TERM");
char *tbuff = malloc( sizeof(char)*9999);
char *tbuff = new char[9999];
char *res;
tgetent( term_buffer, termtype );