diff --git a/src/emulator/image/Dockerfile b/src/emulator/image/Dockerfile index bcffa6fd..b1291c5e 100644 --- a/src/emulator/image/Dockerfile +++ b/src/emulator/image/Dockerfile @@ -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 diff --git a/src/phoenix/src/puter-shell/providers/EmuCommandProvider.js b/src/phoenix/src/puter-shell/providers/EmuCommandProvider.js index e59026ed..6f32b4aa 100644 --- a/src/phoenix/src/puter-shell/providers/EmuCommandProvider.js +++ b/src/phoenix/src/puter-shell/providers/EmuCommandProvider.js @@ -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 ) {