Skip to content

Commit 7aa3a3c

Browse files
committed
Fixing typos etc.
1 parent b9238f4 commit 7aa3a3c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

docs/blog/posts/darren-year-in-review.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ However, when animating things in a terminal, we can often achieve better granul
8484

8585
The exact characters that form the bar are "╺", "━" and "╸". When the bar sits perfectly within cell boundaries, every character is “━”. As it travels over a cell boundary, the left and right ends of the bar are updated to "╺" and "╸" respectively.
8686

87-
## Snapshot testing
87+
## Snapshot testing for terminal apps
8888

8989
One of the great features we added to Rich this year was the ability to export console contents to an SVG. This feature was later exposed to Textual, allowing users to capture screenshots of their running Textual apps.
9090
Ultimately, I ended up creating a tool for snapshot testing in the Textual codebase.
@@ -136,13 +136,14 @@ A project I worked on earlier in the year to improve the situation was the Textu
136136

137137
Then, by running a Textual application with the `--dev` flag, all standard output will be redirected to it.
138138
This means you can use the builtin `print` function and still immediately see the output.
139-
Textual itself also writes information to this console, giving insight into the messages that are flowing throw an application.
139+
Textual itself also writes information to this console, giving insight into the messages that are flowing through an application.
140140

141141
## Pixel art
142142

143143
Cells in the terminal are roughly two times taller than they are wide. This means, that two horizontally adjacent cells form an approximate square.
144144

145145
Using this fact, I wrote a simple library based on Rich and PIL which can convert an image file into terminal output.
146+
You can find the library, `rich-pixels`, [on GitHub](https://github.com/darrenburns/rich-pixels).
146147

147148
It’s particularly good for displaying simple pixel art images. The SVG image below is also a good example of the SVG export functionality I touched on earlier.
148149

@@ -167,4 +168,4 @@ Other methods for displaying images in the terminal include:
167168

168169
That was a whirlwind tour of just some of the projects I tackled in 2022.
169170
If you found it interesting, be sure to [follow me on Twitter](https://twitter.com/_darrenburns).
170-
I don't post often, but when I do, it's usually about things similar to those I've discussed in this post.
171+
I don't post often, but when I do, it's usually about things similar to those I've discussed here.

0 commit comments

Comments
 (0)