mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Force legacy windows False on the app
This commit is contained in:
@@ -1,16 +1,10 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import os
|
||||
import runpy
|
||||
import shlex
|
||||
from typing import cast, TYPE_CHECKING, Iterable
|
||||
from typing import TYPE_CHECKING, cast
|
||||
|
||||
from textual._import_app import AppFail, import_app
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from textual.app import App
|
||||
from typing import Iterable
|
||||
|
||||
from textual._import_app import import_app
|
||||
|
||||
# This module defines our "Custom Fences", powered by SuperFences
|
||||
# @link https://facelessuser.github.io/pymdown-extensions/extensions/superfences/#custom-fences
|
||||
@@ -55,6 +49,7 @@ def take_svg_screenshot(
|
||||
os.environ["COLUMNS"] = str(columns)
|
||||
os.environ["LINES"] = str(rows)
|
||||
app = import_app(app_path)
|
||||
app.console.legacy_windows = False
|
||||
if title is None:
|
||||
title = app.title
|
||||
|
||||
|
||||
Reference in New Issue
Block a user