2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
5 Desc: Get the "task" belonging to the process's console.
9 #include "dos_intern.h"
10 #include <proto/exec.h>
12 /*****************************************************************************
16 #include <dos/dosextens.h>
17 #include <proto/dos.h>
19 AROS_LH0(struct MsgPort
*, GetConsoleTask
,
25 struct DosLibrary
*, DOSBase
, 85, Dos
)
28 Return the console handler for the current Process. The return
29 type depends upon whether AROS is running binary compatible.
35 The address of the console handler, or NULL if none is set.
38 You will only get NULL from this call if you call it on a Task,
39 or when the Process is not attached to a console.
50 *****************************************************************************/
54 struct Process
*me
= (struct Process
*)FindTask(NULL
);
61 return (struct MsgPort
*)me
->pr_ConsoleTask
;
64 } /* GetConsoleTask */