--- nono/lib/textscreen.h 2026/04/29 17:04:54 1.1.1.8 +++ nono/lib/textscreen.h 2026/04/29 17:05:15 1.1.1.11 @@ -4,6 +4,10 @@ // Licensed under nono-license.txt // +// +// テキストスクリーン +// + #pragma once #include "header.h" @@ -158,6 +162,18 @@ class TextScreen // 現在位置に1文字出力 (上位バイトは属性) void Putc(uint16 ch); + // 座標を指定して1文字出力 (上位バイトは属性) + void Putc(int x, int y, uint16 ch) { + Locate(x, y); + Putc(ch); + } + + // 座標と属性を指定して1文字出力 + void Putc(int x, int y, TA attr, uint16 ch) { + Locate(x, y); + Putc((uint)attr | ch); + } + // 現在位置に文字列を出力 void Puts(const char *str);