busybox-1.6.1 Clear screen

Denis Vlasenko vda.linux at googlemail.com
Sun Jul 29 13:59:34 UTC 2007


On 7/29/07, Sync ma <sync.jma at gmail.com> wrote:
> Hi, all:
>   I have problems on clearing the screen, when I type CTRL+L, there
> were actually no effect.
>   I have serached the site:www.busybox.net, and there seems nothing
> useful. I missed anything?

Try to run this:

$ strace -o zz ./busybox clear

On my box in zz I see this:

execve("./busybox", ["./busybox", "clear"], [/* 53 vars */]) = 0
...
fstat64(1, {st_mode=S_IFCHR|0600, st_rdev=makedev(136, 3), ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0xffffce7c) = 0xf7ffa000
write(1, "\33[H\33[J", 6)               = 6
munmap(0xf7ffa000, 4096)                = 0
exit_group(0)                           = ?

What do you see?
--
vda



More information about the busybox mailing list