Allocates a new console for the process. Returns
error or a nonzero
value on success. A process cannot be associated with more than one console,
so this method will fail if there is already an allocated console. Use
to detach the process from the console, and then call
Alloc to create a new console.