change PWD to not use prompt-path and fix unicode issues

This commit is contained in:
ProgrammerIn-wonderland 2024-10-11 16:53:25 -04:00 committed by Eric Dubé
parent 010282edf2
commit fb41d2a51c
2 changed files with 3 additions and 3 deletions

View File

@ -87,9 +87,9 @@ RUN echo "export LC_ALL=en_US.UTF-8" >> /root/.bashrc
RUN echo "export LC_ALL=en_US.UTF-8" >> /root/.zshrc
# RUN echo "source /repos/powerlevel10k/powerlevel10k.zsh-theme" >> /home/puter-user/.zshrc
RUN echo "export PS1='(\$?) [\u@puter:\$(basename \$(tty)) \$(prompt-path)] \\033[36;1m\\033[0m '" >> /root/.bashrc
RUN echo "export PS1='(\$?) [\u@puter:\$(basename \$(tty)) \w] \\033[36;1m\\033[0m '" >> /root/.bashrc
RUN echo "setopt PROMPT_SUBST" >> /root/.zshrc
RUN echo "export PROMPT='(%?) [%n@puter:\$(basename \$(tty)) \$(prompt-path)] '" >> /root/.zshrc
RUN echo "export PROMPT='(%?) [%n@puter:\$(basename \$(tty)) %~] '" >> /root/.zshrc
RUN echo "/etc/puter-motd" >> /root/.bashrc
RUN echo "/etc/puter-motd" >> /root/.zshrc

View File

@ -165,7 +165,7 @@ export class EmuCommandProvider {
const decoder = new TextDecoder();
emu.on('message', message => {
if (message.$ === 'stdout') {
ctx.externs.out.write(decoder.decode(message.data));
ctx.externs.out.write(decoder.decode(message.data, {stream: true}));
}
if (message.$ === 'chtermios') {
if ( message.termios.echo !== undefined ) {