Commit Graph

892 Commits

Author SHA1 Message Date
19073cb56c improve code to move rightwards in cursor.sml (making it clearer with comments), and improve code to draw cursor at newline in text=builder.sml 2024-10-17 08:40:28 +01:00
0299a9e6b2 draw cursor at newline linebreaks (only \n though and not \r\n) 2024-10-17 06:25:43 +01:00
8fb362ba8b handle \r\n pair in 'viL' function 2024-10-17 04:03:45 +01:00
766ab6787c in viL function, use 'cursorIdx + 1' instead of 'bufferIdx + ...' because what we want is to increment the cursor by one index, rather than to move the cursor to the end of the hd 2024-10-17 03:17:57 +01:00
428e5f2ecd complete implementation of rightwards navigation (viL) 2024-10-17 02:57:26 +01:00
21652a5381 in TextBuilder, forgot to build cursor when cursorIdx is over space, so now we build cursor when cursorIdx is over space 2024-10-17 02:14:09 +01:00
c77777cc09 add CHAR_EVENT message type (next is to handle hjkl navigation) 2024-10-17 01:38:31 +01:00
ce23e50c8d scaffolding for char callback 2024-10-17 01:20:48 +01:00
ed33cf97a4 receive new version of brolib, which has new goToIdx function which will be useful for hjkl navigation 2024-10-10 22:58:05 +01:00
e7f20a5c7f undo hardcoded parameter for visual testing purposes 2024-10-09 12:43:42 +01:00
6344dca6cb done fiddling with cursor; looks fine now 2024-10-09 12:42:07 +01:00
306d693877 have cursor drawn now, but it is not appropriate size for character so have to fix that next 2024-10-09 12:05:40 +01:00
5cc4357cc7 progress drawing cursor 2024-10-09 11:59:41 +01:00
2afc54abc5 additional preparation for drawing cursor (next, just need to send cursor vector) 2024-10-09 11:36:05 +01:00
9d7d00e8d1 add cursor buffer and cursor program to imperative shell 2024-10-09 11:22:39 +01:00
418adc4502 add cursorIdx to app type in fcore 2024-10-09 10:59:32 +01:00
cfaa66bc0b begin preparation for drawing cursor 2024-10-09 10:53:00 +01:00
fc1d08f364 receive latest commit of cozette-sml which fixes position of _underscore and backtick, which were swapped with each other 2024-10-09 01:25:38 +01:00
bfc5a3914c hardcode more pleasant (in my opinion) colour scheme for the moment 2024-10-09 01:23:26 +01:00
1ae15e5585 expand comment to reflect a bit of planning 2024-10-09 00:02:12 +01:00
6e4cc9acff a bit of refactoring 2024-10-08 08:53:43 +01:00
68a1787958 done scaffolding cml and adding resize functionality 2024-10-06 10:23:07 +01:00
b95fc48252 scaffolding for concurrent ml 2024-10-06 09:32:56 +01:00
6766fd1485 a bit of scaffolding to prepare for adding resize callback + message types 2024-10-06 08:18:24 +01:00
c5efc4640f return tuple from function 'startBuildTextLineGap' as function to move LineGap, used in 'startBuildTextLineGap' optimises nodes for better performance on subsequent operations 2024-10-05 23:27:25 +01:00
d2b8f713d3 implement functionality to start building string vector from requested line 2024-10-05 23:16:32 +01:00
12caf4df89 pull new brolib commit, which contains function to go to specific line 2024-10-05 23:02:25 +01:00
3f2f135a36 move LineGap to start after loading file in shell.sml, and fix wrong parameter passed in mutually recursive function, in buffer.sml 2024-10-05 15:07:23 +01:00
135ec2e3a6 update brolib subnodule, so we gain access to LineGap.goToStart function 2024-10-05 14:21:51 +01:00
e64b7418ae use LineGap.append in shell/shell.sml 2024-10-05 12:56:23 +01:00
6ac3525192 pull in new version of line_gap.sml, which has a new append function as well 2024-10-05 12:44:37 +01:00
2f0630dd88 draw super basic text to screen 2024-10-05 02:03:17 +01:00
5cbadca309 update brolib submodule 2024-10-05 01:00:46 +01:00
4586135d18 done for the moment with text rendering 2024-10-05 00:17:11 +01:00
de70d31ee1 progress adding function to draw text 2024-10-04 23:23:25 +01:00
ff8d911010 add dependencies to .mlb file 2024-10-04 15:08:47 +01:00
e05f7a383e add a couple of libraries 2024-10-04 15:03:47 +01:00
c5913c5ccb amend compiler error, and leave a couple of comments about drawText function 2024-10-03 07:28:58 +01:00
e6298e7b61 initialise text vertex buffer and text program in gl-draw.sml, and add functions to draw 2024-10-02 22:09:22 +01:00
eb0ca122d6 add draw module (very incomplete) 2024-10-01 08:25:12 +01:00
ae8005dceb add shader strings for open gl 2024-09-30 15:46:19 +01:00
c37c8d60e3 init 2024-09-30 13:43:43 +01:00