wez / wezterm

A GPU-accelerated cross-platform terminal emulator and multiplexer written by @wez and implemented in Rust
https://wezfurlong.org/wezterm/
Other
16.79k stars 754 forks source link

Visual Artifacts appear when using Wezterm #6111

Open keanesc opened 1 week ago

keanesc commented 1 week ago

What Operating System(s) are you seeing this problem on?

Windows

Which Wayland compositor or X11 Window manager(s) are you using?

Windows 11 GlazeWM

WezTerm version

WezTerm-windows-20240812-215703-30345b36

Did you try the latest nightly build to see if the issue is better (or worse!) than your current version?

Yes, and I updated the version box above to show the version of the nightly that I tried

Describe the bug

While typing artifacts appear at random occasions.

https://github.com/user-attachments/assets/bbe6f4b1-83a7-46c9-b701-23a7e5269d8e

Tried the nightly build (.zip) but saw no difference.

To Reproduce

It's occurred since installation. Tried both the setup.exe as well as the .zip

Configuration

Issue occurs with no config as well

-- Pull in the wezterm API
local wezterm = require 'wezterm'

-- This will hold the configuration.
local config = wezterm.config_builder()

-- This is where you actually apply your config choices

-- Colour Scheme
config.force_reverse_video_cursor = true
local function get_appearance()
  if wezterm.gui then
    return wezterm.gui.get_appearance()
  end
  return 'Dark'
end

local function scheme_for_appearance(appearance)
  if appearance:find 'Dark' then
    return 'tokyonight_night'
  else
    return 'tokyonight_day'
  end
end

config.color_scheme = scheme_for_appearance(get_appearance())

config.window_background_opacity = 0.7
config.win32_system_backdrop = 'Acrylic'

-- Font
config.font = wezterm.font_with_fallback {
  -- { family = 'Iosevka Term', weight = 'Medium' },
  'Cascadia Code',
  'JetBrainsMono NF',
}

config.font_size = 13
config.line_height = 1.2

-- Keychars
config.use_dead_keys = false

-- UI
config.use_fancy_tab_bar = false
config.tab_bar_at_bottom = true
config.hide_tab_bar_if_only_one_tab = true
config.enable_scroll_bar = false
config.window_padding = {
    left = 0,
    right = 0,
    top = 0,
    bottom = 0,
}
config.scrollback_lines = 7000
config.window_decorations = "RESIZE"

-- Shell
--- Set Pwsh as the default on Windows
config.default_prog = { 'pwsh.exe', '-NoLogo' }

config.launch_menu = {
    -- {
    --     label = 'PowerShell',
    --     args = { 'powershell.exe', '-NoLogo' },
    -- },
    {
        label = 'Pwsh',
        args = { 'pwsh.exe', '-NoLogo' },
    }, {
        label = 'Command Prompt',
        args = { 'cmd.exe', '-NoLogo' },
    },
    -- {
    --     label = 'Ubuntu',
    --     args = { 'wsl.exe -d Ubuntu-22.04', '-NoLogo' },
    -- },
}

-- Command Palette
config.command_palette_font_size = 13
config.command_palette_bg_color = "#394b70"
config.command_palette_fg_color = "#828bb8"
config.ui_key_cap_rendering = "WindowsSymbols"

-- config.enable_kitty_graphics=true

-- and finally, return the configuration to wezterm
return config

Expected Behavior

No response

Logs

11:19:22.370 INFO wezterm_gui::termwindow > clicking http://www.slf4j.org/codes.html#StaticLoggerBinder

Anything else?

No response

wez commented 1 week ago

If you try commenting out one or the other (or both) of these lines, does it get better?

config.window_background_opacity = 0.7
config.win32_system_backdrop = 'Acrylic'
keanesc commented 1 week ago

Yes commenting either line seems to fix it. It is only when both are uncommented and the terminal is restarted that the artifacts reappear.

wez commented 1 week ago

Sounds like an issue with your graphics drivers, as those options don't change the way that wezterm directly works, they just set flags for your OS compositor.