summaryrefslogtreecommitdiff
path: root/userspace
diff options
context:
space:
mode:
authorMiguel <m.i@gmx.at>2018-10-18 12:25:12 +0200
committerMiguel <m.i@gmx.at>2018-10-18 12:25:12 +0200
commitad94570c78a8d9e426fd0d48e9709dba27803b71 (patch)
treec288680041df1c69c63d4d1d33df4502f4832f42 /userspace
parente2a6ca9d03a3c0743384f0955609650f2cdce9bb (diff)
New Scheduling / syscalls work a bit. and is much smoother!
Diffstat (limited to 'userspace')
-rw-r--r--userspace/xterm/rect.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/userspace/xterm/rect.c b/userspace/xterm/rect.c
new file mode 100644
index 0000000..35711f0
--- /dev/null
+++ b/userspace/xterm/rect.c
@@ -0,0 +1,25 @@
+#include <stdlib.h>
+#include <stdio.h>
+#include "../put_pixel.h"
+
+extern char**environ;
+
+int main(int argc, char **argv)
+{
+ // we need a window
+ _gui_win();
+
+ // basically loads font and sets a few constants
+ vesa_init(NULL);
+
+ while(1)
+ {
+ int x = rand()%600;
+ int y = rand()%300;
+ int width=10;
+ int height=10;
+ int col = rand()% 0x00ffff;
+ put_rect( x, y, width,height,col);
+ _gui_inval((x<<16)|(y),(width<<16)|height);
+ }
+}