X-Git-Url: https://plomlompom.com/repos/foo.html?a=blobdiff_plain;ds=sidebyside;f=src%2Fclient%2Fmain.c;h=c40d7451e2467fa1281a42da461e9575fbab5342;hb=c1c88f66166ed26d0bd346570c37f006e3c8364b;hp=9c6a72ac3f19a3c8942d2c89a68955b703935ee7;hpb=1cb57a35a3b3cc4ec8870531ca254a655c0bdda2;p=plomrogue
diff --git a/src/client/main.c b/src/client/main.c
index 9c6a72a..c40d745 100644
--- a/src/client/main.c
+++ b/src/client/main.c
@@ -1,8 +1,13 @@
-/* main.c */
+/* main.c
+ *
+ * This file is part of PlomRogue. PlomRogue is licensed under the GPL version 3
+ * or any later version. For details on its copyright, license, and warranties,
+ * see the file NOTICE in the root directory of the PlomRogue source package.
+ */
#define _POSIX_C_SOURCE 1 /* sigaction, sigaction() */
#define _DARWIN_C_SOURCE 1 /* SIGWINCH on OS X */
-#include /* keypad() */
+#include /* keypad(), start_color() */
#include /* SIGWINCH, sigaction, sigaction() */
#include /* NULL */
#include /* exit() */
@@ -28,7 +33,7 @@ int main(int argc, char * argv[])
/* Declare hard-coded paths and values here. */
world.path_commands = "confclient/commands";
world.path_interface = "confclient/interface_conf";
- world.winDB.legal_ids = "012ciklm";
+ world.winDB.legal_ids = "012cilms";
char * path_server_in = "server/in";
char * path_server_out = "server/out";
@@ -44,13 +49,13 @@ int main(int argc, char * argv[])
/* Initialize the whole interface. */
world.winDB.t_screen = initscr();
+ start_color();
set_cleanup_flag(CLEANUP_NCURSES);
noecho();
curs_set(0);
keypad(world.winDB.t_screen, TRUE);
init_command_db(); /* The command DB needs to be initialized before */
load_interface_conf(); /* the interface, whose keybindings depend on it. */
- world.focus_each_turn = 1;
/* Set handler for terminal window resizing. */
struct sigaction act;