Programmable line-based text & binary editor