diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2014-10-04 23:00:19 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2014-10-04 23:00:19 -0700 |
commit | bdadc933ef7aa44535533a106139aa1b1506e9aa (patch) | |
tree | f69fda37d7958f8892f95737c6cdd9e290476cb3 /edit.mu | |
parent | 133401ecbc34b0b06a72717c5dd2875293171985 (diff) | |
download | mu-bdadc933ef7aa44535533a106139aa1b1506e9aa.tar.gz |
95
Diffstat (limited to 'edit.mu')
-rw-r--r-- | edit.mu | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/edit.mu b/edit.mu new file mode 100644 index 00000000..5ac6e043 --- /dev/null +++ b/edit.mu @@ -0,0 +1,25 @@ +(main + (cls) + ((x1 integer) <- literal 10) + ((y1 integer) <- literal 5) + (cursor (x1 integer) (y1 integer)) + ((s string) <- literal "Hello, ") + (print (s string)) + (bold-mode) + ((s string) <- literal "you") + (print (s string)) + (non-bold-mode) + ((s string) <- literal ".") + (print (s string)) + ((x2y2 integer) <- literal 1) + (cursor (x2y2 integer) (x2y2 integer)) + ((s string) <- literal "Press a key...") + (print (s string)) + ((key string) <- getc) + (cll) + ((s string) <- literal "You pressed: ") + (print (s string)) + (print (key string)) + ((s string) <- literal "\n") + (print (s string)) +) |