Switch to termlib.c
This code appears to be a more complete implementation of the terminal.
After this CL, vim seems to fully work.
Change-Id: I17d885e144c4ba2ea949f73db39243c54651aef4
diff --git a/BUILD.gn b/BUILD.gn
index 1d1484f..8d109c7 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -5,6 +5,10 @@
config("vim_config") {
cflags = [
"-Wno-unused-function",
+ "-Wno-shift-op-parentheses",
+ "-Wno-dangling-else",
+ "-Wno-implicit-function-declaration",
+ "-Wno-int-to-pointer-cast",
]
}
@@ -85,6 +89,7 @@
"src/structs.h",
"src/syntax.c",
"src/tag.c",
+ "src/termlib.c",
"src/term.c",
"src/term.h",
"src/ui.c",
diff --git a/src/auto/config.h b/src/auto/config.h
index 3939044..aae7e58 100644
--- a/src/auto/config.h
+++ b/src/auto/config.h
@@ -11,16 +11,16 @@
/* #undef HAVE_X11 */
/* Define when terminfo support found */
-#define TERMINFO 1
+/* #undef TERMINFO */
/* Define when termcap.h contains ospeed */
-#define HAVE_OSPEED 1
+/* #undef HAVE_OSPEED */
/* Define when ospeed can be extern */
/* #undef OSPEED_EXTERN */
/* Define when termcap.h contains UP, BC and PC */
-#define HAVE_UP_BC_PC 1
+/* #undef HAVE_UP_BC_PC */
/* Define when UP, BC and PC can be extern */
/* #undef UP_BC_PC_EXTERN */
@@ -207,7 +207,7 @@
/* #undef HAVE_SYSCTL */
#define HAVE_SYSINFO 1
#define HAVE_SYSINFO_MEM_UNIT 1
-/* #undef HAVE_TGETENT */
+#define HAVE_TGETENT 1
#define HAVE_TOWLOWER 1
#define HAVE_TOWUPPER 1
#define HAVE_ISWUPPER 1
diff --git a/src/os_fuchsia.c b/src/os_fuchsia.c
index 933b337..2caf690 100644
--- a/src/os_fuchsia.c
+++ b/src/os_fuchsia.c
@@ -29,12 +29,6 @@
}
void
-term_set_winsize(int width, int height)
-{
- // TODO(abarth): Implement.
-}
-
- void
mch_settmode(int tmode)
{
// TODO(abarth): Implement.
diff --git a/src/termlib.c b/src/termlib.c
index fee14ae..f1baa0a 100644
--- a/src/termlib.c
+++ b/src/termlib.c
@@ -13,7 +13,7 @@
#include "vim.h"
#include "termlib.pro"
-#if !defined(AMIGA) && !defined(VMS) && !defined(MACOS)
+#if !defined(AMIGA) && !defined(VMS) && !defined(MACOS) && !defined(__Fuchsia__)
# include <sgtty.h>
#endif