Searching txt.sour.is

Twts matching #ToS
Sort by: Newest, Oldest, Most Relevant
↳ In-reply-to » Every now and then, I think that I have carefully proof-read my message enough times and hit the "Add message" button in 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:

Fuck me! I tried to upgrade tview and the first thing I notice is a shitload of added dependency versions:

go.mod | 18 ++++-----
go.sum | 97 ++++++++++++++++++++++++++++++++++++++-----------

My code does not compile anymore as the view.FormItem interface was extended. Get/SetDisabled(…) are quickly implemented, no worries.

But the tview.Primitive (what makes a widget) interface has now a bunch of PRIVATE methods. For focus handling. Would you believe that!? Thanks, I cannot satisfy this interface in my very custom widgets anymore. Okay then, I just embed *tview.Box. tt now successfully compiles, but does not react anymore on key presses and the message tree is not focused either.

I’m not in the mood to debug this shit. :-( Lunch time.

⤋ Read More

Turkish fans turn out in thousands to support both teams in World Cup match
“I’m an Australian and a Turk at the same time,” one fan said on Sunday of supporting both countries. “I respect Australia as my home country, but I’m a Turk as well. So why not?” ⌘ Read more

⤋ Read More

Turkish fans turn out in thousands to support both teams in World Cup match
“I’m an Australian and a Turk at the same time,” one fan said on Sunday of supporting both countries. “I respect Australia as my home country, but I’m a Turk as well. So why not?” ⌘ Read more

⤋ Read More

Seven arrested at Brisbane Palestine rally including flotilla activist detained by IDF
Seven people have been arrested at a pro-Palestine rally organised to test Queensland police’s enforcement of the government’s hate speech laws. ⌘ Read more

⤋ Read More
↳ In-reply-to » Oh boy, I absolutely hate this stupid trend of not writing changelogs anymore! Why the fuck would one seriously consider it to be a viable option to just let some shitty bot spew all merge requests on a goddamn GitHub release?! First of all, these merge request titles suck balls. The order of the changes in this "changelog" is completely random (well, probably merge time, which is as useless as the dick on the Pope). They are not grouped by anything at all. Additions, changes, removals, deprecations, etc. randomly mixed up in one giant list. And then "Add feature X", seventeen kilometers further down "Revert 'Add feature X'". Fuck you! Don't include this shit in the first place!

@movq@www.uninformativ.de I just ran across another thing. At least I personally couldn’t care less about CI infrastructure changes. Whether they’re using github action a or b or c or version v or w, it is not of my interest. At all. (It might be useful to estimate the supply chain attack risk, though.) If the maintainers want to include them in the changelog – and there are probably people to whom this information is crucial – it’s probably best to document CI infrastructure changes in their own section.

⤋ Read More

Ryan, Nas star in Saints win; Roo Curtis offered ban; Lions’ miracle goal buries Tigers; Hardwick under fire
Nasiah Wanganeen-Milera and Liam Ryan ignited St Kilda at Marvel Stadium; North Melbourne’s Paul Curtis faces another three-match suspension; the Lions prevail in Hobart; and, Damien Hardwick’s under fire. ⌘ Read more

⤋ Read More
↳ In-reply-to » Oh boy, I absolutely hate this stupid trend of not writing changelogs anymore! Why the fuck would one seriously consider it to be a viable option to just let some shitty bot spew all merge requests on a goddamn GitHub release?! First of all, these merge request titles suck balls. The order of the changes in this "changelog" is completely random (well, probably merge time, which is as useless as the dick on the Pope). They are not grouped by anything at all. Additions, changes, removals, deprecations, etc. randomly mixed up in one giant list. And then "Add feature X", seventeen kilometers further down "Revert 'Add feature X'". Fuck you! Don't include this shit in the first place!

@movq@www.uninformativ.de You may want to include another antipattern to avoid in your article:

  • bump $same_dependency from 1.0.0 to 1.0.1
  • bump $same_dependency from 1.0.1 to 1.0.2
  • bump $same_dependency from 1.0.2 to 1.1.0
  • bump $same_dependency from 1.1.0 to 1.2.0

⤋ Read More

Curtis offered ban for tackle that dazed Eagle; Ashcroft’s miracle goal buries Tigers; Hardwick under fire
North Melbourne will have to decide whether to challenge the suspension offered to Paul Curtis; the Lions prevail in Hobart; and, Damien Hardwick’s Friday-night outburst prompts an Adelaide great to demand action. ⌘ Read more

⤋ Read More
↳ In-reply-to » Every now and then, I think that I have carefully proof-read my message enough times and hit the "Add message" button in 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:

@movq@www.uninformativ.de Thank you very much! So, the concept is very similar. The root widget gets the input and can pass it to whatever child has the focus and so on.

My two main issues are the API design, that the input handler sometimes get an additional callback to notify the application about which element is focused, but sometimes not. And that focus switching sometimes just does not work as expected. Anyway.

As for rendering the selected button, I was also thinking about indicating it with some kind of border around it, square brackets seem to be a wonderful choice. :-)

