diff options
author | Alexis211 <alexis211@gmail.com> | 2009-09-11 16:22:30 +0200 |
---|---|---|
committer | Alexis211 <alexis211@gmail.com> | 2009-09-11 16:22:30 +0200 |
commit | 7b0d6ac9f903296c7537cec9ac606d49cb364049 (patch) | |
tree | c9bc6aaf4e7237cf5577f3a78291f1f591fe1563 /Source/Kernel/VTManager | |
parent | d95452c5452b4ca7418505fa5597f000596fcb78 (diff) | |
download | Melon-7b0d6ac9f903296c7537cec9ac606d49cb364049.tar.gz Melon-7b0d6ac9f903296c7537cec9ac606d49cb364049.zip |
Nothing, really
Diffstat (limited to 'Source/Kernel/VTManager')
-rw-r--r-- | Source/Kernel/VTManager/VirtualTerminal.class.cpp | 6 | ||||
-rw-r--r-- | Source/Kernel/VTManager/VirtualTerminal.class.h | 8 |
2 files changed, 7 insertions, 7 deletions
diff --git a/Source/Kernel/VTManager/VirtualTerminal.class.cpp b/Source/Kernel/VTManager/VirtualTerminal.class.cpp index f5cec5f..dde487c 100644 --- a/Source/Kernel/VTManager/VirtualTerminal.class.cpp +++ b/Source/Kernel/VTManager/VirtualTerminal.class.cpp @@ -29,7 +29,7 @@ void VirtualTerminal::setColor(u8int fgcolor, u8int bgcolor) { } } -void VirtualTerminal::putChar(u32int row, u32int col, wchar c) { +void VirtualTerminal::putChar(u32int row, u32int col, WChar c) { if (row >= m_rows or col >= m_cols) return; chr* ch = &BUFCHR(row, col); ch->c = c; @@ -103,7 +103,7 @@ void VirtualTerminal::setCursorCol(u32int col) { // Display functionn -void VirtualTerminal::put(wchar c, bool updatecsr) { +void VirtualTerminal::put(WChar c, bool updatecsr) { if (c.value == '\b') { if (m_csrcol > 0) m_csrcol--; putChar(m_csrlin, m_csrcol, ' '); @@ -185,7 +185,7 @@ void VirtualTerminal::hexDump(u8int *ptr, u32int sz) { for (u32int j = 0; j < 16; j++) { u8int b = ptr[i + j]; if (b >= 0x20 && b < 128) { - put(wchar(b)); + put(WChar(b)); } else { put("."); } diff --git a/Source/Kernel/VTManager/VirtualTerminal.class.h b/Source/Kernel/VTManager/VirtualTerminal.class.h index 4e5fe86..5739c72 100644 --- a/Source/Kernel/VTManager/VirtualTerminal.class.h +++ b/Source/Kernel/VTManager/VirtualTerminal.class.h @@ -9,7 +9,7 @@ struct chr { u8int color; - wchar c; + WChar c; }; class VirtualTerminal { @@ -31,7 +31,7 @@ class VirtualTerminal { ~VirtualTerminal(); void setColor(u8int fgcolor, u8int bgcolor = 0xFF); - void putChar(u32int row, u32int col, wchar c); + void putChar(u32int row, u32int col, WChar c); void clear(); void map(s32int row = -1, s32int col = -1); @@ -45,7 +45,7 @@ class VirtualTerminal { void setCursorCol(u32int col); //Display functions - void put(wchar c, bool updatecsr = true); + void put(WChar c, bool updatecsr = true); void write(String s, bool updatecsr = true); void writeDec(s32int i, bool updatecsr = true); void writeHex(u32int i, bool updatecsr = true); @@ -53,7 +53,7 @@ class VirtualTerminal { void hexDump(u8int* ptr, u32int sz); inline VirtualTerminal& operator<<(String s) { write(s); return *this; } - //inline VirtualTerminal& operator<<(wchar c) { put(c); return *this; } + //inline VirtualTerminal& operator<<(WChar c) { put(c); return *this; } inline VirtualTerminal& operator<<(s32int i) { writeDec(i); return *this; } inline VirtualTerminal& operator<<(u32int i) { writeHex(i); return *this; } |