Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Color PS1s and improve the rows and columns detection in serial shells
This overwrites the default debian bashrc with a custom bashrc that does two things: - Makes the prompt green or red depending on whether the previous command succeeded or failed, I think it's quite useful in general - Before every command on the serial tty, uses a crazy escape sequence to query the host terminal for its dimensions and resize the guest terminal accordingly: https://blog.n-z.jp/blog/2022-01-30-serial-console-resize.html this makes ncurses apps like vim work fairly nicely even on the serial pane. Ideally, this should automatically run on host terminal resizes (SIGWINCH) but the series proposing this paravirtualization to QEMU never got reviewed and merged :( https://lists.endsoftwarepatents.org/archive/html/qemu-devel/2020-06/msg09591.html this should anyway be much better than the current situation where the guest always assumes an 80x24 screen
- Loading branch information