dvtm

dynamic virtual terminal manager - with my changes
git clone https://pi.duncano.de/git/dvtm.git
Log | Files | Refs | README | LICENSE

commit 1efc4fb7bfa8ca7f2f909aa10edb0fab506b1df1
parent b297ed1648979d9456a1f847737a3ca72a7c420a
Author: Marc Andre Tanner <mat@brain-dump.org>
Date:   Sun, 12 Jun 2011 14:08:09 +0200

Compilation fixes for pdcurses

Note that dvtm's select(2) driven event loop which also checks
stdin doesn't work with pdcurses. To make it functional with
pdcurses we would have to play with nodelay/timeout/getch as
it was done before. See commit e2f747d for the glory details.

Signed-off-by: Marc Andre Tanner <mat@brain-dump.org>

Diffstat:
dvtm.c | 4++++
madtty.c | 7+++++--
2 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/dvtm.c b/dvtm.c @@ -35,6 +35,10 @@ #endif #include "madtty.h" +#ifdef PDCURSES +int ESCDELAY; +#endif + typedef struct { double mfact; int history; diff --git a/madtty.c b/madtty.c @@ -50,9 +50,12 @@ # define NCURSES_ATTR_SHIFT 8 #endif -/* hack for BSD curses */ #ifndef NCURSES_ACS -# define NCURSES_ACS(c) (_acs_map[(unsigned char)(c)]) +# ifdef PDCURSES +# define NCURSES_ACS(c) (acs_map[(unsigned char)(c)]) +# else /* BSD curses */ +# define NCURSES_ACS(c) (_acs_map[(unsigned char)(c)]) +# endif #endif #define IS_CONTROL(ch) !((ch) & 0xffffff60UL)