fish-shell/share
Johannes Altmanninger 0627c9d9af Render control characters as Unicode Control Pictures
Inserting Tab or Backspace characters causes weird glitches. Sometimes it's
useful to paste tabs as part of a code block.

Render tabs as "␉" and so on for other ASCII control characters, see
https://unicode-table.com/en/blocks/control-pictures/. This fixes the
width-related glitches.

You can see it in action by inserting some control characters into the
command line:

	set chars
	for x in (seq 1 0x1F)
		set -a chars (printf "%02x\\\\x%02x" $x $x)
	end
	eval set chars $chars
	commandline -i "echo '" $chars

Fixes #6923
Fixes #5274
Closes #7295

We could extend this approach to display a fallback symbol for every unknown
nonprintable character, not just ASCII control characters.

In future we might want to support tab properly.
2024-02-15 01:39:45 +01:00
..
completions feat: cobra-cli support (#10293) 2024-02-10 16:52:31 +01:00
functions Render control characters as Unicode Control Pictures 2024-02-15 01:39:45 +01:00
groff
tools fish_config: Fix on python < 3.12 if not on Windows 2024-01-12 18:42:55 +01:00
__fish_build_paths.fish.in
config.fish share/config.fish: Skip __fish_set_locale if $LANG is already set 2023-09-09 15:53:20 +02:00