Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
libcifpp
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
libcifpp
Commits
1b7c387c
Unverified
Commit
1b7c387c
authored
Sep 14, 2023
by
Maarten L. Hekkelman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reintroduced get_terminal_width as an exported function
parent
2f1adbd2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
include/cif++/utilities.hpp
+3
-0
src/utilities.cpp
+2
-5
No files found.
include/cif++/utilities.hpp
View file @
1b7c387c
...
@@ -77,6 +77,9 @@ extern CIFPP_EXPORT int VERBOSE;
...
@@ -77,6 +77,9 @@ extern CIFPP_EXPORT int VERBOSE;
/// return the git 'build' number
/// return the git 'build' number
std
::
string
get_version_nr
();
std
::
string
get_version_nr
();
/// return the width of the current output terminal, or 80 if it cannot be determined
uint32_t
get_terminal_width
();
// --------------------------------------------------------------------
// --------------------------------------------------------------------
namespace
colour
namespace
colour
...
...
src/utilities.cpp
View file @
1b7c387c
...
@@ -43,11 +43,6 @@
...
@@ -43,11 +43,6 @@
#include <sstream>
#include <sstream>
#include <thread>
#include <thread>
#if not defined(_WIN32)
#include <sys/ioctl.h>
#include <termios.h>
#endif
namespace
fs
=
std
::
filesystem
;
namespace
fs
=
std
::
filesystem
;
// --------------------------------------------------------------------
// --------------------------------------------------------------------
...
@@ -88,6 +83,8 @@ uint32_t get_terminal_width()
...
@@ -88,6 +83,8 @@ uint32_t get_terminal_width()
#else
#else
#include <sys/ioctl.h>
#include <termios.h>
#include <limits.h>
#include <limits.h>
uint32_t
get_terminal_width
()
uint32_t
get_terminal_width
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment