2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
5 Desc: Set the console handler for the current process.
8 #include "dos_intern.h"
9 #include <proto/exec.h>
11 /*****************************************************************************
14 #include <dos/dosextens.h>
15 #include <proto/dos.h>
17 AROS_LH1(struct MsgPort
*, SetConsoleTask
,
20 AROS_LHA(struct MsgPort
*, handler
, D1
),
23 struct DosLibrary
*, DOSBase
, 86, Dos
)
26 Set the console handler for the current process, and return the
30 handler - The new console handler for the process.
33 The address of the old handler.
36 The use of Task in the name is because historically filesystem
37 handlers were tasks (instead of Devices).
48 *****************************************************************************/
55 pr
= (struct Process
*)FindTask(NULL
);
56 old
= pr
->pr_ConsoleTask
;
57 pr
->pr_ConsoleTask
= MKBADDR(handler
);
62 } /* SetConsoleTask */