| 1 | #!/bin/bash |
| 2 | # Test if RESET properly clears REVERSE mode |
| 3 | |
| 4 | echo "Test 1: REVERSE followed by RESET (ESC[0m)" |
| 5 | printf '\033[7mREVERSED LINE\033[0m\n' |
| 6 | printf 'Normal line 1\n' |
| 7 | printf 'Normal line 2\n' |
| 8 | |
| 9 | echo "" |
| 10 | echo "Test 2: REVERSE followed by explicit un-reverse (ESC[27m) then RESET" |
| 11 | printf '\033[7mREVERSED LINE\033[27m\033[0m\n' |
| 12 | printf 'Normal line 1\n' |
| 13 | printf 'Normal line 2\n' |
| 14 | |
| 15 | echo "" |
| 16 | echo "Which test shows 'Normal line 1' and 'Normal line 2' without reverse video?" |