aboutsummaryrefslogtreecommitdiffstats
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2023-12-29Allow saving the file with CTRL-S.Rose Hogenson3-1/+29
2023-12-29Support inserting text.Rose Hogenson3-6/+71
2023-12-29Keep track of cursor position.Rose Hogenson2-31/+172
2023-12-29Allow moving the cursor with the arrow keys.Rose Hogenson2-20/+82
2023-12-27Wait for ctrl-q to exit.Rose Hogenson1-9/+26
2023-12-27Add some TODOs for important enhancements.Rose Hogenson1-0/+2
2023-12-27Wait for keypress before exiting.Rose Hogenson1-2/+17
2023-12-27Handle error from putting terminal in raw mode.Rose Hogenson1-1/+6
2023-12-27Print each line separately.Rose Hogenson2-28/+20
Now that the terminal is in raw mode, we need to also include \r after each line.
2023-12-27Put the terminal in raw mode.Rose Hogenson2-11/+56
2023-12-27Rename tiocgwinsz.rs to term.rs.Rose Hogenson2-2/+2
I will be putting more functionality in this file.
2023-12-27Use stdout to get terminal size.Rose Hogenson1-1/+1
2023-12-27Print the first n lines of the file.Rose Hogenson2-6/+85
2023-12-27Remove unnecessary length field.Rose Hogenson1-11/+9
2023-12-27Fix a bug in how unicode is printed.Rose Hogenson2-23/+28
Technically a single character can be split across multiple chunks, so we can just join all the chunks before printing. It's not the most efficient, but this is only for debugging.
2023-12-26Add function to get terminal size.Rose Hogenson2-10/+42
2023-12-26Add the basic rope.Rose Hogenson2-1/+116
2023-12-26Start text editor.Rose Hogenson1-0/+3