I've been working on a text editor lately. (You might have seen me asking questions about it.)
link: https://github.com/michael0x18/cedit
Currently, I'm working on scrolling/cursor moving.
Specifically, I'm having trouble with the following parts:
Moving the cursor one row up or down
Scrolling the screen one row up or down.
I have a variable, scr_offset, which points to the start of the screen (the first character displayed).
Could someone take a look at the code and give me some tips/pointers? no pun intended
link: https://github.com/michael0x18/cedit
Currently, I'm working on scrolling/cursor moving.
Specifically, I'm having trouble with the following parts:
Moving the cursor one row up or down
Scrolling the screen one row up or down.
I have a variable, scr_offset, which points to the start of the screen (the first character displayed).
Could someone take a look at the code and give me some tips/pointers? no pun intended