This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#no PATH, no way to accidently run any programs | |
PATH='' | |
#useful variables | |
term_height=0 | |
term_width=0 | |
term_scroll_height=0 | |
status_line_row=0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os,sys,thread,socket | |
#********* CONSTANT VARIABLES ********* | |
BACKLOG = 50 # how many pending connections queue will hold | |
MAX_DATA_RECV = 999999 # max number of bytes we receive at once | |
DEBUG = True # set to True to see the debug msgs | |
BLOCKED = [] # just an example. Remove with [""] for no blocking at all. | |
#************************************** | |
#********* MAIN PROGRAM *************** |