From b59d8f26a91d2271afa9e739217e157f1ec39f24 Mon Sep 17 00:00:00 2001 From: jsteube Date: Fri, 23 Sep 2016 19:50:59 +0200 Subject: [PATCH] Add setup_console() --- src/hashcat.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/hashcat.c b/src/hashcat.c index d381ea331..ea679a344 100644 --- a/src/hashcat.c +++ b/src/hashcat.c @@ -139,16 +139,21 @@ static void setup_umask () umask (077); } -int main (int argc, char **argv) +static void setup_console () { #if defined (_WIN) SetConsoleWindowSize (132); #endif +} +int main (int argc, char **argv) +{ /** * To help users a bit */ + setup_console (); + setup_environment_variables (); setup_umask ();