简体   繁体   English

如何使用seq_file接口清除终端的输出?

[英]How to clear output of a terminal using seq_file interface?

In linux user space program, the following code printf("\\033[2J\\033[1;H"); 在linux用户空间程序中,以下代码printf("\\033[2J\\033[1;H"); clear output of a terminal. 清除终端的输出。

I am wondering how to clear output of terminal in linux kernel module programming? 我想知道如何在Linux内核模块编程中清除终端的输出

Is is possible using seq_file interface? 是否可以使用seq_file接口? Then, what should I do? 那我该怎么办

That function can be applied to seq_file. 该功能可以应用于seq_file。

I mean, seq_printf(m, "\\033[2J\\033[1;H"); 我的意思是seq_printf(m, "\\033[2J\\033[1;H");

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM