Linux的NASM汇编清屏终端

Linux的NASM汇编清屏终端

问题描述:

有没有办法清除屏幕在NASM终端窗口?通过清晰的画面,我的意思是模拟按Ctrl-L 热键。取下窗口中的所有文本。

Is there a way to clear the screen in a terminal window with nasm? By clear the screen, I mean emulate the Ctrl-L hotkey. Remove all text from the window.

这是可能在NASM汇编办?

Is this possible to do in nasm assembly?

由于提前,

Rileyh

在击:

echo -ne "\033[H\033[2J"

在C:

printf("\033[H\033[2J");

我如何找到字符串:

How do I find the string:

$ strace -e trace=write clear >/dev/null 
write(1, "\33[H\33[2J", 7)              = 7
Process 7983 detached