lib/tty/prompt/symbols.rb in tty-prompt-0.21.0 vs lib/tty/prompt/symbols.rb in tty-prompt-0.22.0
- old
+ new
@@ -5,70 +5,70 @@
# Cross platform common Unicode symbols.
#
# @api public
module Symbols
KEYS = {
- tick: '✓',
- cross: '✘',
- star: '★',
- square: '◼',
- square_empty: '◻',
- dot: '•',
- bullet: '●',
- bullet_empty: '○',
- marker: '‣',
- line: '─',
- pipe: '|',
- ellipsis: '…',
- radio_on: '⬢',
- radio_off: '⬡',
- checkbox_on: '☒',
- checkbox_off: '☐',
- circle: '◯',
- circle_on: 'ⓧ',
- circle_off: 'Ⓘ',
- arrow_up: '↑',
- arrow_down: '↓',
- arrow_up_down: '↕',
- arrow_left: '←',
- arrow_right: '→',
- arrow_left_right: '↔',
- heart: '♥',
- diamond: '♦',
- club: '♣',
- spade: '♠'
+ tick: "✓",
+ cross: "✘",
+ star: "★",
+ square: "◼",
+ square_empty: "◻",
+ dot: "•",
+ bullet: "●",
+ bullet_empty: "○",
+ marker: "‣",
+ line: "─",
+ pipe: "|",
+ ellipsis: "…",
+ radio_on: "⬢",
+ radio_off: "⬡",
+ checkbox_on: "☒",
+ checkbox_off: "☐",
+ circle: "◯",
+ circle_on: "ⓧ",
+ circle_off: "Ⓘ",
+ arrow_up: "↑",
+ arrow_down: "↓",
+ arrow_up_down: "↕",
+ arrow_left: "←",
+ arrow_right: "→",
+ arrow_left_right: "↔",
+ heart: "♥",
+ diamond: "♦",
+ club: "♣",
+ spade: "♠"
}.freeze
WIN_KEYS = {
- tick: '√',
- cross: 'x',
- star: '*',
- square: '[█]',
- square_empty: '[ ]',
- dot: '.',
- bullet: 'O',
- bullet_empty: '○',
- marker: '>',
- line: '-',
- pipe: '|',
- ellipsis: '...',
- radio_on: '(*)',
- radio_off: '( )',
- checkbox_on: '[×]',
- checkbox_off: '[ ]',
- circle: '( )',
- circle_on: '(x)',
- circle_off: '( )',
- arrow_up: '↑',
- arrow_down: '↓',
- arrow_up_down: '↕',
- arrow_left: '←',
- arrow_right: '→',
- arrow_left_right: '↔',
- heart: '♥',
- diamond: '♦',
- club: '♣',
- spade: '♠'
+ tick: "√",
+ cross: "x",
+ star: "*",
+ square: "[█]",
+ square_empty: "[ ]",
+ dot: ".",
+ bullet: "O",
+ bullet_empty: "○",
+ marker: ">",
+ line: "-",
+ pipe: "|",
+ ellipsis: "...",
+ radio_on: "(*)",
+ radio_off: "( )",
+ checkbox_on: "[×]",
+ checkbox_off: "[ ]",
+ circle: "( )",
+ circle_on: "(x)",
+ circle_off: "( )",
+ arrow_up: "↑",
+ arrow_down: "↓",
+ arrow_up_down: "↕",
+ arrow_left: "←",
+ arrow_right: "→",
+ arrow_left_right: "↔",
+ heart: "♥",
+ diamond: "♦",
+ club: "♣",
+ spade: "♠"
}.freeze
def symbols
@symbols ||= windows? ? WIN_KEYS : KEYS
end