GRAYBYTE WORDPRESS FILE MANAGER8242

Server IP : 198.54.121.189 / Your IP : 216.73.216.224
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /opt/alt/python27/lib64/python2.7/curses/
Upload Files :
Current_dir [ Not Writeable ] Document_root [ Writeable ]

Command :


Current File : /opt/alt/python27/lib64/python2.7/curses//wrapper.py
"""curses.wrapper

Contains one function, wrapper(), which runs another function which
should be the rest of your curses-based application.  If the
application raises an exception, wrapper() will restore the terminal
to a sane state so you can read the resulting traceback.

"""

import curses

def wrapper(func, *args, **kwds):
    """Wrapper function that initializes curses and calls another function,
    restoring normal keyboard/screen behavior on error.
    The callable object 'func' is then passed the main window 'stdscr'
    as its first argument, followed by any other arguments passed to
    wrapper().
    """

    try:
        # Initialize curses
        stdscr = curses.initscr()

        # Turn off echoing of keys, and enter cbreak mode,
        # where no buffering is performed on keyboard input
        curses.noecho()
        curses.cbreak()

        # In keypad mode, escape sequences for special keys
        # (like the cursor keys) will be interpreted and
        # a special value like curses.KEY_LEFT will be returned
        stdscr.keypad(1)

        # Start color, too.  Harmless if the terminal doesn't have
        # color; user can test with has_color() later on.  The try/catch
        # works around a minor bit of over-conscientiousness in the curses
        # module -- the error return from C start_color() is ignorable.
        try:
            curses.start_color()
        except:
            pass

        return func(stdscr, *args, **kwds)
    finally:
        # Set everything back to normal
        if 'stdscr' in locals():
            stdscr.keypad(0)
            curses.echo()
            curses.nocbreak()
            curses.endwin()

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
January 24 2025 09:34:02
root / linksafe
0755
__init__.py
1.774 KB
January 08 2025 10:43:35
root / linksafe
0644
__init__.pyc
1.555 KB
January 08 2025 10:43:35
root / linksafe
0644
__init__.pyo
1.555 KB
January 08 2025 10:43:35
root / linksafe
0644
ascii.py
2.487 KB
January 08 2025 10:43:35
root / linksafe
0644
ascii.pyc
5.281 KB
January 08 2025 10:43:35
root / linksafe
0644
ascii.pyo
5.281 KB
January 08 2025 10:43:35
root / linksafe
0644
has_key.py
5.501 KB
January 08 2025 10:43:35
root / linksafe
0644
has_key.pyc
5.826 KB
January 08 2025 10:43:35
root / linksafe
0644
has_key.pyo
5.826 KB
January 08 2025 10:43:35
root / linksafe
0644
panel.py
0.107 KB
January 08 2025 10:43:35
root / linksafe
0644
panel.pyc
0.283 KB
January 08 2025 10:43:35
root / linksafe
0644
panel.pyo
0.283 KB
January 08 2025 10:43:35
root / linksafe
0644
textpad.py
7.477 KB
January 08 2025 10:43:35
root / linksafe
0644
textpad.pyc
7.123 KB
January 08 2025 10:43:35
root / linksafe
0644
textpad.pyo
7.123 KB
January 08 2025 10:43:35
root / linksafe
0644
wrapper.py
1.642 KB
January 08 2025 10:43:35
root / linksafe
0644
wrapper.pyc
1.215 KB
January 08 2025 10:43:35
root / linksafe
0644
wrapper.pyo
1.215 KB
January 08 2025 10:43:35
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF