he/him/his, cis, gay, husband, Beagle chew-toy, JavaScript jockey, Rustacean

  • 7 Posts
  • 15 Comments
Joined 4 years ago
cake
Cake day: April 6th, 2021

help-circle
  • Okay, let’s go with xterm running bash, where the user ran ls, so xterm -> bash -> ls

    • ls never talks to xterm directly, it’s stdout/stderr are provided by bash
    • bash effectively outputs a grid of characters to xterm, xterm doesn’t know about prompts or words or line feeds, just the grid
    • every time ls outputs a line, bash adds a row of output to the grid that it sends to xterm
    • if there’s not enough space for a new row, bash discards the top-most row, moves all other rows up by one row, and then inserts the row for the ls output

    Now imagine a hypothetical fork of bash or some other new shell …

    • the only thing different is the direction that the rows move off the edge of the screen when running out of space, that’s all

    Thus, this is entirely a shell problem, with a shell solution

    However, what I’ve neglected to mention so far is that terminal emulators and shells are almost certainly optimised for rows dropping off the top edge and new rows being added to the bottom edge

    So, the role of a terminal emulator in this scenario could be to provide ANSI control characters or other protocol for operating just as quickly in the opposite direction, sure











  • I’m not an expert, but my understanding of the Global Shortcuts portal is that it’s very much designed for the push-to-talk use case where an app is not focused but still receives button events for exactly the keys its interested in and no other keys: I think this would cause problems if an app requested every key (e.g. if the request was approved then no keys would work in every other app)

    It’ll be interesting to see how the remaining compatibility/accessibility issues are tackled, either in portals or in wayland protocols







  • I bought a sealed device, with the intention of doing development but have not yet done anything like that

    I installed GadgetBridge on my Android phone, paired it with the watch, uploaded the latest PineTime firmware, all without looking at code or opening it up or anything

    It works perfectly fine as a basic watch with step counter and heart-rate monitor (although, I am not sure how accurate these features are)

    If you can browse the web, download files, and find that file again when using a different app, then I think you’ll be fine