Consulte o manual do Geany na página Simulador de terminal virtual (VTE) e verifique Opção Executar programas em VTE :
Execute programs in the virtual terminal instead of using the external terminal tool. Note that if you run multiple execute commands at once the output may become mixed together in the VTE.