Skip to content

Commit

Permalink
Merge pull request #10 from kristuff/develop
Browse files Browse the repository at this point in the history
v1.0
  • Loading branch information
kristuff committed Apr 16, 2020
2 parents 4023c67 + 5153479 commit 3ba588d
Show file tree
Hide file tree
Showing 9 changed files with 22 additions and 17 deletions.
3 changes: 2 additions & 1 deletion .gitattributes
Expand Up @@ -8,4 +8,5 @@ doc/ export-ignore
.travis.yml export-ignore
composer.* export-ignore
phpunit.xml export-ignore
README.* export-ignore
README.* export-ignore
CHANGELOG.* export-ignore
2 changes: 1 addition & 1 deletion LICENSE
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2017 kristuff
Copyright (c) 2017-2020 kristuff

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -16,7 +16,7 @@
- [Documentation](#documentation) *in progress...*
- [License](#license)

![logo](doc/screenshots/backgrounds.png)
![sample](doc/screenshots/mishell-demo.png)

Features
--------
Expand Down Expand Up @@ -214,7 +214,7 @@ License

The MIT License (MIT)

Copyright (c) 2017 Kristuff
Copyright (c) 2017-2020 Kristuff

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion demo/index.php
Expand Up @@ -41,7 +41,7 @@ function writeLoader()
Console::text('] completed', 'white'));

// wait for a while, so we see the animation
usleep(25000);
usleep(20000);
}
// Overwrite progress message.
Console::relog($pad.Console::text('Done!', 'white', 'green', 'underline').str_pad(' ', 150));
Expand Down
Binary file added doc/screenshots/mishell-demo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion lib/Console.php
Expand Up @@ -13,7 +13,7 @@
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @version 0.2.0
* @version 1.0.0
* @copyright 2017-2020 Kristuff
*/

Expand Down
2 changes: 1 addition & 1 deletion lib/ShellColoredWriter.php
Expand Up @@ -13,7 +13,7 @@
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @version 0.2.0
* @version 1.0.0
* @copyright 2017-2020 Kristuff
*/

Expand Down
4 changes: 1 addition & 3 deletions lib/ShellTableWriter.php
Expand Up @@ -13,7 +13,7 @@
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @version 0.2.0
* @version 1.0.0
* @copyright 2017-2020 Kristuff
*/

Expand Down Expand Up @@ -173,7 +173,6 @@ public static function tableSeparator()
return self::getCliString(substr($str, 0, strlen($str) -1). self::$verticalSeparator, $args);
}


/**
* Gets a formated table blank row
*
Expand Down Expand Up @@ -272,5 +271,4 @@ public static function tableRow()
// format full row
return self::getCliString($str, $args) ;
}

}
20 changes: 13 additions & 7 deletions lib/ShellWriter.php
Expand Up @@ -13,7 +13,7 @@
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @version 0.2.0
* @version 1.0.0
* @copyright 2017-2020 Kristuff
*/

Expand Down Expand Up @@ -51,7 +51,8 @@ protected static function isWin()
*
* @return int
*/
public static function getColumns() {
public static function getColumns()
{
if (!self::isWin() ){
return (int) shell_exec('tput cols');
}
Expand All @@ -65,7 +66,8 @@ public static function getColumns() {
*
* @return int
*/
public static function getLines() {
public static function getLines()
{
if (!self::isWin() ){
return (int) shell_exec('tput lines');
}
Expand All @@ -79,7 +81,8 @@ public static function getLines() {
*
* @return void
*/
public static function newWindow() {
public static function newWindow()
{
if (!self::isWin() ){
system('tput smcup');
self::clear();
Expand All @@ -94,7 +97,8 @@ public static function newWindow() {
*
* @return void
*/
public static function restoreWindow() {
public static function restoreWindow()
{
if (!self::isWin() ){
system('tput rmcup');
}
Expand All @@ -108,7 +112,8 @@ public static function restoreWindow() {
*
* @return void
*/
public static function hideInput() {
public static function hideInput()
{
if (!self::isWin() ){
system('stty -echo');
}
Expand All @@ -122,7 +127,8 @@ public static function hideInput() {
*
* @return void
*/
public static function restoreInput() {
public static function restoreInput()
{
if (!self::isWin()){
system('stty echo');
}
Expand Down

0 comments on commit 3ba588d

Please sign in to comment.