Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/lxsang/PTerm


https://github.com/lxsang/PTerm

Last synced: about 2 months ago
JSON representation

Lists

README

        

# PTerm

Using Unix terminal from Pharo.

Note: this work is based on the work at: [https://github.com/pavel-krivanek/terminal](https://github.com/pavel-krivanek/terminal)

Require libc compliant with the host pharo VM (32 or 64 bits) to be installed.

![PTerm](https://github.com/lxsang/PTerm/raw/master/Pterm.gif)

## Install

Install on pharo 9 or 10

```smalltalk
Metacello new
repository: 'github://lxsang/PTerm';
baseline:'PTerm';
load
```

Support for older version (Pharo 7) on [this branch](https://github.com/lxsang/PTerm/tree/pharo7-stable)

## Usage
```Smalltalk
TerminalEmulator openShell: '/bin/bash'
```

**/!\ tip**: by default select text in terminal will copy it, right click will paste te copied text.

## Fonts and Themes
### Fonts
By default, PTerm automatically downloads and uses 'DejaVu Sans Mono' as the default font, but you can always change the default font by accessing to the terminal window menu as below:

![](https://github.com/lxsang/online_stuffs/raw/master/pterm-menu.png)

Normally, the default font (DejaVu Sans Mono) supports most commonly used Unicode character.
But for those who want heavily Unicode support (Chinese, Thai, Japanese, etc.), PTerm has a second option in the window menu, that allows to automatically download and use Unifont (12 MB) as the default font. This font offers 65536 Unicode codepoints hence supports almost every language, it doesn't look really nice though.

### Themes
The default theme of PTerm can also be changed via the window menu, some available themes in dark and light mode:
* Solarized
* Xterm
* Tango
* Linux console
* Atom
* Atom One
* more incomming...