seenaburns / stag Goto Github PK
View Code? Open in Web Editor NEWStreaming bar graphs. For stats and stuff.
License: BSD 3-Clause "New" or "Revised" License
Streaming bar graphs. For stats and stuff.
License: BSD 3-Clause "New" or "Revised" License
cc -Wall -Werror -Wextra -std=c99 -pedantic -Wno-unused-parameter stag.c view.c data.c -o stag -lncurses -lm -D_BSD_SOURCE
In file included from /usr/include/stdio.h:27:0,
from stag.c:1:
/usr/include/features.h:148:3: error: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Werror=cpp]
# warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
^
cc1: all warnings being treated as errors
In file included from /usr/include/string.h:25:0,
from view.c:1:
/usr/include/features.h:148:3: error: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Werror=cpp]
# warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
^
cc1: all warnings being treated as errors
In file included from /usr/include/string.h:25:0,
from data.c:1:
/usr/include/features.h:148:3: error: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Werror=cpp]
# warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
^
cc1: all warnings being treated as errors
Makefile:9: recipe for target 'stag' failed
make: *** [stag] Error 1
A release would allow for automatic watching in the Debian package. Could you please consider creating one?
This would also solve #3 .
I get segmentation fault when I try to run it.
Tried on compiling on both Ubuntu server and OSX.
OSX:
Ncurses - 5.7.2 (Brew)
CC - Apple LLVM version 6.0 (clang-600.0.51)
Ubuntu Server:
Ncruses - 5.9.20140118 (Installed dev version for headers)
CC - Ubuntu 4.8.2-19ubuntu1 4.8.2
When resizing the terminal while data is being piped in, stag occasionally segfaults.
To reprodue:
(while true; do echo $RANDOM; done)|stag-graph
Thanks for making stag!
I have looked at a few source files for your current software. I have noticed that some checks for return codes are missing.
Would you like to add more error handling for return values from functions like the following?
can a brother get some color in his bars? I have a dream, where one day white bars and black bars can graph together
The functions "endwin" and "refresh" do not belong to the list of async-signal-safe functions.
I guess that a different program design will be needed for your function "handle_winch".
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.