From: Zhang Huangbin <zhbmaillistonly at gmail.com>
> now display dialog pages, but it can't switch to tty1 via 'chvt 1', and/or
> display further messages in tty3. Any
> idea?
It worked for me, but I do not use dialog...
Did you check that dialog does indeed exit?
Did you try to run the script by hand in vt2?
JD