A Big5/GBK <-> UTF-8 translating layer in terminal
C Makefile
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
LICENSE
Makefile
README
bug5.c

README

bug5 is a Big5/GBK <-> UTF-8 translating layer in terminal.
It's modified from script(1).

Features that screen doesn't have:
	Autoset locale
	UAO
	Unpad padded ambiguous-width characters
	ANSI-Broken Big5 (eg. Double Color) fixing
	Transliteration
	Optional Traditional-Simplified conversion
	BSD License
	Specifying size for slave terminal + auto scrolling region setting

Features that both bug5 and screen has:
	Optional (no/auto/always) ambiguous-width characters padding
	Specify I/O conversion

Dependency:
	bsdconv

Examples:
	bug5 -u ssh bbs@ptt.cc #for CJK-aware terminal
	bug5 -up ssh bbs@ptt.cc #auto pad ambiguous-width characters padding
	bug5 -upp ssh bbs@ptt.cc #always pad ambiguous-width characters padding
	bug5 -gpt telnet -8 newsmth.net
	bug5 -up -s 80x24 telnet -8 bbs.hs.ntnu.edu.tw

	#I/O with UTF-8, with padding for ambiguous-width characters
	bug5 -8p

See Also:
	https://github.com/buganini/misc-scripts/blob/master/noidle

Related projects:
	screen
	luit
	hztty