mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Bug Fix
- ncurses failed to build on Snow Leopard without this change.
This commit is contained in:
parent
4439c07516
commit
81df2f2b19
1 changed files with 10 additions and 0 deletions
|
@ -28,6 +28,7 @@
|
||||||
//#include <iostream>
|
//#include <iostream>
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
//#include <pwd.h>
|
//#include <pwd.h>
|
||||||
|
//#include <stdio.h>
|
||||||
//#include <stdlib.h>
|
//#include <stdlib.h>
|
||||||
//#include <string.h>
|
//#include <string.h>
|
||||||
#include "Context.h"
|
#include "Context.h"
|
||||||
|
@ -57,9 +58,14 @@ int Context::interactive ()
|
||||||
// throw std::string ("unimplemented Context::interactive");
|
// throw std::string ("unimplemented Context::interactive");
|
||||||
|
|
||||||
// Fake interactive teaser...
|
// Fake interactive teaser...
|
||||||
|
/*
|
||||||
WINDOW* w = initscr ();
|
WINDOW* w = initscr ();
|
||||||
int width = w->_maxx + 1;
|
int width = w->_maxx + 1;
|
||||||
int height = w->_maxy + 1;
|
int height = w->_maxy + 1;
|
||||||
|
*/
|
||||||
|
initscr ();
|
||||||
|
int width = COLS;
|
||||||
|
int height = LINES;
|
||||||
|
|
||||||
(void) nonl ();
|
(void) nonl ();
|
||||||
(void) cbreak ();
|
(void) cbreak ();
|
||||||
|
@ -135,8 +141,12 @@ int Context::getWidth ()
|
||||||
#ifdef HAVE_LIBNCURSES
|
#ifdef HAVE_LIBNCURSES
|
||||||
if (config.get ("curses", true))
|
if (config.get ("curses", true))
|
||||||
{
|
{
|
||||||
|
/*
|
||||||
WINDOW* w = initscr ();
|
WINDOW* w = initscr ();
|
||||||
width = w->_maxx + 1;
|
width = w->_maxx + 1;
|
||||||
|
*/
|
||||||
|
initscr ();
|
||||||
|
width = COLS;
|
||||||
endwin ();
|
endwin ();
|
||||||
|
|
||||||
std::stringstream out;
|
std::stringstream out;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue