2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
9 /******************************************************************************
42 ******************************************************************************/
45 #include <proto/dos.h>
47 #include <dos/dosextens.h>
49 #include <aros/shcommands.h>
51 AROS_SH0(EndCli
, 41.3)
55 struct CommandLineInterface
*cli
= Cli();
60 struct FileHandle
*fhin
= BADDR(cli
->cli_CurrentInput
);
61 struct FileHandle
*fhout
= BADDR(cli
->cli_StandardOutput
);
63 cli
->cli_Background
= TRUE
;
65 fhin
->fh_Pos
= fhin
->fh_End
+ 1; /* Simulate an EOF */
66 fhout
->fh_Pos
= fhout
->fh_Buf
; /* don't flush cli's standard output on close*/