T23: the owner's checks on macOS: on macOS 27 gpui's Selection material drew no blur, so blur/macos gives the window's effect view underWindowBackground, radius 30; a button at each end of the title bar hides and shows its column, kept in the settings; shot reads an effect view's blur radius; new comments cut to ten words
This commit is contained in:
12 files changed
+216
-55
No files matched your search
+1
-1
@@ -186,7 +186,7 @@ impl Pty {
|
||||
|
||||
#[cfg(all(test, unix))]
|
||||
impl Pty {
|
||||
/// Whether the program reads keys one by one, as a line editor does.
|
||||
/// Whether the program reads raw keys, canonical mode off.
|
||||
pub(crate) fn reads_keys(&self) -> bool {
|
||||
use rustix_openpty::rustix::termios::{LocalModes, tcgetattr};
|
||||
let modes = tcgetattr(&self.master).expect("the pty's modes");
|
||||
|
||||
@@ -108,7 +108,7 @@ impl Run {
|
||||
}
|
||||
}
|
||||
|
||||
/// Types `line` at a prompt, once its line editor reads raw keys.
|
||||
/// Types `line` once the line editor reads raw keys.
|
||||
fn send(&mut self, line: &str) {
|
||||
self.until("line editor", |run| run.pty.reads_keys());
|
||||
self.pty.write(format!("{line}\r").into_bytes());
|
||||
|
||||
+1
-1
@@ -45,7 +45,7 @@ impl Pty {
|
||||
self.child.id()
|
||||
}
|
||||
|
||||
/// A copy of the master, for tests to read its modes.
|
||||
/// A copy of the master; tests read its modes.
|
||||
#[cfg(test)]
|
||||
pub fn master(&self) -> io::Result<File> {
|
||||
self.file.try_clone()
|
||||
|
||||
Reference in new issue
Block a user