2021/10/13
about reset, which resets your terminal after a series of undesired ANSI escape codes.
I also learned about echo -e "\e" meaning “interpret backslash escape codes” (-e) and "\e" == "\033".
about reset, which resets your terminal after a series of undesired ANSI escape codes.
I also learned about echo -e "\e" meaning “interpret backslash escape codes” (-e) and "\e" == "\033".
about terminfo, the terminal information database: it can be queried to find all kinds of fun facts about your current terminal.
For instance,
tput cols => number of columns in the current terminaltput colors => number of colors the terminal supportstput setaf => generate ansi codes to set the foregrount color in the terminalAlso, infocmp screen dumps a bunch of other related information drawn from terminfo.
that you can option+click to change your cursor’s location in iterm2 and mac’s terminal.app! H/t Vlad Grenkov for this one :)
As of Terraform 1.3, you can write
type = optional(real_type, default_value)