Commit Graph

37 Commits

Author SHA1 Message Date
Daniel Jones
7bb7b3deb1 Working on getting scrolling working so that you can read the whole page 2023-10-15 00:23:54 -05:00
Daniel Jones
93eadf68c8 set termion as backend, curses as frontend.
setup for new page turning system to accomodate cursive
2023-10-14 22:06:56 -05:00
Daniel Jones
af933bbc0b Created initial display 2023-10-14 18:23:13 -05:00
dan
84f86e1d77 Fixed stack underflow bug. Must find more elegant solution later. 2023-09-02 15:36:26 -05:00
dan
0c231d8fed - Full Terminal Size now used
- Still working on getting newlines working
2023-09-02 15:21:36 -05:00
Daniel Redd Jones
227b47f4d3 - Added page turning
TODO: add scrolling and newline support
2023-07-27 18:56:14 -05:00
Daniel Redd Jones
8cef3a5c8c - Created library directory with exception check.
- Added page display for TUI
2023-07-27 18:23:41 -05:00
Daniel Redd Jones
68a862cb5a - Added q as quit button 2023-07-24 18:40:33 -05:00
Daniel Redd Jones
3d8bc47cf3 - figured out TUIkit printing 2023-07-24 18:36:08 -05:00
Daniel Jones
2fe2421e6d - Refactored code to return text
- This is to make sending data to the TUI easier
2023-07-20 10:28:40 -05:00
Daniel Redd Jones
305b74abd3 test push 2023-07-19 22:48:51 -05:00
Daniel Jones
a2777e0737 - Updated documentation 2023-06-28 14:10:07 -05:00
Daniel Jones
e3fa7d856f - str_content is now a tuple as required by the epub library update
- changed html_module(str_content); to html_module::main(str_content.0); to fix bug that was created by the update.
2023-06-28 13:15:01 -05:00
Daniel Jones
47cf88ef55 - Can now format HTML
- No longer returns to main.rs. Main function in html_module.rs now reads to console locally.
2023-06-28 12:53:13 -05:00
Daniel Jones
fd9ce23a96 Commit to scraper_framework branch
- changing framework from Soup to Scraper
 - removed ncurses library. Will use different library instead.
2023-06-28 12:16:21 -05:00
Daniel Jones
65b7e5ecc0 Commit to scraper_framework branch
- changing framework from Soup to Scraper
 - removed ncurses library. Will use different library instead.
2023-06-28 12:16:04 -05:00
Daniel Jones
d70f3aa14a added ncurses library, module, and documentation. 2023-05-20 20:03:54 -05:00
Daniel Jones
e5f65f66f9 Page turning 2023-05-20 18:44:13 -05:00
Daniel Redd Jones
7e626d1c29 Added todo to remind myself to switch up the library. For now it is working, but it will not on a future version of Rust. Must find replacement for Soup in the future. 2023-05-19 19:13:38 -05:00
Daniel Redd Jones
31fcab91e5 removed regex library, as I thought I would need it but did not 2023-05-19 18:47:21 -05:00
Daniel Redd Jones
5418a2b7c6 Figured out HTML rendering, backing up just in case if I mess something up in the future. 2023-05-19 18:44:10 -05:00
Daniel Redd Jones
f491225902 Getting error "assertion failed" when running. Backing up to github until I figure something out. 2023-05-19 18:15:48 -05:00
Daniel Jones
14eb1a482e Got the string passed to the HTML Module. Content is <String, Error> so I unwrapped it and saved the value as only a string. Tomorrow I parse the HTML in html_module. 2023-05-18 22:01:14 -05:00
Daniel Jones
e7dfddc8f8 Added HTML framework and module.
Found HTML crate. This crate will allow me to render the HTML syntax to the TUI.
2023-05-15 13:33:14 -05:00
Daniel Jones
0426525804 Page turning
Not working. Calling it a night. Will figure out page turning tomorrow.
2023-05-01 20:35:42 -05:00
Daniel Jones
0dc6e19dd1 grab epub text
Got it to grab the text. It is formatted as HTML so next step is to parse that.
2023-05-01 19:26:22 -05:00
Daniel Jones
383457db62 Added epub functions
Still not properly grabbing the text, but must leave it for now. Uploading to Github for later access.
2023-05-01 15:31:08 -05:00
Daniel Jones
eb76e8a8ca epub function
Decided that I am focusing too widely on too many things. Working on bare functionality before menus or extra features. Erased old code and will work exclusively on epub reading until basic functionality is added.
2023-05-01 11:24:26 -05:00
Daniel Jones
395b1d1ce0 termsize library added
Used termsize to find size of the terminal and display a box properly. Changes depending on size of terminal upon start.
2023-03-18 12:48:14 -05:00
Daniel Jones
776d71b16c Menu improved
Added menu display, with directory contents in box.

Also added different ebook functions to finish later. Will use them once I get to them. Calling it a night, but will add menu selecting and hopefully the ability to read text files tomorrow.
2023-03-17 20:05:02 -05:00
Daniel Jones
617c882b6c added getyxmax
TODO: See why files of type "Unicode text, UTF-8 text" works but "Unicode text, UTF-8 (with BOM) text, with CRLF line terminators" does not.

TODO: add menu to select works, add line numbering, scrolling ability, and bookmarks
2023-03-17 16:27:16 -05:00
Daniel Jones
49e69b0c6f Got addstr to read string variable
This did not display anything when I worked on it this morning. Saving to be safe.
2023-03-17 13:59:57 -05:00
Daniel Jones
cff6deaf6b Added documentation 2023-03-16 22:22:09 -05:00
Daniel Jones
461ca2a884 Update main.rs
Added ncurses function
2023-03-16 21:58:32 -05:00
Daniel Jones
16234e8958 Added ncurses dependency 2023-03-16 21:44:16 -05:00
Daniel Jones
304e5aed6b Added ability to read file by line 2023-03-16 21:10:15 -05:00
Daniel Jones
cddf66d9cf Initial Commit
initial commit
2023-03-16 20:11:57 -05:00