I think we should fix the bug(s). Please echo the received text to output in
order to check if the problem is caused by receiving or by displaying.
"
procedure taskfo.on_text(const sender: TObject; var atext: AnsiString; const
errorinput: Boolean);
var i : integer;
begin
write(atext);<<<<<<<<<<<<------------
while pos_(' ', atext)> 0 do
...
"
Martin
I create new project with two buttons and tterminal+twidetgrid.
pro_errorouttoout=true
here is code:
//start delete operation
procedure tmainfo.on_execute_del(const sender: TObject);
begin
terminal.execprog('pacman -R feh');
end;
//send "No" into tterminal
procedure tmainfo.on_NO(const sender: TObject);
begin
terminal.writestrln('n');
end;
//tterminal events
procedure tmainfo.on_progfinish(const sender: TObject);
begin
terminal.addline(' ==> end <==');
writeln(' ==> end <==');
end;
procedure tmainfo.on_recievetext(const sender: TObject; var atext:
AnsiString; const errorinput: Boolean);
begin
writeln(atext);
end;
I made three attempts to execute delete operation :
===========================
tterminal output:
---------------------------
checking dependencies...
Remove (1): feh-1.15.1-1
Total Removed Size: 0.39 MB
Do you want to remove these packages? [Y/n] ==> end <==
checking dependencies...
Remove (1): feh-1.15.1-1
Total Removed Size: 0.39 MB
Do you want to remove these packages? [Y/n]
==> end <==
checking dependencies...
Remove (1): feh-1.15.1-1
Do you want to remove these packages? [Y/n] Total Removed Size: 0.39 MB
==> end <==
===========================
console output :
---------------------------
[root@server user]# LANG=en_US.utf8 /mnt/data/projects/mse/pacman/test/test
checking dependencies...
Remove (1): feh-1.15.1-1
Total Removed Size: 0.39 MB
Do you want to remove these packages?
[Y/n]
==> end <==
checking dependencies...
Remove (1): feh-1.15.1-1
Total Removed Size: 0.39 MB
Do you want to remove these packages?
[Y/n]
==> end <==
checking dependencies...
Remove (1): feh-1.15.1-1
Do you want to remove these packages?
[Y/n]
Total Removed Size: 0.39 MB
==> end <==
======================================================================
--
Yours,
Alexandre Minoshi
_______________________________________________
MSEide-MSEgui-talk mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mseide-msegui-talk