Elektrine lite

← Feed

@stylus@social.afront.org

Post #1861044

2026-05-01 02:24 UTC

@pathunstrom so I'm using a slightly modified dykes in this 6800 computer simulator with a line-based terminal UI. Compared to what I mentioned in that PR, I started using my own parser instead of shlex. Now, I'm wondering if there's any pathway from this to tab completion in python's readline ... if you have any thoughts I'd love 'em. @dataclass class TakesAddresses: addresses: list[Symbol] @cmd("b") @cmd("break") class Break(TakesAddresses): """Set breakpoint at given addresses Prints all active breakpoints if no addresses given.""""" def __call__(self): set_break(1, self.addresses) cr6800> break --help usage: break [-h] [addresses ...] Set breakpoint at given addresses Prints all active breakpoints if no addresses given. positional arguments: addresses options: -h, --help show this help message and exit 0 A=04 B=01 IX=87a6 SP=0fc6 PC=8217 CC=d0 IRQ=True V=1 IL_PC=00 (00) cr6800> break 1 $67 (7<<2) $0001: Set breakpoint $0067: Set breakpoint $001c: Set breakpoint

Replies (1)

  • @pathunstrom@ngmx.com 2026-05-01 17:43

    @stylus noting I've seen this but will definitely need to sit down and look at things. Most of dykes just piggy backs on argparse and I don't know if there is a way to support tab completion with that.

    Open ##2004678