From: Lukáš Jiřiště Date: Fri, 16 Feb 2024 19:59:00 +0000 (+0100) Subject: Change some text to better fit my taste X-Git-Url: https://git.ljiriste.work/?a=commitdiff_plain;h=eab4df5381c3d878ef9c8d2b274923d3c2f4960d;p=FET_sim.git Change some text to better fit my taste --- diff --git a/src/c_addfet.c b/src/c_addfet.c index 6ce663b..94bcc01 100644 --- a/src/c_addfet.c +++ b/src/c_addfet.c @@ -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); diff --git a/src/main.c b/src/main.c index 55a773f..9d51dfb 100644 --- a/src/main.c +++ b/src/main.c @@ -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; diff --git a/src/text.c b/src/text.c index 086351d..b46ca15 100644 --- a/src/text.c +++ b/src/text.c @@ -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";