In the previous article, I’ve described how to generate custom font for OLED display like SD1306.
Meanwhile, I’ve discovered that number eight and number zero are hard to distinguish when reading from a distance, because of the dot inside the number zero.
I decided to remove the dot from number zero in order to make the font more readable. But how to do it?
Font generated from Squix’s generator is stored in form of source code. That makes it possible to edit. Just the stream of hexadecimal numbers is not very readable for a human.
Here is a small trick. Open the file in Vim in a terminal window. Search for string 0x00 which represents an area with no pixels. Vim should highlight all the occurences of 0x00. If you can’t see the highlight type command:
Start shrinking the window of the terminal and you should see that pattern begins to emerge.
When you hit the correct length of a line you should see the number clearly.
Numbers could be rotated, like number seven:
Change the font rebuild the code and the result looks like this:
New version of Cygwin is distributed with resizable Cygwin Terminal.
Cygwin Terminal is configurable and it has some neat features like transparency.
In order to turn on transparency click the left top icon and select Options.
Change transparency in section Look – Transparency.
Click Ok or Apply.
Update: I switched from Console2 to ConEmu. ConEmu is far more advanced.
Console2 is great little front-end for Windows. It makes PowerShell even more usable. It’s very flexible and you can configure console window to behave like terminal window on MacOS or Linux. It has also support for transparency. It’s simply great. No need to add any more words. Just try it.
I’d like to add few more hints.
- Go to Settings – Appearance – More…
- Select Window transparency – Alpha
- Change alpha level of Active and Inacative window.
Copy on left mouse button click, paste on middle button click
Default configuration of mouse is not very useful. You have to press Shift and Left Mouse to select and copy text. Make small adjustment:
- Settings – Hotkeys – Mouse
- Change: Copy/clear selection to Left + Shift
- Change: Select text to Left
Use Console2 as front-end for NodeJS
You can use Console2 to invoke also NodeJS shell. Just create Tab definition for NodeJS.
- Go to Settings – Tabs
- Add NodeJS and set Shell to: “C:\Program Files (x86)\nodejs\node.exe”
Create new Tab with NodeJS profile:
Update 4.11. 2012: Mintty/Cygwin Termina; has also support for transparency.
Update 31.12. 2011: new version of Mintty (see discussion).
Cygwin is great tool for Windows.
E.g. You can create shell script to access windows share via //computer/share_name. This saves a lot of time when you’re domain admin and you need to maintain many computers.
The only BIG drawback of Cygwin for Windows was terminal window. When you work on Mac or Linux you can resize terminal window as you need. Terminal (CMD) for Windows sucks. In default installation you can resize just in one direction. The other option would be to mix Cygwin with PowerShell, but then many things are not working at all.
Good news! Great news! There is new terminal window in Cygwin 1.7.x. It’s application mintty.
Installer will create link to this app with name Cygwin Terminal. It will launch mintty process and you can resize window without problem.
It works fantastic! After so many yeaars it is now possible to use full power of Windows and Linux together in one bundle. (Yes, I know about other terminals like rxvt or X-based stuff, but it required always some extra steps).
Some computers were complaining that /Cygwin-Terminal.ico was not found and I was not able to launch terminal. Solution was easy. Right click on launcher icon and remove icon parameters from Target. The result target command should look like: C:\cygwin\bin\mintty.exe
Hooray! BIG thank you goes to authors of mintty for Windows.
Follow Mintty T.