readme: add Squeak integration

This commit is contained in:
Christoph Thiede 2024-11-16 04:09:51 +01:00 committed by GitHub
parent 355a515b1f
commit bc4c73d144
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -304,6 +304,21 @@ $ cat ~/.config/fontconfig/fonts.conf
In some cases, `tmux` and the terminal understanding of some emoji characters may differ, which may
cause strange effects similar to that described in #579.
### Squeak
To embed into the world main docking bar:
```smalltalk
wttr := (UpdatingStringMorph on: [(WebClient httpGet: 'https://wttr.in/?format=%20%20%l:%20%C+%t') content] selector: #value)
stepTime: 60000;
useStringFormat;
yourself.
dockingBar := World mainDockingBars first.
dockingBar addMorph: wttr after: (dockingBar findA: ClockMorph).
```
![wttr.in integration in the Squeak world main docking bar](https://github.com/user-attachments/assets/4c2762b0-77ae-41a8-98db-3eb310d073bd)
## Data-rich output format (v2)
In the experimental data-rich output format, that is available under the view code `v2`,