mirror of
https://github.com/inspec/inspec
synced 2024-11-27 07:00:39 +00:00
b4b6792878
Previously, if you typed more than 20 characters at the prompt and attempted pressed Ctrl+a (readline's "Move to start of line" command), your prompt would appear at the ~11th character from the start of the line, unable to go further back. This was a result readline counting the terminal escape sequences we use for color output as part of the line. Wrapping these sequences in \001 and \002 instructs readline to ignore them when doing calculations regarding line-length, resolving the problem. |
||
---|---|---|
.. | ||
bundles | ||
fetchers | ||
inspec | ||
matchers | ||
resources | ||
source_readers | ||
utils | ||
inspec.rb |