1
0
mirror of https://gitlab.com/comunic/comunicterm synced 2024-11-16 10:31:06 +00:00
comunicterm/ui_utils.cpp
2020-01-08 20:47:35 +01:00

24 lines
363 B
C++

#include <ui_utils.h>
#include <string>
using namespace std;
void ui_utils::print_base_screen(WINDOW *w)
{
printw("ComunicTerm"); /* Print Hello World */
// Get screen size
int row, col;
getmaxyx(w, row, col);
const string msg = "Light client";
mvprintw(0, (col-static_cast<int>(msg.length())), msg.c_str());
refresh();
}