1. December 2020

How to switch tabs in Windows Terminal

Windows Terminal is very versatile shell for Windows which allows to run CMD, PowerShell or Linux in WSL2. The terminal also supports tabs.

To switch between tabs you can use:

  • CTRL+Tab – switch to next tab
  • CTRL+Shift+Tab – switch to previous tab
  • If you’d like to use own keyboard shortcuts like CTRL+PgUp, CTRL+PgDown, then just open Settings CTRL+, and enter following code into section actions:

    ..."actions":  [
     ...
      { "command": "nextTab", "keys": "ctrl+pgdn" },
      { "command": "prevTab", "keys": "ctrl+pgup" }
     ...
    ]
    

10. August 2020

How to increase font size in Konsole

Konsole is a great terminal emulator that you can find in many Linux distributions. The problem with some Linux distributions is that font is too small.

To change the font open menu Settings and select Edit Current Profile…

Select Preview tab and change Text size value in the middle of the screen. Click Ok to confirm the new font..

Another option to change the font size is to press CTRL and Scroll Up/Down with mouse wheel.

The same result could be also achieved by keys CTRL and +/- keys.

20. January 2018

How to switch tabs in MobaXterm

MobaXterm is a versatile terminal manager for Windows. Many Windows users are using Putty to connect to SSH on a remote machine or Git Bash when they want to use Git on Windows. MobaXterm can effectively replace these tools with more convenient experience.

One neat feature of many terminal applications on Linux is support for tabs (e.g. in Konsole). The question is how you can switch between tabs in MobaXterm just by using a keyboard.

The Default configuration of keyboard shortcuts is stored under menu Settings and optionĀ Keyboard shortcuts.

By default you can use:

Previous tab - Ctrl + Alt + LEFT
Next tab - Ctrl + Alt + RIGHT

I recommend chinging the configuration to match default keyboard shortcuts of Firefox or Google Chrome.

Previous tab - Ctrl + Page_UP
Next tab - Ctrl + Page_DOWN

Enjoy tabs. :)

9. April 2017

How to edit font for OLED display SD1306

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:

:set hlsearch

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:

4. November 2012

Cygwin – transparent terminal

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.