summaryrefslogtreecommitdiff
path: root/priv/templates
diff options
context:
space:
mode:
authorFred Hebert <mononcqc@ferd.ca>2016-01-06 15:20:34 -0500
committerFred Hebert <mononcqc@ferd.ca>2016-01-06 15:20:34 -0500
commitf7047073358ceedfc1bc61d6df01f4d6710ad8b1 (patch)
tree0923f963e3356d83714299867f8461dd92786e8f /priv/templates
parent814d18a31fdd58bb796c068e7c927e35fd9322f6 (diff)
Correct TTY type detection
This reuses the trick used within OTP to pick within old and new shell. The 'user' structure is the same for all cases (escript, escript + dumb TERM, unstable install, unstable install + dumb TERM), so we take it down first. Then we boot the TTY driver, which fails if TERM=dumb, in which case we boot the retro-style usr. If it worked, we shut down the driver again, and boot a modern shell structure. This avoids all warnings and seems to work in all cases.
Diffstat (limited to 'priv/templates')
0 files changed, 0 insertions, 0 deletions