aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* checkpointRaymaekers Luca2025-07-241-0/+3
|
* First pass at preparing for GithubRaymaekers Luca2025-03-1955-1563/+227
|
* AdministritaviaRaymaekers Luca2025-03-1927-1021/+2452
|
* Created interface for unit testing UIRaymaekers Luca2025-03-192-7/+68
|
* Cleanup on box.cRaymaekers Luca2025-03-181-28/+100
|
* Updated box, send and server examples with new codeRaymaekers Luca2025-03-183-77/+141
|
* Added array library for ui implementationRaymaekers Luca2025-03-175-71/+269
|
* Archived wrap and added probe insert textboxRaymaekers Luca2025-03-177-31/+365
|
* Merge branch 'main' of db:chattyRaymaekers Luca2024-11-265-78/+286
|\
| * Added archived code for referenceRaymaekers Luca2024-11-241-0/+163
| |
| * Implement horizontal versus vertical scrolling strategyRaymaekers Luca2024-11-244-78/+123
| |
* | checkpointRaymaekers Luca2024-11-232-0/+215
|/
* Created InputBox widgetRaymaekers Luca2024-11-232-114/+185
|
* Added bug to readmeRaymaekers Luca2024-11-211-0/+4
|
* Fixed bug FormatIndexes going out of boundsRaymaekers Luca2024-11-193-2/+6
|
* Add Tab keybindRaymaekers Luca2024-11-192-4/+27
| | | | | - Do not let chatty send empty messages - Add option to `markdown_to_raw()` to only get length of raw text
* added keyboard.c from termboxRaymaekers Luca2024-11-194-1/+780
|
* Added pasting clipboard on ctrl-yRaymaekers Luca2024-11-184-13/+103
|
* Added markdown support for messagesRaymaekers Luca2024-11-184-219/+461
|
* create archived.md for tasks which are doneRaymaekers Luca2024-11-085-50/+44
|
* Connect BIFD first to avoid errorsRaymaekers Luca2024-11-044-112/+178
|
* Fixed not setting unifd and bifdRaymaekers Luca2024-11-034-59/+62
|
* Add id field to HeaderMessage for simplifyingRaymaekers Luca2024-11-036-420/+478
| | | | - Changed bracket style as well
* Added MakefileRaymaekers Luca2024-11-031-0/+11
|
* Merge branch 'id'Raymaekers Luca2024-11-037-500/+1134
|\
| * Added ID system with 1 and 2-way communicationRaymaekers Luca2024-11-037-500/+1134
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Each client now has an ID that is permanently stored to ID_FILE location. To implement this each client now uses two connections to the server, one for bidirectional communication and one for unidirectional communication. This makes it easier to not receive unexpected message. Also each client and server now has a Client struct that represents a client and a clientsArena associated with it. Minor changes: - Added logging to LOGFILE, that can be turned with LOGGING macro. - Added more error types - Added error handling on server - Added error messages - Added convenience functions - Added disconnectAndNotify() function for convenience - Use recvTextMessageResult as multiple-value-return-type instead of ** - Separated protocol stuff into protocol.h - Added Result types when wanting to return multiple values - Do not allocate arena's with malloc - Added recvAnyMessageType for receiving messages that do not need to be stored - Add UNIFD and BIFD file descriptors for separating requests chatty.c: - Convert ID to string in screen_home() - Removed the fds global variable - Pass fds to threadReconnect - Implement faster sleep with nanosleep(2) - Close file descriptors when failed so we do not have too many file descriptors open server.c: - Send presence messages on disconnect & connect - renamed i to conn
* fix not sending PresenceMessageRaymaekers Luca2024-10-301-4/+14
|
* Add limit_y to tb_printf_wrapRaymaekers Luca2024-10-301-15/+40
| | | | Also skip offset messages.
* Refactor server code into functionsRaymaekers Luca2024-10-302-105/+137
| | | | | | - disconnect(): for disconnecting a client and deinitializing it - sendToOthers(): for sending a message to all other clients - initClient(): for initializing a client
* Added SIGSTOP handling for suspending on ctrl-zRaymaekers Luca2024-10-302-0/+9
|
* Added protocolRaymaekers Luca2024-10-308-549/+766
| | | | | | | | | | | | | | | | | | Use a protocol defined in `README.md` and `chatty.h` for sending messages. Another big change is the clientsArena which now stores metadata for the connection such as the author's name. Misc: - Merged arena.h and common.h into chatty.h - removed all the unused code from arena.h as it was not very useful and would not win me any time. - Added compile_flag.txt - Changed formatting - Added more log messages - Added more asserts - Added bool type via enum
* Use dynamic limits for buffersRaymaekers Luca2024-10-265-108/+154
| | | | | | | | Use arenas where possible to have growable buffers - Use of bufArena in server and client for receiving&sending messages - Use of inputArena in client Also organized code
* Put v2 code in root folderRaymaekers Luca2024-10-2620-0/+0
|
* Moved main() to topRaymaekers Luca2024-10-261-202/+200
|
* Redraw screen after reconnectRaymaekers Luca2024-10-261-20/+29
| | | | | | | | Includes: - Using u32/u8 instead of int/char - Add function prototypes - Use magenta for other users - remove input_len parameter to screen_home
* fixed bug when sending message after disconnectRaymaekers Luca2024-10-262-4/+4
| | | | | This is because for sending, receiving & closing serverfd variable was used instead of `fds[FDS_SERVER].fd`.
* do not allow sending message to disconnected serverRaymaekers Luca2024-10-261-0/+5
|
* Slicker UIRaymaekers Luca2024-10-261-58/+69
| | | | | | - added fg_pfx and bg_pfx for the prefix string in tb_printf_wrap() - removed text_len from tb_printf_wrap() in favor of simple loop - added disconnect popup when the server is not connected
* Reconnnect to server with threadRaymaekers Luca2024-10-262-33/+50
|
* Documentation & choreRaymaekers Luca2024-10-254-22/+31
| | | | | | | Includes: - increase the limit - update with sources - remove arena include in send.c
* Let user quit when reconnectingRaymaekers Luca2024-10-251-23/+32
| | | | | | | Includes: - renamed exit to quit - do not use else if for polling - only display the error message once
* Wrap messages when exceeding available widthRaymaekers Luca2024-10-251-38/+198
| | | | | | | Includes: - Changed fillstr to use wide characters - made the prompt box opaque - More documentation on the code
* fixed bug not allow sending empty messageRaymaekers Luca2024-10-252-0/+3
|
* Bind Ctrl+W to erase word behind cursorRaymaekers Luca2024-10-252-0/+24
| | | | Added keybinds descriptions in the readme.
* Initial draft for v2Raymaekers Luca2024-10-249-0/+4222
| | | | | | This is a rewrite of v1 using arena's as memory allocators. The other great difference is using wide strings by default (wchar_t) because that will be needed in the future to print pretty UIs.
* Archive code into v1/ directoryRaymaekers Luca2024-10-2412-102/+229
| | | | | The code was written too fast and I deemed that it would be better to make a new draft.
* removed malloc & reallocRaymaekers Luca2024-10-212-41/+57
|
* add to readmeRaymaekers Luca2024-10-211-0/+1
|
* Moved common.c to common.hRaymaekers Luca2024-10-214-143/+134
| | | | | - fixed bug(server.c): `on` not being 32 bytes - cleanup
* Add compile_flagsRaymaekers Luca2024-10-212-4/+9
|