mu/shell
Kartik K. Agaram 6fa86619b2 shell: tweaks for fake screens
- make them more discoverable
- clear them between commands
2021-04-10 20:09:18 -07:00
..
README.md bochs support for disk drives 2021-03-23 21:53:41 -07:00
cell.mu shell: fake screens 2021-04-10 18:32:27 -07:00
evaluate.mu shell: structural equality check 2021-04-09 22:51:24 -07:00
gap-buffer.mu shell: highlight matching paren for cursor 2021-04-09 21:57:40 -07:00
global.mu shell: tweaks for fake screens 2021-04-10 20:09:18 -07:00
grapheme-stack.mu shell: highlight matching paren for cursor 2021-04-09 21:57:40 -07:00
main.mu . 2021-04-10 17:15:42 -07:00
parse.mu shell: quote 2021-04-06 09:40:13 -07:00
print.mu shell: fake screens 2021-04-10 18:32:27 -07:00
read.mu 7849 - shell: literal numbers 2021-03-04 22:05:39 -08:00
sandbox.mu shell: tweaks for fake screens 2021-04-10 20:09:18 -07:00
tokenize.mu shell: quote 2021-04-06 09:40:13 -07:00
trace.mu support for arrow keys 2021-04-05 22:37:27 -07:00
vimrc.vim 7842 - new directory organization 2021-03-03 22:21:03 -08:00

README.md

A prototype shell for the Mu computer

Currently runs a tiny subset of Lisp. Steps to run it from the top-level:

  1. Build it:
$ ./translate shell/*.mu      # generates disk.img
  1. Run it:
$ qemu-system-i386 disk.img

or:

$ bochs -f bochsrc

To save typing in a large s-expression, create a secondary disk for data:

$ dd if=/dev/zero of=data.img count=20160

Load an s-expression into it:

$ echo '(+ 1 1)' |dd of=data.img conv=notrunc

Now run with both code and data disks:

$ qemu-system-i386 -hda disk.img -hdb data.img

or:

$ bochs -f bochsrc.2disks

You can type in expressions, hit ctrl-s to see their results, and hit Tab to focus on the ... below and browse how the results were computed. Here's a demo. The bottom of the screen shows context-dependent keyboard shortcuts (there's no mouse in the Mu computer at the moment).

Known issues

  • There's no way to save to disk.

  • Don't press keys too quickly (such as by holding down a key). The Mu computer will crash (and often Qemu will segfault).