Is it possible to hook the console from CLI launch?

Discuss anything ZDoom-related that doesn't fall into one of the other categories.

Is it possible to hook the console from CLI launch?

Postby frozenfoxx » Wed Sep 01, 2021 1:29 pm

I'm building a wrapper for GZDoom and am wondering if it's possible to redirect stdin from the CLI into the in-game console. This would be similar to how, say, Zandronum-server works. All the output from GZDoom console currently gets outputted to the CLI, but if I type any commands from the CLI it seems to have no effect.

Is there a command line option I need to provide? If it doesn't exist yet, would it be too bad to accept that input? Or is there another port that provides this sort of functionality? Thanks much.
User avatar
frozenfoxx
 
Joined: 20 Jul 2020
Github ID: frozenfoxx

Re: Is it possible to hook the console from CLI launch?

Postby Rachael » Wed Sep 01, 2021 3:32 pm

It is not possible - but I think it would be kind of neat if it were possible. You probably might like to make a feature suggestion for it.
User avatar
Rachael
Admin
 
Joined: 13 Jan 2004
Discord: Rachael#3767
Twitch ID: madamerachelle
Github ID: madame-rachelle
Operating System: Debian-like Linux (Debian, Ubuntu, Mint, etc) 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support

Re: Is it possible to hook the console from CLI launch?

Postby frozenfoxx » Wed Sep 01, 2021 7:58 pm

Can do, thank you.
User avatar
frozenfoxx
 
Joined: 20 Jul 2020
Github ID: frozenfoxx


Return to General

Who is online

Users browsing this forum: MidoriMan and 1 guest