mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-10 10:09:14 +00:00
Kernel: Perform output processing on echo
Previously, we would echo characters back just as they were passed to us, even in canonical mode. This caused newlines to not work correctly in some programs. Fixes #7802
This commit is contained in:
parent
42fcc2219d
commit
169e93f0a7
Notes:
sideshowbarker
2024-07-18 16:51:22 +09:00
Author: https://github.com/BertalanD
Commit: 169e93f0a7
Pull-request: https://github.com/SerenityOS/serenity/pull/7806
Issue: https://github.com/SerenityOS/serenity/issues/7802
2 changed files with 32 additions and 13 deletions
|
@ -80,6 +80,10 @@ protected:
|
|||
private:
|
||||
// ^CharacterDevice
|
||||
virtual bool is_tty() const final override { return true; }
|
||||
inline void echo_with_processing(u8);
|
||||
|
||||
template<typename Functor>
|
||||
void process_output(u8, Functor put_char);
|
||||
|
||||
CircularDeque<u8, TTY_BUFFER_SIZE> m_input_buffer;
|
||||
// FIXME: use something like AK::Bitmap but which takes a size template parameter
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue