Linux的NASM汇编清屏终端 [英] linux nasm assembly clear screen in terminal
本文介绍了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
这篇关于Linux的NASM汇编清屏终端的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文