about summary refs log tree commit diff stats
path: root/baremetal/501draw-text.mu
Commit message (Collapse)AuthorAgeFilesLines
* 7842 - new directory organizationKartik K. Agaram2021-03-031-466/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Baremetal is now the default build target and therefore has its sources at the top-level. Baremetal programs build using the phase-2 Mu toolchain that requires a Linux kernel. This phase-2 codebase which used to be at the top-level is now under the linux/ directory. Finally, the phase-2 toolchain, while self-hosting, has a way to bootstrap from a C implementation, which is now stored in linux/bootstrap. The bootstrap C implementation uses some literate programming tools that are now in linux/bootstrap/tools. So the whole thing has gotten inverted. Each directory should build one artifact and include the main sources (along with standard library). Tools used for building it are relegated to sub-directories, even though those tools are often useful in their own right, and have had lots of interesting programs written using them. A couple of things have gotten dropped in this process: - I had old ways to run on just a Linux kernel, or with a Soso kernel. No more. - I had some old tooling for running a single test at the cursor. I haven't used that lately. Maybe I'll bring it back one day. The reorg isn't done yet. Still to do: - redo documentation everywhere. All the README files, all other markdown, particularly vocabulary.md. - clean up how-to-run comments at the start of programs everywhere - rethink what to do with the html/ directory. Do we even want to keep supporting it? In spite of these shortcomings, all the scripts at the top-level, linux/ and linux/bootstrap are working. The names of the scripts also feel reasonable. This is a good milestone to take stock at.
* 7793 - baremetal/shell: menuKartik K. Agaram2021-02-221-3/+3
|
* 7788Kartik K. Agaram2021-02-221-0/+19
|
* 7767 - baremetal/shell: skeleton replKartik K. Agaram2021-02-211-2/+40
| | | | Prints a fixed value for now, regardless of what is typed.
* 7766Kartik K. Agaram2021-02-211-115/+4
|
* 7763 - baremetal/shell: newlineKartik K. Agaram2021-02-201-33/+27
|
* 7714Kartik K. Agaram2021-02-101-0/+8
|
* 7713Kartik K. Agaram2021-02-101-0/+6
|
* 7701Kartik K. Agaram2021-02-091-4/+4
|
* 7698 - starting to test-drive baremetal shellKartik Agaram2021-02-071-0/+11
|
* 7697Kartik Agaram2021-02-071-4/+6
|
* 7693 - baremetal: pass background color everywhereKartik Agaram2021-02-071-42/+42
|
* 7690Kartik Agaram2021-02-071-20/+20
| | | | Convert comments about magic constants into metadata.
* 7548 - baremetal: better cursor managementKartik Agaram2021-01-231-22/+11
|
* 7542 - baremetal: support cursor on a graphemeKartik Agaram2021-01-221-11/+22
| | | | | | | | | | | | | | | 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.
* 7538 - baremetal: screen coords in graphemesKartik Agaram2021-01-221-34/+34
|
* 7534Kartik Agaram2021-01-171-22/+46
| | | | Don't assume screen dimensions.
* 7533Kartik Agaram2021-01-161-0/+14
| | | | Both issues of commit 7531 fixed.
* 7530 - baremetal: print ints to screenKartik Agaram2021-01-161-0/+150
|
* 7516Kartik Agaram2021-01-131-16/+7
|
* 7510 - baremetal: a game of snakeKartik Agaram2021-01-131-0/+61
|
* 7508Kartik Agaram2021-01-131-18/+20
| | | | | | 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.
* 7507 - baremetal: drawing text down then rightKartik Agaram2021-01-121-0/+169
|
* 7502 - baremetal text: better interfaceKartik Agaram2021-01-121-4/+5
|
* 7501 - baremetal: draw text within a rectangleKartik Agaram2021-01-121-0/+51
|
* 7500 - baremetal: bounds-check screen space before drawingKartik Agaram2021-01-121-3/+26
|
* 7499Kartik Agaram2021-01-121-0/+13