⤋ Read More

FIFA World Cup 2026 LIVE updates: ‘Who got the goals? We got the goals’: Irankunda responds to Turkey’s talk
Nestory Irankunda and Connor Metcalfe delivered Australia’s first win in a World Cup opener since 2006 set up a blockbuster showdown next Saturday with Group D rivals and hosts USA. ⌘ Read more

⤋ Read More

Ashcroft’s miracle goal turns match against Richmond; AFL urged to crack down on ump-bashing
In today’s AFL briefing, a dual Norm Smith medallist produces a goal-of-the-year contender in Brisbane’s win, and Gold Coast coach Damien Hardwick’s Friday night outburst prompts an Adelaide great to demand action. ⌘ Read more

⤋ Read More

AFL urged to crack down on umpire-bashing after Hardwick airs his frustration
The umpires were in the gun on Friday night, but an Adelaide great says the comments from the Suns coach crossed the line and the AFL should act for the sake of officials at all levels of the sport. ⌘ Read more

⤋ Read More

‘Disappointing’: Why Sydney’s oldest bowling club was forced to close
After almost 150 years, mounting losses have forced the closure of the historic community and sporting hub in Balmain and cast doubt over the site’s future. ⌘ Read more

⤋ Read More

Socceroos’ secret weapon no more: The explosive rise of Nestory Irankunda
A day after this profile was published in Good Weekend, 20-year-old Nestory Irankunda announced himself to the planet, scoring a breathtaking goal in the World Cup that has already been hailed as an instant classic. ⌘ Read more

⤋ Read More

Socceroos’ secret weapon no more: The explosive rise of Nestory Irankunda
A day after this profile was published in Good Weekend, 20-year-old Nestory Irankunda announced himself to the planet, scoring a breathtaking goal in the World Cup that has already been hailed as an instant classic. ⌘ Read more

⤋ Read More

Iran War Live Updates: Trump Says Peace Deal Will Be Signed Sunday, but Iran Disputes Timeline
An Iranian foreign ministry official sought to temper expectations, saying there were no plans for a Sunday signing and an agreement could be inked in the coming days. ⌘ Read more

⤋ Read More

Iran War Live Updates: Trump Says Peace Deal Will Be Signed Sunday, but Iran Disputes Timeline
An Iranian foreign ministry official sought to temper expectations, saying there were no plans for a Sunday signing and an agreement could be inked in the coming days. ⌘ Read more

⤋ Read More

FIFA World Cup 2026 LIVE updates: Brazil and Morocco draw 1-1 in New Jersey, Australia’s Socceroos start campaign against Turkey
Brazil and Morocco go head-to-head before the Socceroos begin their World Cup campaign against group favourites Turkey. Follow all the action. ⌘ Read more

⤋ Read More

Iran War Live Updates: Trump Says Peace Deal Will Be Signed Sunday, but Iran Disputes Timeline
An Iranian foreign ministry official sought to temper expectations, saying there were no plans for a Sunday signing and an agreement could be inked in the coming days. ⌘ Read more

⤋ Read More

Iran War Live Updates: Trump Says Peace Deal Will Be Signed Sunday, but Iran Disputes Timeline
An Iranian foreign ministry official sought to temper expectations, saying there were no plans for a Sunday signing and an agreement could be inked in the coming days. ⌘ Read more

⤋ Read More

Ready and waiting for a watch party: Young fans have solid advice for the Socceroos
Watching the World Cup on Sunday at 2pm? It’s a no-brainer for young Sydney players eager to cheer on the Aussie team. What about the 5am start next week? You bet! ⌘ Read more

⤋ Read More

Show HN: I built 80 mini-games using Fable before it was shut down
Dear Hacker News,

I’m kindly asking for your participation in the open beta for my AI-managed mini-games website. Thank you in advance!

