VGA Text Mode (zh-CN) #1085
Replies: 6 comments 3 replies
-
Spin version in the article used "0.4.9", but the feature "const_fn" has been removed in current rust version. We can change the spin version to "0.9.2" to solve the problem. |
Beta Was this translation helpful? Give feedback.
-
Thanks a lot for the article. Was really helpful. For someone who'll like to use the most recent version of Something along the lines of: impl DerefMut for ScreenChar {
fn deref_mut(&mut self) -> &mut Self::Target {
self
}
}
impl Deref for ScreenChar {
type Target = ScreenChar;
fn deref(&self) -> &Self::Target {
self
}
} Asides from that, everything in the article pretty much remains the same. |
Beta Was this translation helpful? Give feedback.
-
Why Is it because of little endian? |
Beta Was this translation helpful? Give feedback.
-
Since we're using nightly Rust here, is there a reason why we can't use |
Beta Was this translation helpful? Give feedback.
-
I don't know why this problem occurred
in .cargo/config.toml
|
Beta Was this translation helpful? Give feedback.
-
VGA Text Mode (zh-CN)
VGA 字符模式(VGA text mode)是打印字符到屏幕的一种简单方式。在这篇文章中,为了包装这个模式为一个安全而简单的接口,我们将包装 unsafe 代码到独立的模块。我们还将实现对 Rust 语言格式化宏(formatting macros)的支持。
https://os.phil-opp.com/zh-CN/vga-text-mode/
Beta Was this translation helpful? Give feedback.
All reactions