Routine changes

master
Aadhavan Srinivasan 2 years ago
parent fb7e58d094
commit 98f063b92a

@ -1,2 +1,2 @@
main: main.c main: main.c
gcc -o main main.c -lncurses gcc -g -o main main.c texted.c -lncurses

@ -1,6 +1,6 @@
#include <ncurses.h> #include <ncurses.h>
#include <menu.h>
#include <string.h> #include <string.h>
#include "texted.h"
void createPanel(WINDOW*,char**); void createPanel(WINDOW*,char**);
void curses_init(); void curses_init();
@ -59,7 +59,7 @@ int maxY(WINDOW* window) {
void curses_init() { void curses_init() {
initscr(); initscr();
curs_set(0); // curs_set(0);
} }
int main(int argc, char** argv) { int main(int argc, char** argv) {
@ -73,7 +73,8 @@ int main(int argc, char** argv) {
createPanel(menuwin,stringArray); createPanel(menuwin,stringArray);
wrefresh(mainwin); wrefresh(mainwin);
wrefresh(menuwin); wrefresh(menuwin);
delwin(menuwin);
run(argv[1],mainwin,argc);
wgetch(mainwin); wgetch(mainwin);
endwin(); endwin();
return 0; return 0;

Loading…
Cancel
Save