Canonical’s Upcoming AI Tool: Talk to Ubuntu Instead of Typing
This week the Ubuntu desktop’s director of engineering announced they’re bringing speech-to-text dictation to Ubuntu Desktop, aiming for an experience “that feels like a natural part of the desktop while respecting user privacy and running entirely on local hardware.”
“Speech recognition has become a common feature on modern platforms, and we think it … ⌘ Read more
tt. But then, in the message tree, I spot another missed typo. My process is then to go to my twtxt.txt and fix it by hand. However, I still have to clean up tt's cache. This is rather tidious:
Now I’m curious how movwin deals with that. ;-)
Focus handling? I hardly remember, lol. 😅 Did that 6 months ago and haven’t touched it since. Let’s see.
The core main loop gets keyboard/mouse events from curses. At this level, the main loop only knows about exactly one widget, so it passes the event to that widget (whatever that is, doesn’t matter – they all inherit from the Widget base class, it could be a Window, a WindowManager, or an Edit box directly).
The outermost widget is usually a WindowManager. It implements a few hotkeys of its own, like switching to another window. If none of those hotkeys match, it passes the event to the currently focused window.
Same story here: Window implements some hotkeys (like opening the menu bar). If none of those match, then … the magic happens.
Each Window acts as a focus manager. It can descend into its child widget hierarchy and collect all child widgets in a depth-first search. They are collected into a flat list. Each Window then has an attribute _focus_position, which is an index into that list. Pressing Tab or Shift+Tab increases or decreases that index and that allows you to select the next/previous focusable widget in the current window.
Eventually, Window passes the input event to the currently focused widget.
Usually on initialization, the application can ask a Window object to focus a certain widget. The file selection dialog does that, for example, because the “natural” focus order would be to focus the Edit box at the top of the window first – but that’s not what the user wants, the Table showing the list of files should be focused.
If no widget ever feels responsible for handling a certain input event, then there’s a global unhandled_input callback that the application can provide (same as in urwid).
I think that’s it.
Hm, that’s more complicated than I remembered, but apparently it works fine, because I completely forgot about this. 😅 All I did in the last few months was make new classes that inherit from Widget, like the new Table class or Edit or HexEdit or whatever, and if they want to get input events, then they must implement the methods input_key() or input_mouse().
Does this answer your question? 😅 (I admit that I didn’t exactly understand your scenario, so I just went ahead and rambled about my implementation. 😅)
tt. But then, in the message tree, I spot another missed typo. My process is then to go to my twtxt.txt and fix it by hand. However, I still have to clean up tt's cache. This is rather tidious:
Getting the vim key bindings to work for focus switching in this modal dialog took me forever. Only cursors and (Shift+)Tab are supported out of the box. I absolutely understand that, it’s fine. I installed an input handler on the dialog, but the focus always stayed the same.
After two wasted hours, I was in despair to copy the tview.Modal into my own code base. Of course, I had to fix all the private tview field accesses first. But even installing the input handler directly on the buttons themselves did not work. Even though, the handler was definitely executed, the focus did not shift. Forcing redraws as a last resort also did not work.
Looking through all the messy chained input handling, I eventually stumbled across another place in the tview.Form, which is internally used by tview.Modal. This messed around with app focus receptions and input handlers. This gave me the idea to make the tview.Application refocus my modal dialog after I told the modal dialog which button to select. And would you look at that, this did the trick! I haven’t completely figured out what is going on exactly, but I could get rid of my Modal clone again.
I always go through hell with focus handling in tview. Each and every time. It just does not feel natural to me. Complete brainfuck to wrap my head around. The Urwid API felt sooo much more refined, it never was an issue. It just works. In fact, I cannot think of any other TUI library that has remotely the same pain level when it comes to focusing widgets as tview.
Now I’m curious how movwin deals with that. ;-)
Should I change anything or stay natural? ⌘ Read more
Find Your Friends Director, Bella Thorne, Sophia Ali, & Chloe Cherry Talk NSFW Thriller Movie
Find Your Friends director Izabel Pakzad and stars Bella Thorne, Chloe Cherry, and Sophia Ali spoke about the bold thriller movie, which is Pakzad’s directorial debut. The four women discussed the film’s party scenes, its intense final act, and its propulsive nature. Also featuring Helena Howard and Zion Moreno, it is now streaming on Shudder. […]
The post [ … ⌘ Read more
Nine new-season accessories starting from $35
From acid-green glasses to sleek boots and gloves to nature-inspired jewellery, small fashion additions go a long way. ⌘ Read more
Against my will, I’ve come to love the charisma black hole that is MrBeast
He’s YouTube’s biggest ever star – despite having no connections, charm, or any natural facility for it. ⌘ Read more
My natural F cups really are my best assets ⌘ Read more
Enjoy my big soft natural titties ⌘ Read more
Naturally full and owning it ⌘ Read more
Five of the best Melbourne homes for sale for winter
Looking for to stay warm this winter? Here are some homes for sale with natural light or fireplaces or underfloor heating to beat the chill. ⌘ Read more
Five of the best Sydney homes for sale for winter
Looking for to stay warm this winter? Here are some homes for sale with natural light or fireplaces or ducted heating to beat the chill. ⌘ Read more
I got a juicy mombod with a very soft pair of natural titties ⌘ Read more
Human migration has surged since 2000 – these maps reveal where people are going
Article URL: https://www.nature.com/articles/d41586-026-01796-y
Comments URL: https://news.ycombinator.com/item?id=48488901
Points: 7
# Comments: 2 ⌘ Read more
How Mexican World Cup Stadiums Achieved FIFA’s Environmental Certifications
Venues hosting the 2026 World Cup must meet high standards to obtain environmental certifications, but FIFA also requires that they use natural grass, which is water-intensive to maintain. ⌘ Read more
Woman hit and killed by rubbish truck
The griefstricken grandparents of a 23-year-old woman who was hit and killed by a rubbish truck have remembered her as a “good-natured, gorgeous young woman”. ⌘ Read more
Humans Prefer To Walk Anticlockwise, Scientists Find
fjo3 shares a report from The Guardian: Tests reveal that when people are ambling about, they have a natural tendency to turn to the left and walk in an anticlockwise direction. “If you simply ask someone to start walking, whether they are wandering around a museum, a supermarket, or even an empty room, it is surprisingly likely that they will drift counterclockwise,” … ⌘ Read more
MILF stacked with huge naturals 🫦 ⌘ Read more
‘Busting out the dance moves’: Katter the life of the party in Melbourne
The member for Kennedy in Queensland was spotted in Melbourne – and dancing on social media – and naturally, we were curious. ⌘ Read more
My naturals are above average ⌘ Read more
China Opens World’s First Wind-Powered Underwater Data Center
With an initial capacity of 24 megawatts, the innovative data center uses seawater as a natural cooling system. ⌘ Read more
Playing Cassie Was ‘So Freeing,’ Sydney Sweeney Wants That Freedom in Next Roles
Sydney Sweeney recently revealed that she enjoyed playing Cassie in Euphoria. She also shared that the “freeing” nature of the role inspired her to approach future acting parts similarly. What Sydney Sweeney will carry from Euphoria to her next roles Sydney Sweeney recently sat down for an interview where she reflected on her time playing […]
The post [Playing Cassie Was ‘So Freeing,’ Sydney Sweeney … ⌘ Read more
**Turquie: «La nature du régime politique est en train de changer» **
Alors que le dirigeant du principal parti d’opposition vient d’être destitué, le chercheur Yohanan Benhaïm décrit la dérive suivie par le pouvoir présidentiel de Recep Tayyip Erdoğan. Il analyse également le positionnement de la Turquie dans la recomposition en cours du Moyen-Orient. ⌘ Read more
LNG project advances but power bill levy ruled out
The Government says it is moving to the next stage of building a liquefied natural gas import facility, but it will not be funded through a levy on power bills.
Energy Minister Simeon Brown said officials were still working on how the import infrastructure would be paid for, “including engaging with the gentailers on a fair funding model”. ⌘ Read more
blessed with these natural D cups and they’re even heavier than they look.. Can you keep your eyes on my face, or is the view too distracting? ⌘ Read more
Mommy natural tits. 36DD ⌘ Read more
My all natural FFs ⌘ Read more
Natural boobs :) ⌘ Read more
waking up to these big natural tits is the only way to start ur day.. are u ready to be touching them? ⌘ Read more
Natural curves doing their thing ⌘ Read more
This is all natural and i hope it is hot enough ⌘ Read more
Natural Chinese J cups ⌘ Read more
Big natural boobs just look better when they’re free ⌘ Read more
how can naturals be that perfect ⌘ Read more
Mother Nature sucking on a sapling (reddi) [Hololive] ⌘ Read more
Hopefully my naturals are the best u have seen today ⌘ Read more
are my natural tits a turn you on ⌘ Read more
big natural tits need attention today ⌘ Read more
Maybe these are the best naturals what u have seen today ⌘ Read more
there’s nothing I love more than the attention these natural assets get.. can you handle the view of them being this stacked, or is too much for you? ⌘ Read more
Should I change anything or stay natural? ⌘ Read more
All Natural 😜 ⌘ Read more
QuiznessDesk, Wednesday, June 03
New Zealander Taika Waititi has only directed one film that he did not write. It was a Marvel Cinematic Universe film. What’s the film?
The Ural Mountains form a natural border between which two continents?
The Barbary lion went extinct in the wild around how many years ago? 80, 120, or 200?
What “C” peak in Queenstown, New Zealand, is a skiing mountain, whose name is the same as a crown that is commonly worn by lesser royalties, such as those with peerage?
In … ⌘ Read more
I love being blessed with these big natural boobies.. How long can you stare before you lose control? ⌘ Read more
Naturally full and owning it ⌘ Read more
stacked natural gothic milkers right here ⌘ Read more
My naturals are not average at all ⌘ Read more
«L’esprit critique» expositions: peluches, pensées visuelles et art «crip»
Le podcast culturel de «Mediapart» discute de l’invitation faite par le musée de la Chasse et de la Nature à la plasticienne Annette Messager, de la rétrospective du peintre Henry Taylor au musée Picasso et de la proposition «Normes Corps» au Palais de Tokyo. ⌘ Read more
Naturally big and soft ⌘ Read more
My naturals are not average at all ⌘ Read more