mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 05:28:49 +00:00
Make key_reader build and work
This commit is contained in:
parent
eca2100312
commit
7cae1ae415
2 changed files with 4 additions and 3 deletions
|
@ -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 $@
|
||||
|
||||
|
||||
#
|
||||
|
|
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue