Change some text to better fit my taste
authorLukáš Jiřiště <gymnazium.jiriste@gmail.com>
Fri, 16 Feb 2024 19:59:00 +0000 (20:59 +0100)
committerLukáš Jiřiště <gymnazium.jiriste@gmail.com>
Fri, 16 Feb 2024 19:59:00 +0000 (20:59 +0100)
src/c_addfet.c
src/main.c
src/text.c

index 6ce663b6263e5236f54e53bc90060cc745cc9175..94bcc010d10c68fe474c8ec4c047b1c61c8cd096 100644 (file)
@@ -8,12 +8,12 @@ int   c_addfet(t_input input, t_vec *mosfets)
        if (input.argc == 1 && input.argv[0].type == type)
        {
                add_mosfet(mosfets, input.argv[0].val.type);
-               ft_printf("Index of added FET: %u\n", mosfets->size - 1);
+               ft_printf("Index of added FET:\n\t%u ", mosfets->size - 1);
        }
        else if (input.argc == 2 && input.argv[0].type == type && input.argv[1].type == num)
        {
                i = 0;
-               ft_printf("Index of added FETs:\n\t");
+               ft_printf("Indeces of added FETs:\n\t");
                while (i < input.argv[1].val.num)
                {
                        ft_printf("%u ", mosfets->size);
index 55a773f86c68b9c13aed52d31b003def4c727ed9..9d51dfbc81b3db28315ced5ebd21d85ac4f36ee3 100644 (file)
@@ -237,7 +237,7 @@ int process_input(t_vec *nodes, t_vec *mosfets)
        int                             res;
        static t_input  input = {.command = help, .argc = 0};
 
-       ft_printf("FET_sim>");
+       ft_printf("FET_sim >");
        if (!get_input(&input))
                return (1);
        res = 1;
index 086351d4aa36a3ddf992f0581f0838354764374a..b46ca15ba5aa94b6feabe85c1fd9306d143f7588 100644 (file)
@@ -59,14 +59,13 @@ static const char   g_help_exit_str[] = ""
 static const char      g_general_help_str[] = ""
        "This is a FET_sim - simulator of FET (Field Effect Transistor) logic.\n"
        "Version number: %s"
-       "You can use the following commands:\n"
+       "You can use the following commands:\n\n"
        "next [STEPS] \t\t- advances the simulation\n"
        "draw [IND] \t\t- draws the state of the simulation\n"
        "setnode IND STATE \t- sets the \"set_state\" of the node indexed by IND to STATE\n"
        "addnode [STATE] [NUM] \t- adds new nodes\n"
        "addfet TYPE [NUM] \t- adds new FETs\n"
-       "bind NODE FET TERMINAL \t- binds node indexed by NODE to TERMINAL\n \
-               \t\t\t  of transistor indexed by FET\n"
+       "bind NODE FET TERMINAL \t- binds node indexed by NODE to TERMINAL of transistor indexed by FET\n"
        "help [COMMAND] \t\t- shows this help or help for COMMAND\n"
        "exit [...] \t\t- exits this program\n\n";