freeroast 0.1.9

A simple coffee roasting app
Documentation
#include <stdio.h>
#include <ncurses.h>

char get_input(char **args)
{
    char ch;
    WINDOW *window;
    window = initscr();

    if (start_color() < 0) {
        return 1;
    }

    if (init_pair(1, COLOR_YELLOW, COLOR_BLACK) < 0) {
        return 1;
    }

    if (wbkgd(window, COLOR_PAIR(1)) < 0) {
        return 1;
    }

    mvaddstr(10, 30, &args[0]);
    wrefresh(window);

    if (!(ch = wgetch(window))) {
        return 1;
    }

    endwin();
    return ch;
}