textchat

command module
v0.0.0-...-db7b22e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 5, 2023 License: MIT Imports: 10 Imported by: 0

README

textchat

Build Status

textchat is a terminal chat cli.

Usage

Simple example is below.

$ textchat Hello
.------.  .---------.                                                           
| 福本 | <   hello  |                                                           
`------'  `---------'                                                           

$ textchat -r Hello
                                                           .---------.  .------.
                                                           |  Hello   > | 野中 |
                                                           `---------'  `------'

You can set icon AA file.

$ textchat -i testdata/block.txt Hello
.-----.  .--------------.                                                       
| 123 | <   こんにちは  |                                                       
| 456 |  `--------------'                                                       
| 789 |                                                                         
`-----'                                                                         

You can set a chat text from stdin.

$ seq 5 | textchat
.------.  .-----.                                                               
| 村田 | <   1  |                                                               
`------'  |  2  |                                                               
          |  3  |                                                               
          |  4  |                                                               
          |  5  |                                                               
          `-----'                                                               

You can set a your name.

$ textchat -n jiro こんにちは
.------.  .--------------.                                                      
| jiro | <   こんにちは  |                                                      
`------'  `--------------'                                                      

Other examples.

$ textchat -i <(cat testdata/block.txt) Hello world
$ textchat -w 100 -r Right

Installation

go get github.com/jiro4989/textchat

or

Download binary from Releases.

Development

go version go1.12 linux/amd64

How to build

You run below.

make build

You run below if you want to do cross compiling.

make bootstrap
make xbuild
Testing

You run below.

make test

Help

textchat is a terminal chat cli.

Usage:
	textchat [options]
	textchat [options] <word>...
	textchat -h | --help
	textchat -v | --version

Options:
	-h --help               Show this screen.
	-v --version            Show version.
	-r --right              Say word on the right side.
	-i --icon=<textfile>    Set icon AA file.
	-w --width=<width>      Set chat screen width. [default: 80]
	-p --pad=<pad>          Padding string. [default:  ]
	-n --name=<name>        Set speakers name.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL