Credit project for the class Fortran Programming UJ 2023/2024
This repository contains a credit project for the Fortran Programming class at Jagiellonian University (UJ) for the academic year 2023/2024.
The goal of this project was to create a simple command line based, interactive-ish To-Do List application.
- persistency - tasks are stored in external file, therefore they persists between sessions
- simplicity - there is no unnecessary functions
- modes - there are two modes
- interactive mode - where user can perform actions like:
- attempt to add a new task
- remove an existing task
- move up and down to select task they want to operate on
- edit mode:
- adding new task
- editing an existing task
- interactive mode - where user can perform actions like:
- simple menu and interactions
- to interact with the menu press:
j
- to move downk
- to move upn
- to add new task to the liste
- to edit an existing taskr
- to remove tasks
- to save changes without quittingq
- to save changes and quitw
- to quit without saving
- menu:
-
indicates task that are on the list, but not the one we are currently focused at*
means that we are currently focused at this certain task, and we can perform actions like editing, deletion
- to interact with the menu press:
- Fortran compiler, in this case gfortran
- Access to CLI or Visual Studio Code
- Git installed on your machine
- Clone the repository
git clone https://github.com/toczekmj/FortranProject.git
- Open folder
cd FortranProject
make run
gfortran main.f95 -o todolist
./todolist
- Open Visual Studio Code
- Reveal source control panel
- Click on "Clone repository" button
- Paste following link and press enter
https://github.com/toczekmj/FortranProject.git
- Select location for the repository
- Press on "Yes, I trust the authors"
- Go to Run and Debug section (Ctrl+K, S) and press on run
- In case when something is not working properly in VSCode, make sure that you have installed following extensions:
- C/C++
- Modern Fortran
- Fortran Breakpoint Support
- And also check if GDB is installed properly in your system (on unix based systems execute this command: which gdb)
As for now, there is no support for GDB on arm64 devices, so even tho you may successfuly compile the program using gfortran, there is no way to debug this using GDB. Actually there is one workaround for MacOs, but it requires using quemu and other external programs like lima. You can check it here. It is an answer by Mohamed Ismaiel Ahmed.