For a limited time window, I’m setting the all-free feature flag to true. I hope you have a lot of fun exploring the AI’s sense for games! Here and there, I tweaked it to help with visual consistency.

I would be deeply grateful if you opted into analytics.

$2,300 in API tokens…

Cheers!

Comments URL: [https://news.ycombinator.c … ⌘ Read more

⤋ Read More

Iran War Live Updates: Trump Says Peace Deal Will Be Signed Sunday, but Iran Disputes Timeline
An Iranian foreign ministry official sought to temper expectations, saying there were no plans for a Sunday signing and an agreement could be inked in the coming days. ⌘ Read more

⤋ Read More

Iran War Live Updates: Trump Says Peace Deal Will Be Signed Sunday, but Iran Disputes Timeline
An Iranian foreign ministry official sought to temper expectations, saying there were no plans for a Sunday signing and an agreement could be inked in the coming days. ⌘ Read more

⤋ Read More

Iran War Live Updates: Trump Says Peace Deal Will be Signed Sunday, But Iran Disputes Timeline
An Iranian foreign ministry official sought to temper expectations, saying there were no plans for a Sunday signing and an agreement could be inked in the coming days. ⌘ Read more

⤋ Read More

Short-term rental crackdown sparks housing row on Sydney’s most famous beach
Short-term rental rules across Australia’s most internationally recognised beachside strips could be overhauled in a move to ease a housing crisis gripping Sydney. ⌘ Read more

⤋ Read More

Instant offers and $20,000 sweeteners: The battle to keep these subjects in NSW schools
Research consistently points to broader cognitive benefits of learning a foreign language but last year just over 250 public school students were in Japanese beginners. ⌘ Read more

⤋ Read More

Six thousand students, 1000 places. Competition has never been tougher for Melbourne’s best schools
Many families are turning to tutors before the select-entry schools exam. But educators say a revamped test will ensure it is fair. ⌘ Read more

⤋ Read More
↳ In-reply-to » Every now and then, I think that I have carefully proof-read my message enough times and hit the "Add message" button in 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:

@lyse@lyse.isobeef.org

With multicolored TUIs, I find it usually hard to immediately tell which button is selected if there are just two.

Indeed, I wouldn’t be able to tell in that example, either. movwin works around that by (mostly) assuming that there is no support for colors at all, so there should always be a way to tell which widget has focus, even without colors. That’s why it puts brackets around a button’s label when focused:

The fewer colors you use, the better, I guess. 🤔

⤋ Read More
↳ In-reply-to » Every now and then, I think that I have carefully proof-read my message enough times and hit the "Add message" button in 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:

@lyse@lyse.isobeef.org

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. 😅)

⤋ Read More

Iran War Live Updates: Trump Says Peace Deal Will be Signed Sunday, But Iran Disputes Timeline
An Iranian foreign ministry official sought to temper expectations, saying there were no plans for a Sunday signing and an agreement could be inked in the coming days. ⌘ Read more

⤋ Read More

Iran War Live Updates: Trump Says Peace Deal Will be Signed Sunday, But Iran Disputes Timeline
An Iranian foreign ministry official sought to temper expectations, saying there were no plans for a Sunday signing and an agreement could be inked in the coming days. ⌘ Read more

⤋ Read More

Iran War Live Updates: Trump Says Peace Deal Will be Signed Sunday, But Iran Disputes Timeline
An Iranian foreign ministry official sought to temper expectations, saying there were no plans for a Sunday signing and an agreement could be inked in the coming days. ⌘ Read more

⤋ Read More

Iran War Live Updates: Trump Claims Peace Deal Will be Signed Sunday, But Iran Disputes Timeline
An Iranian foreign ministry official sought to temper expectations, saying there were no plans for a Sunday signing and an agreement could be inked in the coming days. ⌘ Read more

⤋ Read More

Iran War Live Updates: Mediator Says Peace Deal Could be Finalized Within 24 Hours
The prime minister of Pakistan, a key intermediary in U.S.-Iran talks, said a deal was “likely expected.” An Iranian official sought to temper expectations but said an agreement could be signed in the coming days. ⌘ Read more

⤋ Read More

Red tape blocks 20,000 South West homes as WA housing shortage bites
A housing precinct expected to deliver up to 20,000 homes in WA’s South West region is still yet to receive the development green light from the state government, despite the project launching a decade ago. ⌘ Read more

⤋ Read More