From 28eea9f6a837dad5febfe9b021b7070e96b286f9 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Tue, 12 Nov 2019 05:47:32 -0500 Subject: remove parser.screen_mut it's easier to reason about if you are only able to get an immutable reference to the internal screen. this also required changing the api for bells. --- CHANGELOG.md | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'CHANGELOG.md') diff --git a/CHANGELOG.md b/CHANGELOG.md index bd0dc9f..c268b6c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,9 +8,19 @@ * `Default` impl for `Parser` which creates an 80x24 terminal with no scrollback. +### Removed + +* `Parser::screen_mut` (and the `pub` `&mut self` methods on `Screen`). The few + things you can do to change the screen state directly are now exposed as + methods on `Parser` itself. + ### Changed * `Cell::contents` now returns a `String` instead of a `&str`. +* `Screen::check_audible_bell` and `Screen::check_visual_bell` have been + replaced with `Screen::audible_bell_count` and `Screen::visual_bell_count`. + You should keep track of the "since the last method call" state yourself + instead of having the screen track it for you. ### Fixed -- cgit v1.2.3-54-g00ecf