Better styling for terminal

This commit is contained in:
jeffser
2024-10-07 02:17:34 -06:00
parent f03c01b6a6
commit 66a9627b29
3 changed files with 9 additions and 10 deletions

View File

@@ -6,7 +6,7 @@ Handles the terminal widget
import gi
gi.require_version('Gtk', '4.0')
gi.require_version('Vte', '3.91')
from gi.repository import Gtk, Vte, GLib, Pango
from gi.repository import Gtk, Vte, GLib, Pango, GLib
class terminal(Vte.Terminal):
__gtype_name__ = 'AlpacaTerminal'
@@ -14,7 +14,7 @@ class terminal(Vte.Terminal):
def __init__(self, script:list):
super().__init__(css_classes=["terminal"])
self.set_font(Pango.FontDescription.from_string("Monospace 12"))
self.set_clear_background(False)
pty = Vte.Pty.new_sync(Vte.PtyFlags.DEFAULT, None)
self.set_pty(pty)