27 Commits

Author SHA1 Message Date
32c4139c72 Added check to prevent page down from looping endlessly 2023-04-27 10:03:31 -05:00
249cc3cb24 Added scroll functionality when any key is pressed on the last line 2023-04-26 09:37:56 -05:00
68de7f7337 Added handler functions for right and left arrow keys, that check cursor position before moving the gap 2023-04-25 07:50:51 -05:00
1355c58cf3 Fixed a bug where, if a page ends in a line that just contains the newline character, the page doesn't render correctly after scrolling 2023-04-24 15:34:12 -05:00
d4a7dbb88f Routine changes 2023-04-24 08:03:15 -05:00
315245dd54 Added a window within the stdscr, which is used for printing the text, as well as another 'status window' 2023-04-22 18:37:38 -05:00
d4021068c8 Added 'Delete' key functionality 2023-04-22 14:14:35 -05:00
230d26e411 Fixed bug with creating a new file, and then saving it 2023-04-22 13:31:01 -05:00
f4f19c7c39 Switched to using raw mode, which allows me to capture the 'Ctrl+s' keypress. I have implemented save functionality using this keypress, and implemented functionality to capture Ctrl-C as well. 2023-04-22 10:14:09 -05:00
3b20d6ccf7 Fixed page down support, added page up support 2023-04-21 21:12:35 -05:00
563271d1b2 Coninued working on page overflow 2023-04-21 08:11:55 -05:00
9524ba4df9 Implemented rudimentary 'page down' key support, which moves the cursor to the first character of the next line 2023-04-20 23:54:48 -05:00
4d4f0f16c8 Started working on Down arrow key support 2023-04-20 21:30:29 -05:00
071ddf5ac0 Started implementing overflow and scrolling for files 2023-04-20 14:50:13 -05:00
5414cf41c9 Fixed bug where cursor was positioned to the second character instead of the first, after reading a file 2023-04-19 17:21:57 -05:00
6d50747752 Fixed a bug with moving the cursor to the start of the text, and fixed a bug where the grow method would cause weird anamolies 2023-04-19 17:21:14 -05:00
687453870d Started fixing bug that occures when gap is at the start of the text 2023-04-19 14:27:30 -05:00
2ae0b4b1fe Fixed bug with reading characters from a file 2023-04-19 13:21:56 -05:00
25c1f6a2c1 Started working on file opening support 2023-04-19 08:07:17 -05:00
68305de7f6 Updated .gitignore to exclude object files 2023-04-19 00:23:44 -05:00
bb8917645e Added Makefile 2023-04-19 00:23:22 -05:00
438bd61c0d Added .gitignore 2023-04-19 00:16:47 -05:00
da0f6fdf32 Added code to properly support 'Enter' key, which was being sent as '\r\n' instead of '\n' 2023-04-19 00:16:10 -05:00
f19eb3becc Fixed realloc, and fixed right as well 2023-04-18 09:59:13 -05:00
0d001b550e Fixed left, need to work on grow 2023-04-18 09:14:02 -05:00
102a0ed093 Added methods for delete, started working on left and right arrows 2023-04-18 08:49:32 -05:00
b0add8f26a First commit, need to add more helper methods for buffer (e.g. backspace, insert character, etc.) 2023-04-16 20:14:20 -05:00