1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-24 09:25:01 +00:00
freebsd-ports/www/butterfly/files/patch-butterfly.server.py
Kirill Ponomarev e6dd86cdc5 Butterfly is a xterm compatible terminal that runs in your browser.
Features

- xterm compatible (support for a lot of unused features)
- Native browser scroll and search
- Theming in css/sass (18 preset themes) endless possibilities
- HTML in your terminal, cat images and use <table>
- Multiple sessions support
- Secure authentication with X509 certificates
- 16,777,216 colors support
- Keyboard text selection
- Desktop notifications on terminal output
- Geolocation from browser
- May work on firefox too

WWW: https://pypi.python.org/pypi/butterfly

PR:		216957
Submitted by:	yuri@rawbw.com
Approved by:	mat (mentor)
Differential Revision:	https://reviews.freebsd.org/D9533
2017-02-13 18:00:21 +00:00

30 lines
799 B
Python

--- butterfly.server.py.orig 2017-02-10 00:08:34 UTC
+++ butterfly.server.py
@@ -20,7 +20,7 @@
import tornado.options
import tornado.ioloop
import tornado.httpserver
-import tornado_systemd
+#import tornado_systemd
import logging
import webbrowser
import uuid
@@ -295,13 +295,13 @@ else:
from butterfly import application
application.butterfly_dir = butterfly_dir
log.info('Starting server')
-http_server = tornado_systemd.SystemdHTTPServer(
+http_server = tornado.httpserver.HTTPServer(
application, ssl_options=ssl_opts)
http_server.listen(port, address=host)
-if http_server.systemd:
- os.environ.pop('LISTEN_PID')
- os.environ.pop('LISTEN_FDS')
+#if http_server.systemd:
+# os.environ.pop('LISTEN_PID')
+# os.environ.pop('LISTEN_FDS')
log.info('Starting loop')