From 9457a74c256bdf090667a5b19238cb5dfd7e031e Mon Sep 17 00:00:00 2001 From: Joursoir Date: Mon, 7 Dec 2020 11:47:44 +0000 Subject: add gui without functionality --- src/client_clui/client.cpp | 35 ----------------------------------- 1 file changed, 35 deletions(-) delete mode 100644 src/client_clui/client.cpp (limited to 'src/client_clui/client.cpp') diff --git a/src/client_clui/client.cpp b/src/client_clui/client.cpp deleted file mode 100644 index 83f8ef0..0000000 --- a/src/client_clui/client.cpp +++ /dev/null @@ -1,35 +0,0 @@ -#include -#include -#include -#include - -#include "../config.hpp" -#include "user.hpp" - -int main(int argc, char *argv[]) -{ - initscr(); - noecho(); - - int rows, columns; - getmaxyx(stdscr, rows, columns); - if(rows != 24 || columns != 80) { - endwin(); - printf("Please use terminal with size 24x80\n"); - return 1; - } - - Client *user = Client::Start(SERVER_IP, SERVER_PORT); - if(!user) { - endwin(); - perror("server"); - return 1; - } - - ChatRoom *room = new ChatRoom(); - user->Run(room); - delete room; - - endwin(); - return 0; -} \ No newline at end of file -- cgit v1.2.3-18-g5258