mirror of
https://github.com/vapaamies/KolibriOS.git
synced 2025-09-23 07:33:49 +02:00
Echo example program added
This commit is contained in:
16
Examples/Console/Echo/Echo.dpr
Normal file
16
Examples/Console/Echo/Echo.dpr
Normal file
@@ -0,0 +1,16 @@
|
||||
program Echo;
|
||||
|
||||
uses
|
||||
CRT;
|
||||
|
||||
var
|
||||
S: ShortString;
|
||||
begin
|
||||
InitConsole('Echo');
|
||||
repeat
|
||||
Write('> ');
|
||||
ReadLn(S);
|
||||
if Length(S) <> 0 then
|
||||
WriteLn(S);
|
||||
until False;
|
||||
end.
|
1
Examples/Console/Echo/build.bat
Normal file
1
Examples/Console/Echo/build.bat
Normal file
@@ -0,0 +1 @@
|
||||
@call "%~dp0..\..\..\Lib\build.bat" "%~dp0Echo"
|
Reference in New Issue
Block a user