Commit Graph
97 Commits
Author SHA1 Message Date
danemacfadden 0b6aa705ee Test gitea push 2 2026-11-06 21:10:03 -06:00
danemacfadden 827360f899 Test gitea push 2026-11-06 21:08:41 -06:00
danemacfadden 6de7b5b67e Added comments and removed unnecessary code 2026-10-19 21:55:32 -06:00
danemacfadden 0c825800b3 Changed context declaration to properly use pointers for mutexes and other members 2026-10-19 21:52:54 -06:00
danemacfadden 863c6e28d0 Removed AI slop logging test 2026-10-19 21:07:48 -06:00
danemacfadden 370a1b7f80 Protected modifications of nc with render mutex to avoid messages printing in the incorrect order 2026-10-18 13:50:37 -06:00
danemacfadden 190cd7feac Fixed a memory leak in the output thread function by moving the msg malloc after where the thread waits for something to print. If the thread gets cancelled while waiting on this cv, msg never gets properly freed. 2026-10-12 20:20:50 -06:00
danemacfadden 6a430b5dba added and initialized mutex for saved message list 2026-09-30 20:19:51 -06:00
danemacfadden 83e54e2229 Removed output.txt 2026-09-26 13:31:56 -06:00
danemacfadden 78ef3f1015 Remove .o files from remote tracking 2026-09-26 13:31:25 -06:00
danemacfadden 5d7e2baebd merge fix 2026-09-26 13:22:20 -06:00
danemacfadden cc793e134a Added list to store history of messages. This is done to address a memory leak. Each thread allocates another 512 bytes and never frees it, but the program breaks if it is freed. Storing a copy of the messages in this list will allow each message stored to be trimmed to its actual size and not 512 bytes, and then the original message can be freed. At the end of execution, the list can be freed. 2026-09-26 13:22:20 -06:00
Dane MacFaddenandGitHub d9527bacc7 Added missing header file 2026-04-29 12:57:33 -06:00
danemacfadden a5867c49d1 removed global variables and passed them to threads as arguments instead 2025-08-28 12:04:57 -06:00
danemacfadden 04b77a1cfe merge 2025-08-27 18:16:59 -06:00
danemacfadden 9f4441ae59 moved all messages to receivelist rather than just ones received 2025-08-27 18:16:59 -06:00
Dane MacFaddenandGitHub eb5d772908 Update README.md 2025-08-26 14:48:27 -06:00
danemacfadden 2263e4f346 made messages appear top down 2025-08-26 13:33:48 -06:00
danemacfadden d2d5aa9138 fixed visual bug 2025-08-25 13:18:48 -06:00
danemacfadden e15eb3e129 fixed segfault from not joining thread 2025-08-25 12:31:00 -06:00
danemacfadden e721165090 added ability to take in input 2025-08-23 14:31:30 -06:00
danemacfadden f9e7cf6b46 got input message printed 2025-08-17 23:57:37 -06:00
danemacfadden 2e6b481343 change makefile to include correct libs 2025-08-15 00:37:55 -06:00
danemacfadden 37f5823c41 nc setup 2025-08-14 13:34:20 -06:00
danemacfadden 04cfa47057 added notcurses, beginning to convert 2025-08-14 13:08:02 -06:00
danemacfadden 823e5b5455 update readme 2025-08-12 12:03:30 -06:00
danemacfadden 090a300c8a increased message size 2025-08-10 22:50:14 -06:00
danemacfadden 191f50225f fixed bug where user's text would clear upon receiving message, even without pressing send 2025-08-10 22:45:36 -06:00
danemacfadden d6d320eece minor bug fix 2025-08-10 21:10:33 -06:00
danemacfadden bd7858cca0 managed to get ncurses to behave in threads 2025-08-10 21:01:21 -06:00
danemacfadden 5595bf640e added another window for chat log 2025-08-10 14:16:55 -06:00
danemacfadden 17687e3d13 fixed bug with /c command 2025-08-10 00:03:01 -06:00
danemacfadden 7ff2842d89 added fourth thread for outputting received messages 2025-08-09 23:59:50 -06:00
danemacfadden 1c904f42c9 added third thread 2025-08-09 23:08:19 -06:00
danemacfadden e62a549a92 readd input thread 2025-08-09 16:50:44 -06:00
danemacfadden de6c8d8ed1 rebase 2025-08-07 23:41:39 -06:00
danemacfadden 73193c93d9 added command to close connection between users 2025-08-07 16:59:26 -06:00
danemacfadden 71835bf84a attempted to add commands 2025-08-07 12:05:08 -06:00
danemacfadden 4fff0db858 added chat log that shows both sides' messages 2025-08-06 19:37:20 -06:00
danemacfadden c20d20fa7e bug fixes and made messages display sender 2025-08-06 13:30:23 -06:00
danemacfadden 3552cfc8ac added chat history 2025-08-05 23:48:18 -06:00
danemacfadden 55d651e3e5 merge fix 2025-08-05 16:47:41 -06:00
Dane MacFadden 3e408b903f merge fix 2025-08-05 16:43:40 -06:00
danemacfadden f33a2a6dbd update Makefile and fix minor bugs 2025-08-05 14:31:01 -06:00
danemacfadden 2fd3f1c81f initial ncurses stuff 2025-08-05 14:08:22 -06:00
Dane MacFadden 6a9f876ccd better error checking 2025-07-29 00:45:06 -06:00
danemacfadden 49bdf4f568 fix return value 2025-07-28 13:00:19 -06:00
danemacfadden 207c7a2919 got two way communication 2025-07-28 00:48:22 -06:00
danemacfadden d297356eb3 got sending working but only one way? 2025-07-28 00:43:22 -06:00
danemacfadden 8df5e58f9a fix free issue in ListRemove 2025-07-28 00:19:22 -06:00