]> git.lizzy.rs Git - micro.git/commit
If stdout is a pipe, output to the pipe
authorZachary Yedidia <zyedidia@gmail.com>
Thu, 27 Feb 2020 17:39:19 +0000 (12:39 -0500)
committerZachary Yedidia <zyedidia@gmail.com>
Thu, 27 Feb 2020 17:39:19 +0000 (12:39 -0500)
commit9e8d76f2fa91463be660737d1de3bff61258c90d
tree1781f51ab73758fd10fb3338a301d9a04c0c61fa
parent8a9a14562fb3eec691a3641a11c541bdbe80d209
If stdout is a pipe, output to the pipe

If you run micro as `micro | cat` for example, micro will disallow
you from saving the file, and when you quit the buffer, the contents
will be sent to the pipe. This allows one to use micro as part of
an interactive unix pipeline.

Closes #1524
cmd/micro/micro.go
internal/buffer/buffer.go
internal/util/util.go