mirror of
https://github.com/vapaamies/KolibriOS.git
synced 2024-09-19 17:41:01 +02:00
Echo example program added
This commit is contained in:
parent
c44fe51b0b
commit
6ff32000ac
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"
|
@ -9,8 +9,9 @@ MAKE = $(ROOT)\bin\make.exe -$(MAKEFLAGS) -f$**
|
|||||||
DCC = $(ROOT)\bin\dcc32.exe $**
|
DCC = $(ROOT)\bin\dcc32.exe $**
|
||||||
BRCC = $(ROOT)\bin\brcc32.exe $**
|
BRCC = $(ROOT)\bin\brcc32.exe $**
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
PROJECTS = ColorButtons.exe ConsoleColors.exe DateTime.exe DrawImage.exe DrawImageEx.exe DrawText.exe GetCurrentDirectory.exe \
|
PROJECTS = ColorButtons.exe ConsoleColors.exe DateTime.exe DrawImage.exe DrawImageEx.exe DrawText.exe \
|
||||||
GetPixel.exe GetPointOwner.exe Hello.exe HelloGUI.exe LoadFile.exe ReadFolder.exe Screenshot.exe SetCursor.exe SetPixel.exe SetWindowPos.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)
|
default: $(PROJECTS)
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
@ -33,6 +34,9 @@ DrawImageEx.exe: GUI\DrawImageEx\DrawImageEx.dpr
|
|||||||
DrawText.exe: GUI\DrawText\DrawText.dpr
|
DrawText.exe: GUI\DrawText\DrawText.dpr
|
||||||
$(DCC)
|
$(DCC)
|
||||||
|
|
||||||
|
Echo.exe: Console\Echo\Echo.dpr
|
||||||
|
$(DCC)
|
||||||
|
|
||||||
GetCurrentDirectory.exe: Console\GetCurrentDir\GetCurrentDir.dpr
|
GetCurrentDirectory.exe: Console\GetCurrentDir\GetCurrentDir.dpr
|
||||||
$(DCC)
|
$(DCC)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user