| Line | |
|---|
| 1 | unit FormOutput;
|
|---|
| 2 |
|
|---|
| 3 | interface
|
|---|
| 4 |
|
|---|
| 5 | uses
|
|---|
| 6 | Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls,
|
|---|
| 7 | FormEx;
|
|---|
| 8 |
|
|---|
| 9 | type
|
|---|
| 10 |
|
|---|
| 11 | { TFormOutput }
|
|---|
| 12 |
|
|---|
| 13 | TFormOutput = class(TFormEx)
|
|---|
| 14 | Label2: TLabel;
|
|---|
| 15 | MemoOutput: TMemo;
|
|---|
| 16 | public
|
|---|
| 17 | procedure Reload;
|
|---|
| 18 | end;
|
|---|
| 19 |
|
|---|
| 20 |
|
|---|
| 21 | implementation
|
|---|
| 22 |
|
|---|
| 23 | {$R *.lfm}
|
|---|
| 24 |
|
|---|
| 25 | uses
|
|---|
| 26 | Core, TargetInterpreter;
|
|---|
| 27 |
|
|---|
| 28 | { TFormOutput }
|
|---|
| 29 |
|
|---|
| 30 | procedure TFormOutput.Reload;
|
|---|
| 31 | begin
|
|---|
| 32 | if Core.Core.CurrentTarget is TTargetInterpreter then
|
|---|
| 33 | with TTargetInterpreter(Core.Core.CurrentTarget) do begin
|
|---|
| 34 | if OutputChanged then begin
|
|---|
| 35 | OutputChanged := False;
|
|---|
| 36 | {$IFDEF UNIX}
|
|---|
| 37 | MemoOutput.Lines.Text := StringReplace(Output, #10#13, LineEnding, [rfReplaceAll])
|
|---|
| 38 | {$ELSE}
|
|---|
| 39 | MemoOutput.Lines.Text := Output;
|
|---|
| 40 | {$ENDIF}
|
|---|
| 41 | end;
|
|---|
| 42 | end;
|
|---|
| 43 | end;
|
|---|
| 44 |
|
|---|
| 45 | end.
|
|---|
| 46 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.