2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
5 Desc: Set the console handler for the current process.
8 #include <aros/debug.h>
10 #include "dos_intern.h"
11 #include <proto/exec.h>
13 /*****************************************************************************
16 #include <dos/dosextens.h>
17 #include <proto/dos.h>
19 AROS_LH1(struct MsgPort
*, SetConsoleTask
,
22 AROS_LHA(struct MsgPort
*, handler
, D1
),
25 struct DosLibrary
*, DOSBase
, 86, Dos
)
28 Set the console handler for the current process, and return the
32 handler - The new console handler for the process.
35 The address of the old handler.
38 The use of Task in the name is because historically filesystem
39 handlers were tasks (instead of Devices).
50 *****************************************************************************/
57 pr
= (struct Process
*)FindTask(NULL
);
58 ASSERT_VALID_PROCESS(pr
);
60 old
= pr
->pr_ConsoleTask
;
61 pr
->pr_ConsoleTask
= handler
;
66 } /* SetConsoleTask */