diff options
author | kamil <kamil@NetBSD.org> | 2020-11-10 08:49:08 +0000 |
---|---|---|
committer | kamil <kamil@NetBSD.org> | 2020-11-10 08:49:08 +0000 |
commit | 679426dc52b7c5ef9223f9ec7065855f81102c78 (patch) | |
tree | 830c7f343b515a38c4e7237814dfb43cc31a2882 /warp/term.h | |
parent | cd6a6786a83c6ffc71841f4c49e6192f2296b2a1 (diff) | |
download | bsdgames-darwin-679426dc52b7c5ef9223f9ec7065855f81102c78.tar.gz bsdgames-darwin-679426dc52b7c5ef9223f9ec7065855f81102c78.tar.zst bsdgames-darwin-679426dc52b7c5ef9223f9ec7065855f81102c78.zip |
Integrate Warp Kit into the NetBSD build
Fix the build and make it install and run with minimal required changes.
Diffstat (limited to 'warp/term.h')
-rw-r--r-- | warp/term.h | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/warp/term.h b/warp/term.h index 0c13d324..1ae6f164 100644 --- a/warp/term.h +++ b/warp/term.h @@ -12,6 +12,16 @@ * */ +#ifndef TERM_H +#define TERM_H + +#include "util.h" + +/* Compat with old termios. */ +#ifndef ECHO +#define ECHO 8 +#endif + /* warp will still work without the following, but may get ahead at low speed */ #ifdef TIOCOUTQ /* chars left in output queue */ #define output_pending() (ioctl(1, TIOCOUTQ, &iocount),iocount) @@ -110,7 +120,7 @@ EXT char INTRCH INIT('\03'); # endif /* lint */ # else /* RDCHK */ # ifndef O_NDELAY /* assert O_NDELAY */ - ??? PENDING isn't defined correctly in warp.h + ??? PENDING is not defined correctly in warp.h # endif EXT int devtty INIT(0); # ifndef lint @@ -121,7 +131,7 @@ EXT char INTRCH INIT('\03'); # endif /* RDCHK */ # endif /* FIONREAD */ # else /* PENDING */ - ??? warp won't work without PENDING + ??? warp will not work without PENDING # ifndef lint # define input_pending() (nextin!=nextout) # else @@ -149,7 +159,7 @@ EXT char INTRCH INIT('\03'); # endif /* lint */ # else /* RDCHK */ # ifndef O_NDELAY /* assert O_NDELAY */ - ??? PENDING isn't defined correctly in warp.h + ??? PENDING is not defined correctly in warp.h # endif EXT int devtty INIT(0); EXT bool is_input INIT(FALSE); @@ -163,7 +173,7 @@ EXT char INTRCH INIT('\03'); # endif /* RDCHK */ # endif /* FIONREAD */ # else /* PENDING */ - ??? warp won't work without PENDING + ??? warp will not work without PENDING # define read_tty(addr,size) read(0,addr,size) # define input_pending() (FALSE) # endif /* PENDING */ @@ -278,7 +288,6 @@ EXT char KILLCH; /* line delete character */ #define standout() do_tc(SO,1) #define un_standout() do_tc(SE,1) #define up_line() do_tc(UP,1) -#define carriage_return() do_tc(CR,1) #define dingaling() do_tc(VB,1) #else ???????? /* up to you */ @@ -305,4 +314,6 @@ void do_tc(); int comp_tc(); void helper(); void rewrite(); -char cmstore(); +int cmstore(int); + +#endif |