Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/ryota-ka/twterm

A full-featured TUI Twitter client
https://github.com/ryota-ka/twterm

command-line ncurses readline ruby terminal twitter twitter-client

Last synced: 3 days ago
JSON representation

A full-featured TUI Twitter client

Awesome Lists containing this project

README

        

# twterm

A full-featured TUI Twitter client

![screencast](http://twterm.ryota-ka.me/screencast.gif)

## Installation

:snowflake: Nix (Recommended)

```sh
$ nix-channel --add https://github.com/ryota-ka/twterm/archive/master.tar.gz twterm
$ nix-channel --update
$ nix-env -iA twterm
```

:warning:
If you have `BUNDLE_PATH` configured in `~/.bundle/config`, `twterm` may fail due to `Bundler::GemNotFound`.
See [NixOS/nixpkgs#85989](https://github.com/NixOS/nixpkgs/issues/85989) for details.

:beer: Homebrew

```sh
$ brew install ryota-ka/twterm/twterm
```

:gem: RubyGems

You also have to install the following dependencies manually.

- [Ruby](https://www.ruby-lang.org/) (>= 2.5, < 3, compiled with ncurses and Readline)
- [ncurses](https://invisible-island.net/ncurses/)
- [GNU Readline](https://tiswww.case.edu/php/chet/readline/rltop.html)
- [GNU Libidn](https://www.gnu.org/software/libidn/)

```sh
$ gem install twterm
```

## Usage

To launch twterm, just type in your console:

```
$ twterm
```

### Default key assignments

Key assignments can be configured by editing `~/.twterm/keys.toml`

key | operation
--- | ---
`h` `←` | previous tab
`j` `↓` | move down
`k` `↑` | move up
`l` `→` | next tab
`^N` | new tweet
`^T` | new tab
`w` | close current tab
`F10` `^C` | quit
`F1` | key assignments cheatsheet

## License

See the LICENSE file for license rights and limitations (MIT).

## Links

- http://twterm.ryota-ka.me/
- https://rubygems.org/gems/twterm

## Development

### Requirements

- [Nix](https://nixos.org/)

### Setting up development environment

```sh
$ nix-shell
```

Ruby version can be switched with `--arg` option (defaults to 2.7).

```sh
$ nix-shell --arg ruby 2.6
```