Message: Re: Problems with G4UItcsh and Control-D Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

More Re: Problems with G4UItcsh and Control-D 

Keywords: G4UItcsh Control-D reset
Forum: (Graphical) User Interfaces
Re: Question Problems with G4UItcsh and Control-D (Adrian Vogel)
Date: 04 Dec, 2007
From: Adrian Vogel <>

Hello again,

I’m using G4UItcsh and when I type Control-D at the Idle> prompt, my program exits as expected, but afterwards the behaviour of my shell is messed up – I donít get an echo anymore as I type. Only after calling the Unix reset command, everything is okay again.

I have come across this problem once more after some time and I guess that the reason are a few missing lines in Upon reception of Control-D, G4UItcsh::ReadLine simply calls exit(0) and that’s it. In comparison to that, the signal handler for SIGINT in first prints a short message, calls G4VUIshell::ResetTerminal, deletes the RunManager, and then finally exits. I suppose that adding these few statements to the Control-D handler would be the right thing.


PS: While browsing through the code, I saw the condition if (cc == '[' || 'O') in line 569 of Should that maybe read if (cc == '[' || cc == 'O') instead?

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

 Add Message Add Message
to: "Re: Problems with G4UItcsh and Control-D"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews

[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]