Commit 6082b119 by maarten

mmCQL klaar, voor nu

git-svn-id: svn+ssh://gitlab/srv/svn-repos/pdb-redo/trunk@452 a1961a4f-ab94-4bcc-80e8-33b5a54de466
parent 01dbe675
...@@ -409,9 +409,15 @@ string GetExecutablePath() ...@@ -409,9 +409,15 @@ string GetExecutablePath()
#else #else
uint32_t get_terminal_width() uint32_t get_terminal_width()
{ {
uint32_t result = 80;
if (isatty(STDOUT_FILENO))
{
struct winsize w; struct winsize w;
ioctl(0, TIOCGWINSZ, &w); ioctl(0, TIOCGWINSZ, &w);
return w.ws_col; result = w.ws_col;
}
return result;
} }
string get_executable_path() string get_executable_path()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment