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 workaround broken groff man page config 2016-10-19 13:43:04 -07:00
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 Rename "snippets" to "conf" internally, and document them as snippets 2016-04-06 09:33:09 +08:00
config.fish share/config.fish: Skip __fish_set_locale if $LANG is already set 2023-09-09 15:53:20 +02:00