Fix delete command pattern printing and improve test framework
- Add pattern_deleted flag to ProcessingContext to prevent automatic
pattern printing after 'd', 'D', and 'c' commands
- Fix test framework to properly interpret escape sequences with echo -e
- Correct test expectations for print_line and word_class tests
- Add comprehensive unit tests for delete command behavior