Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
z-push
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Björn Fischer
z-push
Commits
a83d547d
Commit
a83d547d
authored
Nov 06, 2015
by
Sebastian Kummer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ZP-755 Update year.
Released under the Affero GNU General Public License (AGPL) version 3.
parent
6630713f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
z-push-top.php
src/z-push-top.php
+3
-3
No files found.
src/z-push-top.php
View file @
a83d547d
...
...
@@ -9,7 +9,7 @@
*
* Created : 07.09.2011
*
* Copyright 2007 - 201
3
Zarafa Deutschland GmbH
* Copyright 2007 - 201
5
Zarafa Deutschland GmbH
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License, version 3,
...
...
@@ -719,9 +719,9 @@ class ZPushTop {
* @return array 'width' and 'height' as keys
*/
private
function
scrGetSize
()
{
$tty
=
strtolower
(
exec
(
'stty -a | fgrep columns'
));
$tty
=
strtolower
(
exec
(
'stty -a | fgrep columns'
));
if
(
preg_match_all
(
"/rows.([0-9]+);.columns.([0-9]+);/"
,
$tty
,
$output
)
||
preg_match_all
(
"/([0-9]+).rows;.([0-9]+).columns;/"
,
$tty
,
$output
))
preg_match_all
(
"/([0-9]+).rows;.([0-9]+).columns;/"
,
$tty
,
$output
))
return
array
(
'width'
=>
$output
[
2
][
0
],
'height'
=>
$output
[
1
][
0
]);
return
array
(
'width'
=>
80
,
'height'
=>
24
);
...
...
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