Pequeños cambios en la inicialización

This commit is contained in:
Somebody Master 2020-10-24 01:51:46 +02:00
parent 5cb135a0e2
commit deaea1a950
Signed by: somebody_master
GPG Key ID: 78315CFDF0B25505
2 changed files with 2 additions and 2 deletions

View File

@ -42,6 +42,8 @@ void showMenu(vector<string> *menu_elems, const int8_t *num_menu,
void showMenu(vector<string> *menu_elems, const int8_t *num_menu); void showMenu(vector<string> *menu_elems, const int8_t *num_menu);
int main(int argc, char *argv[]) { int main(int argc, char *argv[]) {
locale::global(locale("es_ES.utf8"));
if (ui::initUI(&MENU_PRINCIPAL, &MENU_ERROR) != 0) { if (ui::initUI(&MENU_PRINCIPAL, &MENU_ERROR) != 0) {
return -1; return -1;
} }

View File

@ -1,6 +1,5 @@
#include "ui.hpp" #include "ui.hpp"
#include "configFile.hpp" #include "configFile.hpp"
#include <locale>
using namespace std; using namespace std;
@ -13,7 +12,6 @@ bool ui::g_mensaje = false;
int8_t ui::initUI(const int8_t *menu_principal, const int8_t *menu_error) { int8_t ui::initUI(const int8_t *menu_principal, const int8_t *menu_error) {
/*TODO hacer que la interfaz lea la localización*/ /*TODO hacer que la interfaz lea la localización*/
locale::global(locale("es_ES.utf8"));
initscr(); initscr();
noecho(); noecho();
cbreak(); cbreak();