Feature Requests item #1479450, was opened at 2006-04-30 15:15 Message generated for change (Comment added) made by arcyqwerty 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: ArcyQwerty (arcyqwerty) Date: 2009-05-11 15:29 Message: I also made a clear command for UNIX 'clear' and windows 'cls' if (($command == "cls") || ($command == "cls\n") || ($command == "clear") || ($command == "clear\n")) $_SESSION['output'] = ""; insert right before this $p = proc_open($command, array(1 => array('pipe', 'w'), 2 => array('pipe', 'w')), $io); ---------------------------------------------------------------------- Comment By: krelvinaz (krelvinaz) Date: 2008-06-29 13: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 ------------------------------------------------------------------------------ The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your production scanning environment may not be a perfect world - but thanks to Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700 Series Scanner you'll get full speed at 300 dpi even with all image processing features enabled. http://p.sf.net/sfu/kodak-com _______________________________________________ phpshell-devel mailing list phpshell-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/phpshell-devel