Skip to content

Commit

Permalink
iOS+macOS: fix white background in terminal mode
Browse files Browse the repository at this point in the history
Fixes #1201
  • Loading branch information
osy committed Feb 1, 2021
1 parent bd1153f commit e12960e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions Platform/iOS/UTMDataExtension.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ extension UTMData {
if vm.configuration.displayConsoleOnly {
let vc = VMDisplayTerminalViewController()
let webView = WKWebView()
webView.isOpaque = false
vm.delegate = vc
vc.vm = vm
vc.webView = webView
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ class VMDisplayTerminalWindowController: VMDisplayWindowController {
webConfig.userContentController.add(self, name: JSCommand.sendTerminalSize.rawValue)
webView = WKWebView(frame: displayView.bounds, configuration: webConfig)
webView.autoresizingMask = [.width, .height]
webView.setValue(false, forKey: "drawsBackground")
displayView.addSubview(webView)

// load terminal.html
Expand Down

0 comments on commit e12960e

Please sign in to comment.