[Gambas-user] control command line output
james at lixce.com
james at lixce.com
Thu Aug 16 01:08:17 CEST 2018
I'm writing a spell check utility that uses hunspell to check a word typed or pasted into a textbox or provided as a command line arument. When the utility is closed I want it to return the corrected word which is not a problem; a simple print statement in the Form_Close does that fine.
The problem is that I also get "qt5ct: using qt5ct plugin" on the command line whenever the utility is run.
I have tried including in the Form_Open:
nFile = Open "/dev/null" For Output
Error To nFile
Output To nFile
Which prevents the Print statement from working unless I redirect the stream again but leaves the "qt5ct: using qt5ct plugin" on the command line.
Calling the utility and redirecting error to NULL like:
lixce-spell word-to-check 2>/dev/null
works but it is not really graceful, I could write an alias or a script but once again not really graceful.
Is there any way within the Gambas basic code to suppress the "qt5ct: using qt5ct plugin" statement?
Thanks, -j
P.S. Lovin' Gambas lots of great stuff, finally able to do most everything I want without spending weeks building GUI's!
More information about the User
mailing list