Echo example program added

This commit is contained in:
Владислав Джавадов 2020-06-21 00:05:01 +03:00
parent c44fe51b0b
commit 6ff32000ac
3 changed files with 23 additions and 2 deletions

View 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.

View File

@ -0,0 +1 @@
@call "%~dp0..\..\..\Lib\build.bat" "%~dp0Echo"

View File

@ -9,8 +9,9 @@ MAKE = $(ROOT)\bin\make.exe -$(MAKEFLAGS) -f$**
DCC = $(ROOT)\bin\dcc32.exe $**
BRCC = $(ROOT)\bin\brcc32.exe $**
#------------------------------------------------------------------------------
PROJECTS = ColorButtons.exe ConsoleColors.exe DateTime.exe DrawImage.exe DrawImageEx.exe DrawText.exe GetCurrentDirectory.exe \
GetPixel.exe GetPointOwner.exe Hello.exe HelloGUI.exe LoadFile.exe ReadFolder.exe Screenshot.exe SetCursor.exe SetPixel.exe SetWindowPos.exe
PROJECTS = ColorButtons.exe ConsoleColors.exe DateTime.exe DrawImage.exe DrawImageEx.exe DrawText.exe \
Echo.exe GetCurrentDirectory.exe GetPixel.exe GetPointOwner.exe Hello.exe HelloGUI.exe LoadFile.exe \
ReadFolder.exe Screenshot.exe SetCursor.exe SetPixel.exe SetWindowPos.exe
#------------------------------------------------------------------------------
default: $(PROJECTS)
#------------------------------------------------------------------------------
@ -33,6 +34,9 @@ DrawImageEx.exe: GUI\DrawImageEx\DrawImageEx.dpr
DrawText.exe: GUI\DrawText\DrawText.dpr
$(DCC)
Echo.exe: Console\Echo\Echo.dpr
$(DCC)
GetCurrentDirectory.exe: Console\GetCurrentDir\GetCurrentDir.dpr
$(DCC)