Commit Graph

22 Commits

Author SHA1 Message Date
Kartik K. Agaram b70748960e 7763 - baremetal/shell: newline 2021-02-20 23:40:32 -08:00
Kartik K. Agaram 36e70d36e1 7714 2021-02-10 23:01:11 -08:00
Kartik K. Agaram 08c55cb2b7 7713 2021-02-10 22:34:08 -08:00
Kartik K. Agaram c1e841fc2d 7701 2021-02-09 20:53:47 -08:00
Kartik Agaram bfcf5c7252 7698 - starting to test-drive baremetal shell 2021-02-07 23:45:31 -08:00
Kartik Agaram 0be63b75c2 7697 2021-02-07 22:42:33 -08:00
Kartik Agaram 8f34dfd1e0 7693 - baremetal: pass background color everywhere 2021-02-07 15:50:16 -08:00
Kartik Agaram 74f1512ff1 7690
Convert comments about magic constants into metadata.
2021-02-07 00:20:29 -08:00
Kartik Agaram 63be7b7d0d 7548 - baremetal: better cursor management 2021-01-23 08:45:51 -08:00
Kartik Agaram 1b09418c60 7542 - baremetal: support cursor on a grapheme
So far we've drawn a space implicitly at the cursor. Now I allow drawing
an arbitrary grapheme when drawing the cursor. But the caller has to
specify what to draw. (The alternative would be for layer 103 to
track every single grapheme on screen along with its color and any other
future attributes, just to be able to paint and unpaint the background
for a single character.)

I've modified existing helpers for drawing multiple graphemes to always
clear the final cursor position after they finish drawing. That seems
reasonable for terminal-like applications. Applications that need to
control the screen in a more random-access manner will need to track the
grapheme at the cursor for themselves.
2021-01-22 20:57:29 -08:00
Kartik Agaram dbf434f096 7538 - baremetal: screen coords in graphemes 2021-01-22 16:44:23 -08:00
Kartik Agaram 851959ccc6 7534
Don't assume screen dimensions.
2021-01-17 10:43:31 -08:00
Kartik Agaram 9822a2429f 7533
Both issues of commit 7531 fixed.
2021-01-16 20:56:28 -08:00
Kartik Agaram 117a710a9d 7530 - baremetal: print ints to screen 2021-01-16 16:27:58 -08:00
Kartik Agaram 686307abe0 7516 2021-01-13 21:15:24 -08:00
Kartik Agaram ec0d5bb17e 7510 - baremetal: a game of snake 2021-01-13 16:57:04 -08:00
Kartik Agaram 422ebaf88c 7508
This is the right way to be direction-independent. Don't save the cursor
when drawing a single grapheme. Where the next char goes is just a
property of the direction-oriented primitives.
2021-01-13 00:02:35 -08:00
Kartik Agaram 4413168269 7507 - baremetal: drawing text down then right 2021-01-12 23:52:24 -08:00
Kartik Agaram 0d12f6676b 7502 - baremetal text: better interface 2021-01-12 00:32:06 -08:00
Kartik Agaram bb0e67a308 7501 - baremetal: draw text within a rectangle 2021-01-12 00:20:22 -08:00
Kartik Agaram 589eba07e2 7500 - baremetal: bounds-check screen space before drawing 2021-01-12 00:00:20 -08:00
Kartik Agaram ebf912eb7a 7499 2021-01-12 00:00:20 -08:00