Alloc
$cons->Alloc
- Allocates a new console for the process. Returns
undefon 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. UseFreeto detach the process from the console, and then callAllocto create a new console.