Lukáš Jiřiště [Mon, 4 Mar 2024 20:54:55 +0000 (21:54 +0100)]
Add the bare bones of the new input system
The system now returns what is returned and handles arrows.
Backspace, up and down arrows and other functionality handling is to be
yet implemented as well as the whole "schema" mode.
Lukáš Jiřiště [Sun, 3 Mar 2024 10:57:51 +0000 (11:57 +0100)]
Add non-canonical mode to the sim
I want vim-esque modes to switch between schematics and commands.
This is the first step, but it makes FET_sim unsuable as it is now,
because input is not echoed back - one does not see what one enters.
Function get_next_line is not really suitable for non-canonical mode,
so an alternative (capable of parsing single char input, arrow keys
etc.) needs to be implemented.
Lukáš Jiřiště [Fri, 16 Feb 2024 23:13:44 +0000 (00:13 +0100)]
Update Libft and use its feature to clean after gnl
Function get_next_line does not free all memory when reading from stdin
when it doesn't contain end of file. The new version of Libft makes it
possible to free the memory.
Lukáš Jiřiště [Fri, 16 Feb 2024 16:34:45 +0000 (17:34 +0100)]
Revert "Change t_mosfet to remember node id instead of ptr"
This reverts commit d03a1205f99244550c784b4c8c2694ae643f0278.
The commit was not thought through as it should. In addition it contains
some minor changes that should be recommited - that's why I should do
small commits that tend to a single problem/feature.
Lukáš Jiřiště [Sun, 4 Feb 2024 13:01:48 +0000 (14:01 +0100)]
Change t_mosfet to remember node id instead of ptr
This prevents looking for node id when drawing.
Some changes were present when I started this change. I can't really
tell, what they were, but from the diffs it looks like just 2 or 3 minor
cosmetic changes. Sorry.
Lukáš Jiřiště [Sun, 14 Jan 2024 16:42:57 +0000 (17:42 +0100)]
Add Libft/Makefile as dependency for %.c compilation
Add Libft/Makefile as an order-only-prerequisite for %.c files so that
after cloning the repository the Libft submodule is downloaded. This is
needed because without the Libft headers some files cannot be compiled.
Lukáš Jiřiště [Sun, 14 Jan 2024 16:34:41 +0000 (17:34 +0100)]
Add basic commands and refactor the code
Implement parsing of basic commands (help, next, add...)
-Mostly (?) as wrapper around function from previous commit
-It should be possible to do it in a much better way
Give the project some structure
-split main.c
-create src and inc directories
Lukáš Jiřiště [Sat, 13 Jan 2024 11:57:51 +0000 (12:57 +0100)]
Add TODO text file
The TODO list is quite short and not detailed. But better have it when it
is not needed yet than not have it when ideas are abundant. The
maintanance of TODO is so low it is worth adding.
Lukáš Jiřiště [Sat, 13 Jan 2024 10:55:36 +0000 (11:55 +0100)]
Start this project for simulating FET based logic
Add a small project capable(?) of simulating FET logic. Implement basic
structs and logic for the simulation.
Implement depicting of the simulation state.
Add submodule Libft for use in place of (most of) standard library.
- I develop this project for other reasons.
- This is an added challenge for learning's sake.
Add basics of project management (Makefile, .gitignore).