Skip to content
/ ftty Public

ftty ("force tty") is a simple command-line tool that tricks a given program into thinking that stdout is a tty.

Notifications You must be signed in to change notification settings

jocap/ftty

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ftty ("force teletypewriter") forces programs to think that standard output is a tty (interactive terminal):

$ ghc main.hs | less -R      # no colors!
$ ftty ghc main.hs | less -R # colors are preserved

Installation

$ make
# make install

This installs ftty to /usr/local/bin and libftty.so to /usr/local/lib. To change the locations, edit the Makefile.

Note: if you change /usr/local/lib, you need to update the path in the ftty shell script.

About

ftty ("force tty") is a simple command-line tool that tricks a given program into thinking that stdout is a tty.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published