summaryrefslogtreecommitdiff
path: root/kernel/Helpers/memPrint.hpp
diff options
context:
space:
mode:
authormanzerbredes <loic.guegan_secondary@yahoo.fr>2015-07-28 14:19:00 +0400
committermanzerbredes <loic.guegan_secondary@yahoo.fr>2015-07-28 14:19:00 +0400
commite0c565f7ff7620dca9dfc6c607f4798f5291c7bf (patch)
treec18099687db0202e32ae47f4c991b895191f030e /kernel/Helpers/memPrint.hpp
parentaac010a9e30e479968e277ebdaf41ad366a77098 (diff)
Go back to C and adapt codeHEADmasterdevelop
Diffstat (limited to 'kernel/Helpers/memPrint.hpp')
-rw-r--r--kernel/Helpers/memPrint.hpp81
1 files changed, 0 insertions, 81 deletions
diff --git a/kernel/Helpers/memPrint.hpp b/kernel/Helpers/memPrint.hpp
deleted file mode 100644
index 19a6708..0000000
--- a/kernel/Helpers/memPrint.hpp
+++ /dev/null
@@ -1,81 +0,0 @@
-#ifndef __memPrint__
-#define __memPrint__
-
-#include "./types.hpp"
-
-
-#define MEMPRINTSTARTADR 0xB8000
-#define MAXCURSORX 80
-#define MAXCURSORY 25
-
-
-
-
-//Define the bios color
-enum colorBios{
-
- BLACK=0x0,
- BLUE=0x1,
- GREEN=0x2,
- CYAN=0x3,
- RED=0x4,
- MAGENTA=0x5,
- BROWN=0x6,
- LIGHTGRAY=0x7,
- DARKGRAY=0x8,
- LIGHTBLUE=0x9,
- LIGHTGREEN=0xA,
- LIGHTCYAN=0xB,
- LIGHTRED=0xC,
- LIGHTMAGENTA=0xD,
- YELLOW=0xE,
- WHITE=0xF
-
-};
-
-//Type def for biosColor
-typedef enum colorBios colorBios;
-
-
-//Class to print char on screen using Video Ram mapping
-class memPrint{
-
- private:
-
- //Cursor position
- u8 m_cursorX;
- u8 m_cursorY;
-
- //Current colors (background and foreground):
- u8 m_colors;
-
- //Methods
- void updateCursor();
-
- public:
-
- //Constructor
- memPrint();
-
- //Destructor
- ~memPrint();
-
- //Set color
- void setBackground(colorBios color);
- void setForeground(colorBios color);
-
- //Putchar
- void putChar(u8 character);
-
- //Print
- void print(char *str);
-
- //Scroll up
- void scrollUp(u8 number);
-
- //Clear screen
- void clear();
-
-};
-
-#endif