[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

"clear" doesn't work with bterm / bf 3.0.20



Hi, i still have a problem with clear and bterm. It just doesn't work. The
cursor is moved in the right place, but screen is not cleared.

I tested with bf 3.0.20 idepci and bf-2.4. My video card is
nVidia Corporation NV11 (GeForce2 MX) (rev a1)

I tried to launch my sid's bterm under bf, and it didn't work either.
But, when I tried to boot my sid system with kernel from bf (linux
root=/dev/hda1 single or rescue root=/dev/hda1 single), my bterm and bterm
from bf worked (screen cleared).

So I did a last test:
strace bterm -f unifont-reduced.bgf
and the same command from:
chroot /bf strace bterm -f unifont-reduced.bgf

I typed "clear" and then I exited.

Here is the diff (useful part only): 

-execve("/usr/bin/bterm", ["/usr/bin/bterm", "-f", "unifont-reduced.bgf"], [/* 17 vars */]) = 0
+execve("./root2/usr/bin/bterm", ["./root2/usr/bin/bterm", "-f", "root2/unifont-reduced.bgf"], [/* 17 vars */]) = 0
[...]
 ioctl(0, SNDCTL_TMR_TIMEBASE, {B38400 opost isig icanon echo ...}) = 0
 open("/dev/fb0", O_RDWR)                = 4
 open("/dev/tty0", O_RDWR)               = 5
-ioctl(5, 0x5603, 0xbffff864)            = 0
+ioctl(5, 0x5603, 0xbffff844)            = 0
 ioctl(4, 0x4602, 0x8050500)             = 0
-ioctl(4, 0x4600, 0xbffff86c)            = 0
+ioctl(4, 0x4600, 0xbffff84c)            = 0
 ioctl(5, 0x5601, 0x805045c)             = 0
[...]
 brk(0x805a000)                          = 0x805a000
 brk(0x805d000)                          = 0x805d000
-ioctl(4, 0x4605, 0xbffff8f4)            = 0
+ioctl(4, 0x4605, 0xbffff8d4)            = 0
 open("/dev/ptyp0", O_RDWR)              = 6
 open("/dev/ttyp0", O_RDWR)              = 7
[...]
 read(0, "r", 256)                       = 1
 write(6, "r", 1)                        = 1
 select(7, [0 6], NULL, NULL, {10, 100000}) = 1 (in [6], left {10, 100000})
 read(6, "r", 256)                       = 1
-select(7, [0 6], NULL, NULL, {10, 100000}) = 1 (in [0], left {9, 710000})
+select(7, [0 6], NULL, NULL, {10, 100000}) = 1 (in [0], left {9, 760000})
 read(0, "\r", 256)                      = 1
 write(6, "\r", 1)                       = 1
 select(7, [0 6], NULL, NULL, {10, 100000}) = 1 (in [6], left {10, 100000})
 read(6, "\r\n", 256)                    = 2
 select(7, [0 6], NULL, NULL, {10, 100000}) = 1 (in [6], left {10, 100000})
-read(6, "\33[H\33[J", 256)              = 6
+read(6, "\33[H\33[2J", 256)             = 7
 select(7, [0 6], NULL, NULL, {10, 100000}) = 1 (in [6], left {10, 100000})


As you can see, the ioctl are not the same and "clear" doesn't output the
same thing.


-- 
Thomas Poindessous
thomas@poindessous.com




Reply to: