nshterm: Use only the stack we really need