Re: [fpc-devel] Video unit -- bug? Tracedump -- request?

2005-02-16 Thread Kornel Kisielewicz
Marco van de Voort wrote:
Video doesn't restore terminal settings on Linux after exiting
-- the command line doesn't show any typed in text, and doesn't
process CR characters... Is this a bug? And if not, what's the cure?
(except of course manual reset of the console after execution)
Do you call donevideo?
Yes. Always. I also use Keyboard, now that I think about it (and call 
DoneKeyboard too).

LineInfo/Tracedump -- Is there an easy way to make the output of
the tracedump after a crash be appended to a file? Or redirected at
all? I need people to submit bug-reports, and while using Video unit
the dumps arent readable at all on linux... :-(
Don't know, try:
./x 2> filename.txt
This is not something I can tell a non-programmer beta-tester to do -- I 
wanted something simple :-(.

Peter Vreman wrote:
For normal runtime errors/exceptions with backtrace there is no way to
redirect. The writing of that info is to stdout for compatibility.
Isn't there any way to catch stdout to a file? (I tried to check in a 
ExitrProc wether ExitCode is non-zero and if so Assign StdOut, but assigning 
stdout doesn't seem to work -- guess it cant be reasigned...)

At your service,
Kornel Kisielewicz 

___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Video unit -- bug? Tracedump -- request?

2005-02-16 Thread Peter Vreman
>> Video doesn't restore terminal settings on Linux after exiting --
>> the
>> command line doesn't show any typed in text, and doesn't process CR
>> characters... Is this a bug? And if not, what's the cure? (except of
>> course
>> manual reset of the console after execution)
>
> Do you call donevideo?
>
>> LineInfo/Tracedump -- Is there an easy way to make the output of the
>> tracedump after a crash be appended to a file? Or redirected at all? I
>> need
>> people to submit bug-reports, and while using Video unit the dumps arent
>> readable at all on linux... :-(
>
> Don't know, try:
>
> ./x 2> filename.txt
>

For heaptrc you can use SetHeapTrcOutput("heap.log").
For normal runtime errors/exceptions with backtrace there is no way to
redirect. The writing of that info is to stdout for compatibility.




___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Video unit -- bug? Tracedump -- request?

2005-02-15 Thread Marco van de Voort
> Video doesn't restore terminal settings on Linux after exiting -- the 
> command line doesn't show any typed in text, and doesn't process CR 
> characters... Is this a bug? And if not, what's the cure? (except of course 
> manual reset of the console after execution)

Do you call donevideo?
 
> LineInfo/Tracedump -- Is there an easy way to make the output of the 
> tracedump after a crash be appended to a file? Or redirected at all? I need 
> people to submit bug-reports, and while using Video unit the dumps arent 
> readable at all on linux... :-(

Don't know, try:

./x 2> filename.txt

___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


[fpc-devel] Video unit -- bug? Tracedump -- request?

2005-02-15 Thread Kornel Kisielewicz
Hello all,
   I know, I posted about it already on fpc-pascal, but I got no reply, and 
I'm realy stuck with the linux version of my game because of it... At least 
please tell me where can I get answers to these questions :-( (other than 
"use the source, Luke" ;-) )

   I'm in the process of porting my FreePascal roguelike game from DOS to 
Linux. The game finally compiles, but I've hit two problems, one with the 
Video unit, the other one with LineInfo/Tracedump.

   Video doesn't restore terminal settings on Linux after exiting -- the 
command line doesn't show any typed in text, and doesn't process CR 
characters... Is this a bug? And if not, what's the cure? (except of course 
manual reset of the console after execution)

   LineInfo/Tracedump -- Is there an easy way to make the output of the 
tracedump after a crash be appended to a file? Or redirected at all? I need 
people to submit bug-reports, and while using Video unit the dumps arent 
readable at all on linux... :-(

At your service,
Kornel Kisielewicz 

___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel