简体   繁体   中英

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"); clear output of a terminal.

I am wondering how to clear output of terminal in linux kernel module programming?

Is is possible using seq_file interface? Then, what should I do?

That function can be applied to seq_file.

I mean, seq_printf(m, "\\033[2J\\033[1;H");

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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