Initial commit
This commit is contained in:
28
application/source/toolset.c
Normal file
28
application/source/toolset.c
Normal file
@@ -0,0 +1,28 @@
|
||||
|
||||
#include <sys/ioctl.h>
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#include <unistd.h>
|
||||
|
||||
|
||||
class toolset{
|
||||
|
||||
void createHorisontalLine() {
|
||||
|
||||
struct winsize w;
|
||||
|
||||
ioctl(STDOUT_FILENO, TIOCGWINSZ, &w);
|
||||
|
||||
for (int i = 0; i < w.ws_col; ++i)
|
||||
{
|
||||
|
||||
printf("-");
|
||||
|
||||
};
|
||||
|
||||
printf("\n");
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user