print % if no eof from zsh
This commit is contained in:
parent
755daf7c8d
commit
a00a16e39d
|
@ -26,10 +26,7 @@ module.exports = (argv, terminal) => {
|
|||
terminal.write('\033[35m' + i + ' |\033[0m ');
|
||||
})
|
||||
} else {
|
||||
terminal.write(file);
|
||||
/// print % if no newline at eof
|
||||
if (lines[lines.length - 1] != '')
|
||||
terminal.write('\033[30;47m%\033[0m\n');
|
||||
terminal.write(lines.join('\n'));
|
||||
}
|
||||
})
|
||||
}
|
|
@ -69,6 +69,9 @@ function exec_cmd() {
|
|||
|
||||
if (cmds[command] != undefined) {
|
||||
cmds[command](c.split(' '), terminal);
|
||||
if (terminal.buffer.active.cursorX != 0) {
|
||||
terminal.write('\033[30;47m%\033[0m\n');
|
||||
}
|
||||
print_prompt();
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue