diff --git a/src/curses.cpp b/src/curses.cpp index 62f506f..cc96524 100644 --- a/src/curses.cpp +++ b/src/curses.cpp @@ -1,5 +1,5 @@ -#include "curses.h" #include +#include "curses.h" const int Curses::kbd_lines = 12; const int Curses::kbd_columns = 50; @@ -11,7 +11,7 @@ Curses::Curses() { cbreak(); noecho(); kbd = newwin(kbd_lines, kbd_columns, 0, 0); - kbd = newwin(speed_lines, speed_columns, + speed = newwin(speed_lines, speed_columns, kbd_lines+1, 0); } @@ -22,6 +22,8 @@ Curses::~Curses() { } void Curses::print_kbd() { + wprintw(kbd,"%s", L"tuiiaueakeoff>| t|⇑ y|↖ u|↑ i|↗ o|"); + wprintw(kbd,"%s", "tuiiaueakeoff>| t|⇑ y|↖ u|↑ i|↗ o|"); wmove(kbd, 0, 0); waddstr(kbd, " ---------------------"); wmove(kbd, 1, 0); waddstr(kbd, "takeoff>| t|⇑ y|↖ u|↑ i|↗ o|"); wmove(kbd, 2, 0); waddstr(kbd, " |---|---|---|---|---|----"); diff --git a/src/curses.h b/src/curses.h index 559ce16..5260925 100644 --- a/src/curses.h +++ b/src/curses.h @@ -1,5 +1,5 @@ -#ifndef CURSES -#define CURSES +#ifndef CURSES_TEST +#define CURSES_TEST #include diff --git a/src/test.cpp b/src/test.cpp index 9c75f61..6f18229 100644 --- a/src/test.cpp +++ b/src/test.cpp @@ -1,6 +1,8 @@ #include "curses.h" +#include "locale.h" int main() { +setlocale(LC_ALL, ""); Curses term; term.print_kbd(); for(;;) ;