403Webshell
Server IP : 199.250.200.62  /  Your IP : 216.73.216.15
Web Server : Apache
System : Linux vps37394.inmotionhosting.com 3.10.0-1160.119.1.vz7.224.4 #1 SMP Mon Sep 30 15:36:27 MSK 2024 x86_64
User : jasonp18 ( 1000)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /proc/3/root/proc/2/root/usr/share/doc/dstat-0.7.2/examples/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/3/root/proc/2/root/usr/share/doc/dstat-0.7.2/examples/curstest
#!/usr/bin/python
import curses, sys

#c = curses.wrapper(s)
#w = curses.initscr()
#curses.start_color()
#print "TERM is", curses.termname()
#if curses.has_colors():
#   print "Has colors"#
#print curses.color_pair(curses.COLOR_RED), "Red"
#curses.endwin()

#curses.setupterm('xterm')
curses.setupterm()

if sys.stdout.isatty():
    print "Is a TTY"

print "Size is %sx%s" % (curses.tigetnum('lines'), curses.tigetnum('cols'))

if curses.tigetnum('colors') > 0:
    print "Has colors"
    print curses.tigetnum('colors')

Youez - 2016 - github.com/yon3zu
LinuXploit