Changeset 153 for trunk/Forms/FormConsole.pas
- Timestamp:
- Aug 14, 2024, 1:05:13 PM (3 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/FormConsole.pas
r151 r153 102 102 Process.Parameters.Assign(Parameters); 103 103 Process.Executable := Executable; 104 CommandLine := Executable + ' ' + StringReplace(Parameters.Text, LineEnding, ' ', [rfReplaceAll]); 104 CommandLine := Executable + ' ' + StringReplace(Parameters.Text, LineEnding, 105 ' ', [rfReplaceAll]); 105 106 if CommandLine[Length(CommandLine)] = LineEnding then 106 107 SetLength(CommandLine, Length(CommandLine) - 1); … … 117 118 SetLength(Buffer, Count); 118 119 Text := Text + Buffer; 120 {$IFDEF UNIX} 121 Text := StringReplace(Text, #10#13, LineEnding, [rfReplaceAll]); 122 {$ENDIF} 119 123 while Pos(LineEnding, Text) > 0 do begin 120 124 Line := Copy(Text, 1, Pos(LineEnding, Text) - 1); … … 130 134 SetLength(Buffer, Count); 131 135 Text := Text + Buffer; 136 {$IFDEF UNIX} 137 Text := StringReplace(Text, #10#13, LineEnding, [rfReplaceAll]); 138 {$ENDIF} 132 139 while Pos(LineEnding, Text) > 0 do begin 133 140 Line := Copy(Text, 1, Pos(LineEnding, Text) - 1);
Note:
See TracChangeset
for help on using the changeset viewer.