Compare commits

..

2 Commits

Author SHA1 Message Date
b1ek 25eb62968b
add native description 2023-03-16 14:25:55 +10:00
b1ek a00a16e39d
print % if no eof from zsh 2023-03-16 14:25:41 +10:00
3 changed files with 16 additions and 6 deletions

View File

@ -26,10 +26,7 @@ module.exports = (argv, terminal) => {
terminal.write('\033[35m' + i + ' |\033[0m '); terminal.write('\033[35m' + i + ' |\033[0m ');
}) })
} else { } else {
terminal.write(file); terminal.write(lines.join('\n'));
/// print % if no newline at eof
if (lines[lines.length - 1] != '')
terminal.write('\033[30;47m%\033[0m\n');
} }
}) })
} }

View File

@ -1,6 +1,6 @@
module.exports = { module.exports = {
'/skills/web': ` '/skills/web': `
My web experience \x1b[1mMy web experience\x1b[0m
I don't really know anything about web development, I don't really know anything about web development,
but I have some projects which are presented below: but I have some projects which are presented below:
@ -8,5 +8,15 @@ blek! Site: Second rewrite of my website. https://github.com/b1ek/blekSite
blek! ID: An auth server. https://github.com/b1ek/blekID blek! ID: An auth server. https://github.com/b1ek/blekID
blek! Bin: A pastebin alternative. https://git.blek.codes/blek/bin blek! Bin: A pastebin alternative. https://git.blek.codes/blek/bin
homepage.js: Third rewrite of my website. https://git.blek.codes/blek/homepage.js homepage.js: Third rewrite of my website. https://git.blek.codes/blek/homepage.js
` `,
'/skills/nt': `
Me native dev experience
It isn't much but i do have a couple of projects
(most of my native work is toy projects)
CuteSchedule A school project that is
supposed to be a interactive https://github.com/b1ek/CuteSchedule
schedule menu hanging on
a TV
f2bin Convert files into C code https://github.com/b1ek/f2bin`
} }

View File

@ -69,6 +69,9 @@ function exec_cmd() {
if (cmds[command] != undefined) { if (cmds[command] != undefined) {
cmds[command](c.split(' '), terminal); cmds[command](c.split(' '), terminal);
if (terminal.buffer.active.cursorX != 0) {
terminal.write('\033[30;47m%\033[0m\n');
}
print_prompt(); print_prompt();
return; return;
} }