about summary refs log tree commit diff stats
path: root/config
ModeNameSize
-rw-r--r--accounts.conf653log stats plain blame
-rw-r--r--aerc.conf.in6073log stats plain blame
-rw-r--r--bindings.go13379log stats plain blame
-rw-r--r--bindings_test.go1954log stats plain blame
-rw-r--r--binds.conf2094log stats plain blame
-rw-r--r--config.go19550log stats plain blame
-rw-r--r--default_styleset688log stats plain blame
-rw-r--r--style.go8638log stats plain blame
-rw-r--r--triggers.go1296log stats plain blame
/* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
# Draw a single line of ASCII text using the built-in font (GNU unifont)
# Also demonstrates bounds-checking _before_ drawing.
#
# To build a disk image:
#   ./translate ex5.mu             # emits code.img
# To run:
#   qemu-system-i386 code.img
# Or:
#   bochs -f bochsrc               # bochsrc loads code.img
#
# Expected output: text in green near the top-left corner of screen

fn main screen: (addr screen), keyboard: (addr keyboard), data-disk: (addr disk) {
  var dummy/eax: int <- draw-text-rightward screen, "hello from baremetal Mu!", 0x10/x, 0x400/xmax, 0x10/y, 0xa/fg, 0/bg
  dummy <- draw-text-rightward screen, "you shouldn't see this", 0x10/x, 0xa0/xmax, 0x30/y, 3/fg, 0/bg  # xmax is too narrow
}