我知道它看起来很丑,但是,假设一个简单的程序,如:
int main(void)
{
int line=0, column=1;
char c;
system("clear");
printf("0123\n4567\n");
getprintedchar(column, line, &c);
printf("%c", c);
return 0;
}
那将打印 number 1。
我们如何使用 LINUX 终端编写这样的功能。我知道我们可以使用ncurses,但这会阻止很多选项printf等等。
我想知道我们是否可以使用struct termios或其他一些超级笨拙的黑客!
对于那些来自 borland/windows 的人来说,它类似于conio.hfunction的简化版本gettext()。
我们可以读取某个内存区域吗?也许有些assembly是直接从某个区域获取角色的Video RAM?
谢谢!