
5 Jun
2014
5 Jun
'14
11:43 p.m.
Dear Simon Glass,
In message 1401992872-31985-3-git-send-email-sjg@chromium.org you wrote:
Sometimes it is useful to ignore Ctrl-C, because checking for it causes the CLI to drop characters. In particular for tests involving sandbox, where input commands are piped in, some commands will call ctrlc() which will drop characters from the test script.
Why would that be the case?
If this happens, I consider it a bug that should be fixed, and not papered over.
Add a CONFIG_SYS_CTRLC_IGNORE option which enables this variable. If the variable is present (e.g. "setenv ctrlc_ignore ignore") then no checking for Ctrl-C will be performed.
I dislike this idea. It looks wrong to me. Can we not fix the problem at the root cause?
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
Nothing difficult is ever easy.