# send xterm scrollback clear extension just in case:
# - TERM may not be set correctly
# - terminfo/termcap database entry for reset may be buggy
- echo -n '\e[3J'
+ echo -en '\e[3J'
# use terminfo/termcap directly instead of relying on system clear/reset:
# - often they are just wrappers for ncurses tput or other tools
# - they may not even exist on lightweight systems
}
if (( y == 0 )) {
# fallback, send ECMA-48 clear
- echo -n '\e[2J'
+ echo -en '\e[2J'
}
echo logout
}