source: trunk/Forms/FormOutput.pas

Last change on this file was 152, checked in by chronos, 13 months ago
  • Fixed: A typo in interpreter target name.
File size: 758 bytes
Line 
1unit FormOutput;
2
3interface
4
5uses
6 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls,
7 FormEx;
8
9type
10
11 { TFormOutput }
12
13 TFormOutput = class(TFormEx)
14 Label2: TLabel;
15 MemoOutput: TMemo;
16 public
17 procedure Reload;
18 end;
19
20
21implementation
22
23{$R *.lfm}
24
25uses
26 Core, TargetInterpreter;
27
28{ TFormOutput }
29
30procedure TFormOutput.Reload;
31begin
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;
43end;
44
45end.
46
Note: See TracBrowser for help on using the repository browser.