Skip to content

A modern terminal with a built-in multiplexer: close it and your sessions keep running. Run shells and tons of AI agents across your machines, then pick them up from desktop, browser, TUI and more. Written in Rust with no UI framework: interface drawn straight on the GPU. No Electron, GPUI or webview.

520 B
Raw Blame

title: wezterm.utf16_to_utf8 tags: - utility - string

wezterm.utf16_to_utf8(str)

{{since('20200503-171512-b13ef15f')}}

This function is overly specific and exists primarily to workaround this wsl.exe issue.

It takes as input a string and attempts to convert it from utf16 to utf8.

local wezterm = require 'wezterm'

local success, wsl_list, wsl_err =
  wezterm.run_child_process { 'wsl.exe', '-l' }
wsl_list = wezterm.utf16_to_utf8(wsl_list)