Feature Requests item #1479450, was opened at 2006-04-30 12:15
Message generated for change (Comment added) made by krelvinaz
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=800590&aid=1479450&group_id=156638
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Interface Improvements
Group: None
Status: Open
Priority: 5
Private: No
Submitted By: Martin Geisler (mgeisler)
Assigned to: Nobody/Anonymous (nobody)
Summary: Add clear button
Initial Comment:
The button should clear the screen. Having 'clear' as
a new built-in command for this would also be nice.
----------------------------------------------------------------------
Comment By: krelvinaz (krelvinaz)
Date: 2008-06-29 10:25
Message:
Logged In: YES
user_id=1358733
Originator: NO
Adding a clear history command was easy....
Add a Clear History button and have the code check if it isset and clear
the session info it looks for...
The diff for it is below. I made other changes so the line numbers might
be off a bit.
363,370c364,366
< // Added Look for CLEAR to clear screen
< if(isset($_POST['CLEAR'])) {
< $_SESSION['output'] = "";
< } else {
< $lines = substr_count($_SESSION['output'], "\n");
< $padding = str_repeat("\n", max(0, $rows+1 - $lines));
< echo rtrim($padding . $_SESSION['output']);
< }
---
> $lines = substr_count($_SESSION['output'], "\n");
> $padding = str_repeat("\n", max(0, $rows+1 - $lines));
> echo rtrim($padding . $_SESSION['output']);
385,389c381,382
< <input type="submit" value="Execute Command">
< <input type="submit" name="CLEAR" value="Clear History">
< <input type="submit" name="logout" value="Logout">
<
<
---
> <input type="submit" value="Execute Command">
> <input type="submit" name="logout" value="Logout">
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=800590&aid=1479450&group_id=156638
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
phpshell-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/phpshell-devel