summaryrefslogtreecommitdiff
path: root/kernel/Helpers/memPrint.hpp
diff options
context:
space:
mode:
authormanzerbredes <loic.guegan_secondary@yahoo.fr>2015-07-22 19:45:08 +0400
committermanzerbredes <loic.guegan_secondary@yahoo.fr>2015-07-22 19:45:08 +0400
commit81d1351c73bb919ed1175e41f0c7d2942549f67c (patch)
tree2da2768aa25933f658e99a3dfa2c7a6d3da94528 /kernel/Helpers/memPrint.hpp
parentc10137539f0e68afd0582ccb6cc320694b8e39a5 (diff)
Start to code memPrint
Diffstat (limited to 'kernel/Helpers/memPrint.hpp')
-rw-r--r--kernel/Helpers/memPrint.hpp27
1 files changed, 27 insertions, 0 deletions
diff --git a/kernel/Helpers/memPrint.hpp b/kernel/Helpers/memPrint.hpp
index 841be86..437d6cb 100644
--- a/kernel/Helpers/memPrint.hpp
+++ b/kernel/Helpers/memPrint.hpp
@@ -1,6 +1,13 @@
#ifndef __memPrint__
#define __memPrint__
+#include "./types.hpp"
+
+
+#define MEMPRINTSTARTADR 0xB8000
+#define MAXCURSORX 80
+#define MAXCURSORY 25
+
//Define the bios color
enum colorBios{
@@ -32,6 +39,15 @@ class memPrint{
private:
+ //Cursor position
+ u8 m_cursorX;
+ u8 m_cursorY;
+
+ //Current colors (background and foreground):
+ u8 m_colors;
+
+ //Methods
+ void updateCursor();
public:
@@ -40,6 +56,17 @@ class memPrint{
//Destructor
~memPrint();
+
+ //Set color
+ void setBackground(colorBios color);
+ void setForeground(colorBios color);
+
+ //Putchar
+ void putChar(u8 character);
+
+ //Print
+ void print(char *str);
+
};
#endif