I believe the way in which the IDE/HAL determines if a device can accept stdin/stdout is through a setting in the component's class.ptf file. For instance, the following snippet is from the jtag_uart:
SYSTEM_BUILDER_INFO {
Bus_Type = "avalon";
Is_Printable_Device = "1";
You may, however, be able to use alt_io_redirect() to redirect output to your "device". That's how the HAL does it just prior to entering main(). You'd have to create your own device driver (and perhaps, an actual hardware component) first, however. Since I've no idea what, exactly, you're trying to do, that's about all the advice I can offer.
Cheers,
- slacker