Character confusion when interactive Ruby wraps

  question, ruby

On Win10, when irb is used in CMD to input code, if the code length exceeds the width of CMD, it will display disordered characters. The following is the code I entered:

a = {:array => [1, 2, 3], :string => "Hi, mom!  ?  wa!"  }

Here is a screenshot of the misplaced character:

图片描述

There is no such problem in powershell. I really can’t find a similar solution, please let me know if anyone knows, thank you.

Set the width of CMD larger?Ruby Range