Update to lasso handling. Adjust scroll amount based on difference between mouse...
[AROS.git] / rom / dos / cli.c
blobd9841ba3fe6e253bc27beff1b541e8235714ffb1
1 /*
2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc:
6 Lang: english
7 */
8 #include <proto/exec.h>
9 #include "dos_intern.h"
11 /*****************************************************************************
13 NAME */
14 #include <proto/dos.h>
16 AROS_LH0(struct CommandLineInterface *, Cli,
18 /* SYNOPSIS */
20 /* LOCATION */
21 struct DosLibrary *, DOSBase, 82, Dos)
23 /* FUNCTION
24 Returns a pointer to the CLI structure of the current process.
26 INPUTS
28 RESULT
29 Pointer to CLI structure.
31 NOTES
32 Do not use this function to test if the process was started from
33 the shell. Check pr_CLI instead.
35 EXAMPLE
37 BUGS
39 SEE ALSO
41 INTERNALS
43 *****************************************************************************/
45 AROS_LIBFUNC_INIT
47 /* Get pointer to process structure */
48 struct Process *me = (struct Process *) FindTask(NULL);
50 /* Make sure this is a process */
51 if (me->pr_Task.tc_Node.ln_Type == NT_PROCESS)
53 /* Nothing spectacular */
54 return (struct CommandLineInterface *) BADDR(me->pr_CLI);
56 else
58 return NULL;
61 AROS_LIBFUNC_EXIT
62 } /* Cli */