Для того, чтобы добавить в не-консольное приложение ввод/вывод из консоли, необходимо воспользоваться функциями AllocConsole и FreeConsole.
procedureTForm1.Button1Click(Sender: TObject); var
s: string
; begin
AllocConsole; try
Write('Type here your words and press ENTER: '); Readln(s); ShowMessage(Format('You typed: "%s"', [s])); finally
FreeConsole; end
; end
;