terminal: add format attributes