1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 08:08:12 +00:00
serenity/Userland/Shell
Daniel Bertalan 6b39c6b1bf Shell: Avoid many single byte write() syscalls when printing the prompt
Whenever the prompt is printed, we write a line's worth of space
characters to the terminal to ensure that the prompt ends up on a new
line even if there is dangling output on the current line.

We write these to the stderr, which is unbuffered, so each putc() call
would come with the overhead of a system call. Let's use a buffer
+ fwrite() instead, since heap allocation is much faster.
2021-12-30 14:26:29 +01:00
..
Tests Shell: Remove sigpipe.sh.out artefact after failure 2021-12-13 16:20:29 +03:30
AST.cpp Shell: Make the Join operation respect nodes that have a next chain 2021-12-13 16:26:10 +03:30
AST.h AK: Convert AK::Format formatting helpers to returning ErrorOr<void> 2021-11-17 00:21:13 +01:00
Builtin.cpp Shell: Cast unused smart-pointer return values to void 2021-12-05 15:31:03 +01:00
CMakeLists.txt Everywhere: Add component declarations 2021-06-17 11:03:51 +02:00
Execution.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
Formatter.cpp Shell: Convert StringBuilder::appendf() => AK::Format 2021-05-07 21:12:09 +02:00
Formatter.h Everywhere: Pass AK::StringView by value 2021-11-11 01:27:46 +01:00
Forward.h Shell: Add support for heredocs 2021-04-29 20:25:56 +02:00
ImmediateFunctions.cpp Everywhere: Pass AK::StringView by value 2021-11-11 01:27:46 +01:00
Job.cpp Everywhere: Use "the SerenityOS developers." in copyright headers 2021-04-29 00:59:26 +02:00
Job.h Shell: Hide job times behind SHELL_JOB_DEBUG flag 2021-05-21 12:05:34 +04:30
main.cpp Shell: Remove dbgln related to process group IDs 2021-08-12 22:42:50 +02:00
NodeVisitor.cpp Shell: Add support for heredocs 2021-04-29 20:25:56 +02:00
NodeVisitor.h Shell: Add support for heredocs 2021-04-29 20:25:56 +02:00
Parser.cpp Shell: Don't skip over the first brace expansion entry if it's empty 2021-12-16 03:26:59 +03:30
Parser.h Everywhere: Pass AK::StringView by value 2021-11-11 01:27:46 +01:00
Shell.cpp Shell: Avoid many single byte write() syscalls when printing the prompt 2021-12-30 14:26:29 +01:00
Shell.h Everywhere: Pass AK::StringView by value 2021-11-11 01:27:46 +01:00
SyntaxHighlighter.cpp LibWeb+LibSyntax: Implement nested syntax highlighters 2021-06-07 14:45:49 +04:30
SyntaxHighlighter.h LibWeb+LibSyntax: Implement nested syntax highlighters 2021-06-07 14:45:49 +04:30