DeckBro implementation

This commit is contained in:
Luxferre
2025-12-31 22:49:24 +02:00
parent bd34cab673
commit e5c6e139d4
3 changed files with 167 additions and 0 deletions
+20
View File
@@ -303,6 +303,26 @@ Supported chat commands:
- `/edcode`: extract code blocks from the most recent message and open `app.ed.edbuf()` on the contents
- `/exit` or `/quit`: exit the chat applet
### `app.bro`
An implementation of DeckBro, a simple text-only HTTP browser for [DeckText](decktext-spec.md) and simple HTML documents.
Usage: `from app.bro import bro`, then `bro(starting_url)`.
Available commands:
r)ef b)ack f)wd n)ext p)rev l)ink or pg#: q
- `g [url]`: go to a new URL
- `r`: refresh the current document
- `b`: go back in history
- `f`: go forward in history
- `n`: go to the next DeckText page of the document (this is the default action if you just press Enter)
- `p`: go to the previous DeckText page of the document
- `[num]`: jump to the page `[num]` if it exists
- `l [num]`: visit the link number `[num]` on the current page (if it exists)
- `q`: quit the browser
### `app.blog`
A simple interface to any POST-based blog API that supports HTTP Basic Auth.