2 Copyright © 1995-2013, 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.
48 *****************************************************************************/
55 pr
= (struct Process
*)FindTask(NULL
);
56 ASSERT_VALID_PROCESS(pr
);
58 old
= pr
->pr_ConsoleTask
;
59 pr
->pr_ConsoleTask
= handler
;
64 } /* SetConsoleTask */