diff options
author | Aaron Ball <nullspoon@oper.io> | 2017-01-18 10:04:57 -0700 |
---|---|---|
committer | Aaron Ball <nullspoon@oper.io> | 2017-01-18 10:04:57 -0700 |
commit | 0e3ddb259f63579f007bcdc45497f718e2284664 (patch) | |
tree | f311ff96a0c130022e939a009b434a6f7ead8f6b | |
parent | 3c6ddea41cd0d6e1ec1f25062950d2987da9e5cb (diff) | |
download | oper.io-0e3ddb259f63579f007bcdc45497f718e2284664.tar.gz oper.io-0e3ddb259f63579f007bcdc45497f718e2284664.tar.xz |
linux_dev:detecting escape char support
Fixed bug in the c code. Also updated description for the last
paragraph.
-rw-r--r-- | src/linux_development:detecting_stdout_escape_char_support.ascii | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/linux_development:detecting_stdout_escape_char_support.ascii b/src/linux_development:detecting_stdout_escape_char_support.ascii index 2179373..8b5b942 100644 --- a/src/linux_development:detecting_stdout_escape_char_support.ascii +++ b/src/linux_development:detecting_stdout_escape_char_support.ascii @@ -1,8 +1,8 @@ Linux Development:Detecting STDOUT Escape Char Support ====================================================== :author: Aaron Ball -:email: nullspoon@iohq.net -:revdate: December 29, 2016 +:email: nullspoon@oper.io +:revdate: January 18, 2017 == {doctitle} @@ -116,7 +116,7 @@ understanding that comes from writing it in C yourself. int ischardev(FILE* fd) { struct stat d; // stat the file descriptor - fstat(fileno(stdout), &d); + fstat(fileno(fd), &d); // Check st_mode (see "man 2 stat" for more information about this) if(S_ISCHR(d.st_mode)) |