-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implementation of scrollback #657
Commits on Sep 23, 2017
-
Added
num
andowned_slice
, updatedindex::Line
and added `index……::AbsoluteLine` An `AbsoluteLine` represents an index (or length) into the complete scrollback buffer, rather than just the so-called 'active region'. This will be used in a select few methods within `Grid<T>`, while the rest of them are oblivious to whether scrollback is enabled or not, and continue to use `Line`. Given this distinction, I wonder if one should go further and distinguish between a `Line` as an index, and `NumLines` as a length. But perhaps that's too much verbosity.
Configuration menu - View commit details
-
Copy full SHA for 4461cd5 - Browse repository at this point
Copy the full SHA 4461cd5View commit details -
Wrapped the
unlikely
intrinsic with a safe functionThat said, idk why exactly it was unsafe to start with so perhaps this is incorrect.
Configuration menu - View commit details
-
Copy full SHA for 02269f7 - Browse repository at this point
Copy the full SHA 02269f7View commit details -
Switched to git repository for the
owned_slice
crate.It hasn't been published to crates.io yet.
Configuration menu - View commit details
-
Copy full SHA for 43a1414 - Browse repository at this point
Copy the full SHA 43a1414View commit details -
Implement core scrollback functions
This is accomplished by replacing the `Vec` buffer with a `VecDeque`. The *active region* represents the region in the buffer that is modifiable. It is essentially the latest `self.num_lines()` lines of the buffer. Upon start up, the *visible region* is equal to the active region, and when new lines are added the visible/active region both move accordingly. However when you scroll, the visible region changes. When you type in new commands again tho, the visible region jumps back to equal the active region.
Configuration menu - View commit details
-
Copy full SHA for 9afa6c6 - Browse repository at this point
Copy the full SHA 9afa6c6View commit details -
This might have messed up the 'selected' colours... Have to check later
Configuration menu - View commit details
-
Copy full SHA for aa4666d - Browse repository at this point
Copy the full SHA aa4666dView commit details -
Improved
move_visible_region_
functionsNow they work properly with `lines` > 1.
Configuration menu - View commit details
-
Copy full SHA for 0140e7b - Browse repository at this point
Copy the full SHA 0140e7bView commit details -
Implement a really naive version of mouse scrolling
This completely ignores existing mouse input handling (eg: the `normal_report` function or `scroll_px` field) and only works with a `LineDelta`. Additionally, there is a hardcoded scroll sensitivity of 5.0. This should probably go in the config. Already I've noticed there is flickering every now and then while scrolling. I'll have to investigate what is causing this.
Configuration menu - View commit details
-
Copy full SHA for d0be4bf - Browse repository at this point
Copy the full SHA d0be4bfView commit details -
Configuration menu - View commit details
-
Copy full SHA for fdc2705 - Browse repository at this point
Copy the full SHA fdc2705View commit details -
Now they compile.. Running: they all fail atm :D
Configuration menu - View commit details
-
Copy full SHA for f74f55a - Browse repository at this point
Copy the full SHA f74f55aView commit details -
Fixed bug when scrolling by more than 1 line at a time.
It incorrectly reported `AtBottom` or `AtTop`, meaning that the dirty flag was not set and the terminal wasn't re-rendered. Now the scroll logic is split into three cases: (a) its already at the top/bottom (b) after this movement it *will* be at the top/bottom (c) none of the above.
Configuration menu - View commit details
-
Copy full SHA for fb64bab - Browse repository at this point
Copy the full SHA fb64babView commit details -
Added support for PixelDelta scrolling
thanks jwilm, I tried make the implementation a little more DRY, hopefully I didn't break anything through doing so.
Configuration menu - View commit details
-
Copy full SHA for 7c028d1 - Browse repository at this point
Copy the full SHA 7c028d1View commit details -
Changed
scroll_back_amount
tovisible_region_start
.This makes it easier to understand what is going on. Instead of a distance from the end to the end of the visible region (scroll_back_amount), we simply store the starting cell of the visible region (visible_region_start). This makes various calculations easier.
Configuration menu - View commit details
-
Copy full SHA for a3dfe5d - Browse repository at this point
Copy the full SHA a3dfe5dView commit details -
Improved escape sequence handling etc..
Now it jumps to the bottom when pressing escape. Also some unecessary variables were removed.
Configuration menu - View commit details
-
Copy full SHA for 1fe01ce - Browse repository at this point
Copy the full SHA 1fe01ceView commit details -
Fixed crashes on resizing, nicer resizing behaviour.
Now the window resize algorithm has been built around what I've observed in Gnome Terminal (and I imagine other terminals too)... The algorithm tries to make the bottom line stay the same when growing/shrinking the view. Sometimes this means the cursor needs to be clipped. There's one issue at the moment though: if you open a new terminal, enter fullscreen, then exit fullscreen - there will be an extra prompt in the scrollback buffer. This is really only a cosmetic issue, but still something I'd like to fix down the track. The only way I've thought of fixing this would be to aggressively delete those empty lines when exiting from fullscreen. Perhaps someone else can think of something?
Configuration menu - View commit details
-
Copy full SHA for e1e8943 - Browse repository at this point
Copy the full SHA e1e8943View commit details -
Configuration menu - View commit details
-
Copy full SHA for 24ca618 - Browse repository at this point
Copy the full SHA 24ca618View commit details -
Added
PageUp
andPageDown
commandsAlso modified the default key bindings to use those and `ScrollUp`/`ScrolDown`... The problem is, this overrides some of the existing keybindings. Which ones should take precedence?
Configuration menu - View commit details
-
Copy full SHA for 4da641e - Browse repository at this point
Copy the full SHA 4da641eView commit details -
Configuration menu - View commit details
-
Copy full SHA for e62eaed - Browse repository at this point
Copy the full SHA e62eaedView commit details -
The rest of the failing tests happen when the test case causes scrolling. Not sure how to modify Grid to fix those.
Configuration menu - View commit details
-
Copy full SHA for d636b4d - Browse repository at this point
Copy the full SHA d636b4dView commit details -
Added config for scrollback (enabled and max_lines)
At the moment, enabled=false is somewhat buggy. ie: it still will scroll if the window is resized...
Configuration menu - View commit details
-
Copy full SHA for 27d7245 - Browse repository at this point
Copy the full SHA 27d7245View commit details -
Configuration menu - View commit details
-
Copy full SHA for feda7b8 - Browse repository at this point
Copy the full SHA feda7b8View commit details -
Made
AbsoluteLine
references stay constant even when lines are popp……ed/swapped This is needed for fixing selections. Sneak peek: the new selections system will use `AbsolutePoint` instead of `Point` and so you'll be able to select anywhere in the grid, even outside the visible/active regions.
Configuration menu - View commit details
-
Copy full SHA for 9977f00 - Browse repository at this point
Copy the full SHA 9977f00View commit details -
Configuration menu - View commit details
-
Copy full SHA for bb54364 - Browse repository at this point
Copy the full SHA bb54364View commit details
Commits on Sep 24, 2017
-
Configuration menu - View commit details
-
Copy full SHA for 6c5039e - Browse repository at this point
Copy the full SHA 6c5039eView commit details
Commits on Sep 29, 2017
-
Configuration menu - View commit details
-
Copy full SHA for aafe8c2 - Browse repository at this point
Copy the full SHA aafe8c2View commit details
Commits on Dec 10, 2017
-
Added
num
andowned_slice
, updatedindex::Line
and added `index……::AbsoluteLine` An `AbsoluteLine` represents an index (or length) into the complete scrollback buffer, rather than just the so-called 'active region'. This will be used in a select few methods within `Grid<T>`, while the rest of them are oblivious to whether scrollback is enabled or not, and continue to use `Line`. Given this distinction, I wonder if one should go further and distinguish between a `Line` as an index, and `NumLines` as a length. But perhaps that's too much verbosity.
Configuration menu - View commit details
-
Copy full SHA for 9a24729 - Browse repository at this point
Copy the full SHA 9a24729View commit details -
Wrapped the
unlikely
intrinsic with a safe functionThat said, idk why exactly it was unsafe to start with so perhaps this is incorrect.
Configuration menu - View commit details
-
Copy full SHA for a81a7f2 - Browse repository at this point
Copy the full SHA a81a7f2View commit details -
Switched to git repository for the
owned_slice
crate.It hasn't been published to crates.io yet.
Configuration menu - View commit details
-
Copy full SHA for 2fe8764 - Browse repository at this point
Copy the full SHA 2fe8764View commit details -
Implement core scrollback functions
This is accomplished by replacing the `Vec` buffer with a `VecDeque`. The *active region* represents the region in the buffer that is modifiable. It is essentially the latest `self.num_lines()` lines of the buffer. Upon start up, the *visible region* is equal to the active region, and when new lines are added the visible/active region both move accordingly. However when you scroll, the visible region changes. When you type in new commands again tho, the visible region jumps back to equal the active region.
Configuration menu - View commit details
-
Copy full SHA for 0321592 - Browse repository at this point
Copy the full SHA 0321592View commit details -
This might have messed up the 'selected' colours... Have to check later
Configuration menu - View commit details
-
Copy full SHA for 4b22494 - Browse repository at this point
Copy the full SHA 4b22494View commit details -
Improved
move_visible_region_
functionsNow they work properly with `lines` > 1.
Configuration menu - View commit details
-
Copy full SHA for 8ae8812 - Browse repository at this point
Copy the full SHA 8ae8812View commit details -
Implement a really naive version of mouse scrolling
This completely ignores existing mouse input handling (eg: the `normal_report` function or `scroll_px` field) and only works with a `LineDelta`. Additionally, there is a hardcoded scroll sensitivity of 5.0. This should probably go in the config. Already I've noticed there is flickering every now and then while scrolling. I'll have to investigate what is causing this.
Configuration menu - View commit details
-
Copy full SHA for 0899f03 - Browse repository at this point
Copy the full SHA 0899f03View commit details -
Configuration menu - View commit details
-
Copy full SHA for 641e808 - Browse repository at this point
Copy the full SHA 641e808View commit details -
Now they compile.. Running: they all fail atm :D
Configuration menu - View commit details
-
Copy full SHA for 86db980 - Browse repository at this point
Copy the full SHA 86db980View commit details -
Fixed bug when scrolling by more than 1 line at a time.
It incorrectly reported `AtBottom` or `AtTop`, meaning that the dirty flag was not set and the terminal wasn't re-rendered. Now the scroll logic is split into three cases: (a) its already at the top/bottom (b) after this movement it *will* be at the top/bottom (c) none of the above.
Configuration menu - View commit details
-
Copy full SHA for 0394c70 - Browse repository at this point
Copy the full SHA 0394c70View commit details -
Added support for PixelDelta scrolling
thanks jwilm, I tried make the implementation a little more DRY, hopefully I didn't break anything through doing so.
Configuration menu - View commit details
-
Copy full SHA for 2f198cb - Browse repository at this point
Copy the full SHA 2f198cbView commit details -
Changed
scroll_back_amount
tovisible_region_start
.This makes it easier to understand what is going on. Instead of a distance from the end to the end of the visible region (scroll_back_amount), we simply store the starting cell of the visible region (visible_region_start). This makes various calculations easier.
Configuration menu - View commit details
-
Copy full SHA for 0147e44 - Browse repository at this point
Copy the full SHA 0147e44View commit details -
Improved escape sequence handling etc..
Now it jumps to the bottom when pressing escape. Also some unecessary variables were removed.
Configuration menu - View commit details
-
Copy full SHA for 3720b90 - Browse repository at this point
Copy the full SHA 3720b90View commit details -
Fixed crashes on resizing, nicer resizing behaviour.
Now the window resize algorithm has been built around what I've observed in Gnome Terminal (and I imagine other terminals too)... The algorithm tries to make the bottom line stay the same when growing/shrinking the view. Sometimes this means the cursor needs to be clipped. There's one issue at the moment though: if you open a new terminal, enter fullscreen, then exit fullscreen - there will be an extra prompt in the scrollback buffer. This is really only a cosmetic issue, but still something I'd like to fix down the track. The only way I've thought of fixing this would be to aggressively delete those empty lines when exiting from fullscreen. Perhaps someone else can think of something?
Configuration menu - View commit details
-
Copy full SHA for a3516fc - Browse repository at this point
Copy the full SHA a3516fcView commit details -
Configuration menu - View commit details
-
Copy full SHA for b48a38c - Browse repository at this point
Copy the full SHA b48a38cView commit details -
Added
PageUp
andPageDown
commandsAlso modified the default key bindings to use those and `ScrollUp`/`ScrolDown`... The problem is, this overrides some of the existing keybindings. Which ones should take precedence?
Configuration menu - View commit details
-
Copy full SHA for 3f0196e - Browse repository at this point
Copy the full SHA 3f0196eView commit details -
The rest of the failing tests happen when the test case causes scrolling. Not sure how to modify Grid to fix those.
Configuration menu - View commit details
-
Copy full SHA for de925d9 - Browse repository at this point
Copy the full SHA de925d9View commit details -
Added config for scrollback (enabled and max_lines)
At the moment, enabled=false is somewhat buggy. ie: it still will scroll if the window is resized...
Configuration menu - View commit details
-
Copy full SHA for 9c0de27 - Browse repository at this point
Copy the full SHA 9c0de27View commit details -
Configuration menu - View commit details
-
Copy full SHA for b8a9f8b - Browse repository at this point
Copy the full SHA b8a9f8bView commit details -
Made
AbsoluteLine
references stay constant even when lines are popp……ed/swapped This is needed for fixing selections. Sneak peek: the new selections system will use `AbsolutePoint` instead of `Point` and so you'll be able to select anywhere in the grid, even outside the visible/active regions.
Configuration menu - View commit details
-
Copy full SHA for 2797a3f - Browse repository at this point
Copy the full SHA 2797a3fView commit details -
Now all selections operate on `AbsoluteLine`s
Configuration menu - View commit details
-
Copy full SHA for 0198dc4 - Browse repository at this point
Copy the full SHA 0198dc4View commit details -
Configuration menu - View commit details
-
Copy full SHA for e206ddb - Browse repository at this point
Copy the full SHA e206ddbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 04a3bf2 - Browse repository at this point
Copy the full SHA 04a3bf2View commit details
Commits on Dec 11, 2017
-
Rebased neon64/alacritty on top of the latest alacritty master. These are just some minor tweaks I had to do manually after merging.
Configuration menu - View commit details
-
Copy full SHA for 7820a36 - Browse repository at this point
Copy the full SHA 7820a36View commit details
Commits on Dec 12, 2017
-
Ref tests were broken because it assumed for existing tests that a scrollback buffer is present. To fix this a check for tests without scrollback has been added. Once a ref without scrollback is detected, only the visible buffer is compared.
Configuration menu - View commit details
-
Copy full SHA for f1a514b - Browse repository at this point
Copy the full SHA f1a514bView commit details -
Configuration menu - View commit details
-
Copy full SHA for bad5a5d - Browse repository at this point
Copy the full SHA bad5a5dView commit details
Commits on Dec 13, 2017
-
Added
num
andowned_slice
, updatedindex::Line
and added `index……::AbsoluteLine` An `AbsoluteLine` represents an index (or length) into the complete scrollback buffer, rather than just the so-called 'active region'. This will be used in a select few methods within `Grid<T>`, while the rest of them are oblivious to whether scrollback is enabled or not, and continue to use `Line`. Given this distinction, I wonder if one should go further and distinguish between a `Line` as an index, and `NumLines` as a length. But perhaps that's too much verbosity.
Configuration menu - View commit details
-
Copy full SHA for 7a15800 - Browse repository at this point
Copy the full SHA 7a15800View commit details -
Wrapped the
unlikely
intrinsic with a safe functionThat said, idk why exactly it was unsafe to start with so perhaps this is incorrect.
Configuration menu - View commit details
-
Copy full SHA for a1b59f6 - Browse repository at this point
Copy the full SHA a1b59f6View commit details -
Switched to git repository for the
owned_slice
crate.It hasn't been published to crates.io yet.
Configuration menu - View commit details
-
Copy full SHA for 7628cfd - Browse repository at this point
Copy the full SHA 7628cfdView commit details -
Implement core scrollback functions
This is accomplished by replacing the `Vec` buffer with a `VecDeque`. The *active region* represents the region in the buffer that is modifiable. It is essentially the latest `self.num_lines()` lines of the buffer. Upon start up, the *visible region* is equal to the active region, and when new lines are added the visible/active region both move accordingly. However when you scroll, the visible region changes. When you type in new commands again tho, the visible region jumps back to equal the active region.
Configuration menu - View commit details
-
Copy full SHA for fc3a220 - Browse repository at this point
Copy the full SHA fc3a220View commit details -
This might have messed up the 'selected' colours... Have to check later
Configuration menu - View commit details
-
Copy full SHA for 2a57b38 - Browse repository at this point
Copy the full SHA 2a57b38View commit details -
Improved
move_visible_region_
functionsNow they work properly with `lines` > 1.
Configuration menu - View commit details
-
Copy full SHA for 2c1807e - Browse repository at this point
Copy the full SHA 2c1807eView commit details -
Implement a really naive version of mouse scrolling
This completely ignores existing mouse input handling (eg: the `normal_report` function or `scroll_px` field) and only works with a `LineDelta`. Additionally, there is a hardcoded scroll sensitivity of 5.0. This should probably go in the config. Already I've noticed there is flickering every now and then while scrolling. I'll have to investigate what is causing this.
Configuration menu - View commit details
-
Copy full SHA for f030716 - Browse repository at this point
Copy the full SHA f030716View commit details -
Configuration menu - View commit details
-
Copy full SHA for fe55038 - Browse repository at this point
Copy the full SHA fe55038View commit details -
Now they compile.. Running: they all fail atm :D
Configuration menu - View commit details
-
Copy full SHA for 1878304 - Browse repository at this point
Copy the full SHA 1878304View commit details -
Fixed bug when scrolling by more than 1 line at a time.
It incorrectly reported `AtBottom` or `AtTop`, meaning that the dirty flag was not set and the terminal wasn't re-rendered. Now the scroll logic is split into three cases: (a) its already at the top/bottom (b) after this movement it *will* be at the top/bottom (c) none of the above.
Configuration menu - View commit details
-
Copy full SHA for 87c3b12 - Browse repository at this point
Copy the full SHA 87c3b12View commit details -
Added support for PixelDelta scrolling
thanks jwilm, I tried make the implementation a little more DRY, hopefully I didn't break anything through doing so.
Configuration menu - View commit details
-
Copy full SHA for 606f5fc - Browse repository at this point
Copy the full SHA 606f5fcView commit details -
Changed
scroll_back_amount
tovisible_region_start
.This makes it easier to understand what is going on. Instead of a distance from the end to the end of the visible region (scroll_back_amount), we simply store the starting cell of the visible region (visible_region_start). This makes various calculations easier.
Configuration menu - View commit details
-
Copy full SHA for 2dbc8cb - Browse repository at this point
Copy the full SHA 2dbc8cbView commit details -
Improved escape sequence handling etc..
Now it jumps to the bottom when pressing escape. Also some unecessary variables were removed.
Configuration menu - View commit details
-
Copy full SHA for c53535e - Browse repository at this point
Copy the full SHA c53535eView commit details -
Fixed crashes on resizing, nicer resizing behaviour.
Now the window resize algorithm has been built around what I've observed in Gnome Terminal (and I imagine other terminals too)... The algorithm tries to make the bottom line stay the same when growing/shrinking the view. Sometimes this means the cursor needs to be clipped. There's one issue at the moment though: if you open a new terminal, enter fullscreen, then exit fullscreen - there will be an extra prompt in the scrollback buffer. This is really only a cosmetic issue, but still something I'd like to fix down the track. The only way I've thought of fixing this would be to aggressively delete those empty lines when exiting from fullscreen. Perhaps someone else can think of something?
Configuration menu - View commit details
-
Copy full SHA for 69a4341 - Browse repository at this point
Copy the full SHA 69a4341View commit details -
Configuration menu - View commit details
-
Copy full SHA for a91eb2d - Browse repository at this point
Copy the full SHA a91eb2dView commit details -
Added
PageUp
andPageDown
commandsAlso modified the default key bindings to use those and `ScrollUp`/`ScrolDown`... The problem is, this overrides some of the existing keybindings. Which ones should take precedence?
Configuration menu - View commit details
-
Copy full SHA for b047c78 - Browse repository at this point
Copy the full SHA b047c78View commit details -
The rest of the failing tests happen when the test case causes scrolling. Not sure how to modify Grid to fix those.
Configuration menu - View commit details
-
Copy full SHA for 266250c - Browse repository at this point
Copy the full SHA 266250cView commit details -
Added config for scrollback (enabled and max_lines)
At the moment, enabled=false is somewhat buggy. ie: it still will scroll if the window is resized...
Configuration menu - View commit details
-
Copy full SHA for 6292ee4 - Browse repository at this point
Copy the full SHA 6292ee4View commit details -
Configuration menu - View commit details
-
Copy full SHA for b174196 - Browse repository at this point
Copy the full SHA b174196View commit details -
Made
AbsoluteLine
references stay constant even when lines are popp……ed/swapped This is needed for fixing selections. Sneak peek: the new selections system will use `AbsolutePoint` instead of `Point` and so you'll be able to select anywhere in the grid, even outside the visible/active regions.
Configuration menu - View commit details
-
Copy full SHA for 2bcc5c0 - Browse repository at this point
Copy the full SHA 2bcc5c0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9358d29 - Browse repository at this point
Copy the full SHA 9358d29View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8949b41 - Browse repository at this point
Copy the full SHA 8949b41View commit details -
Configuration menu - View commit details
-
Copy full SHA for c9ae0b4 - Browse repository at this point
Copy the full SHA c9ae0b4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3302dc5 - Browse repository at this point
Copy the full SHA 3302dc5View commit details -
Configuration menu - View commit details
-
Copy full SHA for af853b4 - Browse repository at this point
Copy the full SHA af853b4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8562562 - Browse repository at this point
Copy the full SHA 8562562View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7fa91b7 - Browse repository at this point
Copy the full SHA 7fa91b7View commit details
Commits on Dec 14, 2017
-
Configuration menu - View commit details
-
Copy full SHA for f5f9dff - Browse repository at this point
Copy the full SHA f5f9dffView commit details -
Disable scrollback in the alternate buffer
In the xterm specification the escape sequence 1049 is used to switch to an alternate buffer and back. This is used by applications like `man` or `less` for hijacking the scrollback. With this commit whenever 1049h is sent, scrollback is disabled. And sending 1049l will then enable scrollback again and switch back to the normal buffer.
Configuration menu - View commit details
-
Copy full SHA for 578038b - Browse repository at this point
Copy the full SHA 578038bView commit details -
Seems like the current Cargo.lock file doesn't work. So here's the updated version that should make everything work properly.
Configuration menu - View commit details
-
Copy full SHA for cb1ef5a - Browse repository at this point
Copy the full SHA cb1ef5aView commit details
Commits on Dec 15, 2017
-
Reset
current_scrollback
to true after unfullscreeningAlso only resets it to true if scrollback was enabled in the first place
Configuration menu - View commit details
-
Copy full SHA for 22e1937 - Browse repository at this point
Copy the full SHA 22e1937View commit details -
Configuration menu - View commit details
-
Copy full SHA for c4d55b2 - Browse repository at this point
Copy the full SHA c4d55b2View commit details -
Add additional scrollback tests
Added some additional tests. Most of these tests check the same thing as the existing tests but take scrollback into account. The vim_scrollback_scrolling_disabled check makes sure the normal scrollback is disabled inside of vim when the alternate screen buffer is active. The alternate_screen_buffer_(enter|exit) make sure the grid changes to the alternate buffer and back when the 1049 escape sequence is sent.
Configuration menu - View commit details
-
Copy full SHA for 45bdf24 - Browse repository at this point
Copy the full SHA 45bdf24View commit details
Commits on Dec 16, 2017
-
Merge pull request #6 from chrisduerr/scrollback
Add additional scrollback tests
Configuration menu - View commit details
-
Copy full SHA for 9946706 - Browse repository at this point
Copy the full SHA 9946706View commit details -
Currently scrollback tests were failing because some fields were missing and the `currently_enabled` flag was mismatched. This is a first attempt at fixing this, with this commit all test work again.
Configuration menu - View commit details
-
Copy full SHA for c2f720d - Browse repository at this point
Copy the full SHA c2f720dView commit details -
The detection for old ref tests now works properly without any false positives. All tests still work.
Configuration menu - View commit details
-
Copy full SHA for c9c11b2 - Browse repository at this point
Copy the full SHA c9c11b2View commit details -
Redo alternate_screen_buffer_exit test
I'm not 100% certain why this test was failing, but after redoing the test with a little different approach, everything seems to be going right now.
Configuration menu - View commit details
-
Copy full SHA for 547cc5f - Browse repository at this point
Copy the full SHA 547cc5fView commit details
Commits on Dec 17, 2017
-
Configuration menu - View commit details
-
Copy full SHA for 991d906 - Browse repository at this point
Copy the full SHA 991d906View commit details -
Configuration menu - View commit details
-
Copy full SHA for abc38a0 - Browse repository at this point
Copy the full SHA abc38a0View commit details -
Add scrollback to existing ref-tests
All existing ref-test have been manually edited so they now have the scrollback field. This should be a better way to test the old tests with scrollback.
Configuration menu - View commit details
-
Copy full SHA for 89d9097 - Browse repository at this point
Copy the full SHA 89d9097View commit details
Commits on Dec 18, 2017
-
Merge pull request #7 from chrisduerr/scrollback
Fix failing ref tests
Configuration menu - View commit details
-
Copy full SHA for a46cbf0 - Browse repository at this point
Copy the full SHA a46cbf0View commit details -
Remove unnecessary public statement
This is still a leftover from testing the ref test changes.
Configuration menu - View commit details
-
Copy full SHA for 0ae3f55 - Browse repository at this point
Copy the full SHA 0ae3f55View commit details
Commits on Dec 20, 2017
-
Fixed resizing when scrollback is disabled, renamed some functions
Issues with resize: `self.total_lines_in_buffer` was being used to calculate whether new lines should be added. This meant that lines weren't added when they needed to be. `move_visible_region_up` was actually used internally by `grow_lines`, and @chrisduerr's PR accidentally disabled it when scrollback was disabled. So I've moved the scrollback enabled check to inside `Term` instead. Idk if this is good in the future or not. Renames: `total_lines_in_buffer()` -> `num_absolute_lines()`, since not all those absolute lines were actually being stored in the buffer (it was misleading). `min_line` -> `min_absolute_line` -> reflects what it actually returns.. the minimum line in the active/visible region will always be `Line(0)` - we don't need a function for that. Also added an assertion that: `self.raw.len() >= self.absolute_to_raw_index(self.visible_region().end)` Also got rid of an extra `impl<T> Grid<T>` block, by moving its contents into the other one.
Configuration menu - View commit details
-
Copy full SHA for 5d0f994 - Browse repository at this point
Copy the full SHA 5d0f994View commit details -
Configuration menu - View commit details
-
Copy full SHA for 56deb00 - Browse repository at this point
Copy the full SHA 56deb00View commit details -
Fixed infinite loop inside
grow_lines
, removed extraneous scrollbac……k enabled check
Configuration menu - View commit details
-
Copy full SHA for 6836308 - Browse repository at this point
Copy the full SHA 6836308View commit details -
Remove unnecessary public statement
This is still a leftover from testing the ref test changes.
Configuration menu - View commit details
-
Copy full SHA for f14a8d8 - Browse repository at this point
Copy the full SHA f14a8d8View commit details -
The ref tests were failing because the `get_scrollback_enabled` method was checking for currently enabled scrollback, not absolutely enabled scrollback. This has been fixed by introducing a separate method for checking if it's enabled. To prevent this issue in the future the `get_scrollback_enabled` has also been renamed to `scrollback_currently_enabled` to make clear what is actually being tested. There were also a few public statements sprinkled around that were not necessary, those have been removed.
Configuration menu - View commit details
-
Copy full SHA for 5b531b8 - Browse repository at this point
Copy the full SHA 5b531b8View commit details -
Configuration menu - View commit details
-
Copy full SHA for e27ee58 - Browse repository at this point
Copy the full SHA e27ee58View commit details
Commits on Dec 21, 2017
-
Merge pull request #9 from chrisduerr/scrollback
Fix failing ref tests
Configuration menu - View commit details
-
Copy full SHA for a0b55ca - Browse repository at this point
Copy the full SHA a0b55caView commit details