Giter VIP home page Giter VIP logo

iced_term's People

Contributors

harzu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

iced_term's Issues

fatal runtime error: IO Safety violation: owned file descriptor already closed

Hey, been trying to set the term view up but have been getting the error in the title. Coredump isn't helpful unfortunately, core rendering stuff and stacktrace im too dumb to decipher (pointers to memory in the binary im assuming, but idk how that would help in current situation), and RUST_BACKTRACE=full doesnt show anything either. I'm pretty much following the examples, i create and store Term in App in new() and pass reference to it from &self to term_view() in view(), check for events in update(), closing window on Shutdown request, and doing the subscription thing as well.

My theory is that the Fd gets dropped unexpectedly at some point but I can't figure out why since judging by the code (at first glance at least) and types used to store the Fd, it shouldn't happen? Mb I'm blind and missing some crucial step required to keep the descriptor alive, but as i said before, semantically my logic for handling Term is identical to the examples.

I will say that I don't store settings in App, but just generate them in separate function to immediately pass them to Term constructor (I'm planning to make some customizable behavior for opening new terminals, so i wanna generalize it under one function), which will get returned from said external function upon initialization. But I don't think this would cause the issue right?

Does Rust stable/nightly matter? (I'm on nightly 2024-05-01). Also, in case it's useful, I'n on NixOS, using nix-cargo-integration flake template, with dependencies to run the application set up (checked before termview was added).

I thought that maybe it could've been alacritty crate that's at fault but I didn't find any issues regarding this error in their repo.

Thanks in advance!

MacOS trackpad scrolling is faster than need.

Problem description

winit and iced handle scrolling of macbook's trackpad by pixels instead of lines.
winit and iced have 2 different types of mouse wheel event

iced::mouse::Event::WheelScrolled { delta } => match delta {
    ScrollDelta::Lines { x: _, y } => Event::Scrolled(self.id, y),
    ScrollDelta::Pixels { x: _, y } => Event::Scrolled(self.id, y),
}

but widget handles ScrollDelta::Lines and ScrollDelta::Pixels the same, so scrolling will be faster than need on some devices like macbook's trackpad

Showcase

2024-01-12.00-09-10.mov

Expected behaviour

Scrolling works based on lines delta on any devices

Possible solving

convert pixel count to lines count and provide it to backend as the same way as it is implemented in ScrollDelta::Lines handler

Widget does not render all colors

Problem description

Widget does not render all colors that backend is provided to it.
Alacritty backend has 3 types of colors.

  1. NamedColor
  2. Spec(r, g, b)
  3. Indexed(u8)

Widget does not render any Indexed color.

Showcase

From ITerm2

Screenshot 2024-01-12 at 01 05 43

From iced_term widget

Screenshot 2024-01-12 at 01 06 06

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.