mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-22 05:04:09 +08:00

This reverts commit bd18736ee55e28651db0bb2b9c9630e8a57ec200. Bare variables should only be used in commands that must manipulate the variable stack, such as `set`.
17 lines
344 B
Fish
17 lines
344 B
Fish
function __fish_cursor_xterm -d 'Set cursor (xterm)'
|
|
set -l shape $argv[1]
|
|
|
|
switch "$shape"
|
|
case block
|
|
set shape 2
|
|
case underscore
|
|
set shape 4
|
|
case line
|
|
set shape 6
|
|
end
|
|
if contains blink $argv
|
|
set shape (math $shape - 1)
|
|
end
|
|
echo -en "\e[$shape q"
|
|
end
|